Saturday, March 24, 2012

AJAX and mobile device problem

I have a web application that needs to go and check a webservice on timed basis for some data. If the data exists I want to get the data and then navigate on the cient to another page. I initially got this working on normal internet explorer on my pc using the ScriptManager, and an update panel with an AJAX timer on it. This way the timer would not cause a full page rendering. When the timer fired he would check the webservice and then navigate on if the data existed.

Then I tried this on a Windows Mobile 5, and 6 device to which it appears the timer never fires. I simplified my code by updating a label when the timer fires and this doesn't happen either. So my conclusion was that the AJAX timer does not work on mobile devices. How can I accomplish the same task in another way without a complete page refresh on interval?

Thanks in advance

Steve

Here's some information on AJAX and Windows Mobilehttp://blogs.msdn.com/iemobile/archive/2005/11/15/493200.aspx andhttp://blogs.msdn.com/iemobile/archive/2007/07/03/another-ajax-sample-for-ie-mobile-plus-json-and-asp-net-ajax-tips.aspx. Nothing specific about the UpdatePanel though...

-Damien

No comments:

Post a Comment