[SailfishDevel] XMLHttpRequest and timeouts

Luca Donaggio donaggio at gmail.com
Thu Jun 12 11:39:14 UTC 2014


Hi all,

I'm using an XMLHttpRequest object from a stateless javascript library to
call some webservices.
I understand that the implementation of this object provided by the Qt
version currently used in SFOS lacks the "timeout" property (and,
consequently, the "ontimeout" slot).

As the web service I try to connect to is not always available, the result
is that my app sometimes wait indefinitely for an answer from the remote
server which is likely to never come.

Is there any other way to detect (and react to)  a network timeout in
QML/javascript?

-- 
Luca Donaggio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20140612/798daa98/attachment.html>


More information about the Devel mailing list