AJAX Timeout Handler for QAjax Actions

Login or register to post comments
5 replies [Last post]
profnotime's picture
Offline
Joined: 01/13/2009

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.

alex94040's picture
Offline
Joined: 11/06/2008

I'm afraid I don't know of a way to make it possible with QCubed as of right now. This would be very easy to do if the Ajax core of the framework was built on top of jQuery (as we ultimately envision for 1.1 and beyond). Don't think it's possible right now, though.

agsel's picture
Offline
Joined: 04/02/2008

I once investigated it, but never implemented it. It would be possible, if you manually added timeout check for ajax request handler. There are even some examples if you search from google. But yeah, QCubed itself doesn't provide that functionality.

profnotime's picture
Offline
Joined: 01/13/2009

ok guys. Thanks very much. I'm most grateful
And I am looking forward to the Qcubed - jQuery team up, come version 1.1

Much Love..................Qcubed!!!

Offline
Joined: 05/15/2009

Perhaps you can see my js modification in here:

http://qcu.be/content/display-alert-upon-no-connectivity-during-ajax-or-...

profnotime's picture
Offline
Joined: 01/13/2009

Thanks Revvi, just downloaded it. Let me try it out and I'ld get back to you. Cheers!