QCubed - A PHP5 rapid development MVC framework.
Home  |  Updates

ExecuteJavascript QPanel

AJAX Timeout Handler for QAjax Actions

Hello, Please can someone tell me how to implement an ajax timeout handler for QAjax Actions?
What I mean is this, sometimes, while executing a QAjax actions, the network goes off and the wait icon continues spinning forever, I want to be able to alert my users that the request timed out or something.

Please, I appreciate your help. Thank You.

QApplication::ExecuteJavascript not executed on Panel Load

Hi,

I have a form that display a menu in a div. In another div, i load a QPanel depending on the menu item selected.

My menu use a QLinkButton but also tried using a QButton.

On the first load of the page, the Qpanel is empty. In fact i render a "dummy" QPanel like

$this->pnlMain = new QPanel($this);
$this->pnlMain->AutoRenderChildren = true;

I've tried putting a dummy text like "click on the menu".

When the user click a menu item, i do a QAjaxAction:


$this->pnlMain->RemoveChildControls(true);
$currpanel = new my_panel($this->pnlMain);