Hi
Embarking on WRT development and appear to have hit a problem. So far I have been launching an application and accessing the GPS fine, but I'm having an issue making HTTP calls to any server. My main point of reference so far in this regard has been this page.
What I'm seeing on my 5800 is that the call returns quickly, invokes the success handler, and has empty responseText. These are the exact symptoms that I get when running the same page under Firefox on a PC when pointing to a server different to that which served the script. If I modify my widget page to access localhost and run it accordingly on my local PC host then it works fine - this indicates that my code is fine and it's simply failing to access the URL. (Also, I've tried various configurations of Ajax.Update and Ajax.Request, constructing the request in various ways and applying response handlers in various ways as well, all with the same outcome.)
Also, when running the widget on the 5800, no connection menu appears (ie asking me to choose between wi-fi/mobile/etc connection points), which also appears to suggest that something's preventing my HTTP request getting anywhere. On starting the widget I do get a user permission request asking for access to positioning (when that code's included) along with access to user data and accessories, but not for access to network resources.
I assume I've missed some trivial setting to request permission, or something similar, but the page I linked to above doesn't mention anything along these lines, nor indeed does anything else I've found.
Can anyone point out a stupid mistake here?
Thanks


Reply With Quote


