Hi is it possible to implement a timeout in QML's xmlhttprequest?
Hi is it possible to implement a timeout in QML's xmlhttprequest?
Hi,
I don't think it's possible with Qt/QML, or at lest I cannot see any easy way to implement such thing.
But maybe you can achieve that with JS:
var req = new XMLHttpRequest();
...
req.timeout = 4000;
req.timeout = function () { alert("Timed out!!!"); }
req.send(...);
Hi,
req.timeout doesnt seem to be working. Have any body tried this ??
-CK
http://celluleus.blogspot.com
Well, alert() doesn't work in QML.
try with console.log() and the timeout's function should start to work.
Well, I meant req.timeout = 4000; ...
So, how should it behave if it works as expected ?? what should be the state and status once timeout has occured ?
-CK