IEMobile Team Weblog

Information about Internet Explorer for Windows Mobile

Another AJAX Sample for IE Mobile (plus JSON and ASP.NET AJAX tips)

A couple of quick pointers for samples and tips on using AJAX and IE Mobile:

  1. The Channel9 Wiki has a sample app using AJAX with IE Mobile put together by the Windows Mobile SDK team.
  2. MelSam's blog has a Powerpoint deck from MEDC 2007 covering building AJAX Applications on IE Mobile.  This also has some tips on using JSON and ASP.NET AJAX with IE Mobile.

Enjoy!

-Charles

Adding a link to Jim Wilson's Blog where he gives some details about his experience with ASP.NET AJAX and IE Mobile.  As it turns out there was an issue with running Debug vs. Release version of the ASP.NET AJAX scripts.  Thanks Jim!

-Dave

Published Tuesday, July 03, 2007 2:02 AM by iemoblog
Filed under:

Comments

 

ttklf4 said:

I was very surprised to read that it shall be possible to use ASP.NET AJAX with IE Mobile 6.

In my experience it is neither possible to use ASP.NET AJAX 1.0 nor the Microsoft AJAX Library with IE Mobile 6.

Could you please set an example how to use ASP.NET AJAX or the Microsoft AJAX Library with IE Mobile 6?

July 5, 2007 7:29 AM
 

iemoblog said:

Hello,

I am checking to see if we can publish the ASP.NET AJAX demo shown at MEDC.

Did you use one of the workarounds that is listed in the PowerPoint deck to make ASP.NET AJAX work with IE Mobile 6?

What version of IE Mobile are you using?  You can find this out by navigating to "about:version" in the browser.

Finally, what specific behavior are you seeing?

Thanks,

Charles

July 5, 2007 2:50 PM
 

ttklf4 said:

Thank you for your answer, Charles.

It would be very helpfull to have the demo you mentioned.

I used the Device Emulator 2 with IEMobile 6.9.

With the workarounds that are lsited in the PowerPoint deck the server delivers the same code and script resources to IEMobile which are send to desktop browsers if I use a sample page with an ASP.NET AJAX UpdatePanel. But the page still postbacks. No Ajax functionality. No error messages. It would be interesting to know if one can debug JScript with the Device Emulator.

Microsoft AJAX Library: If I include the MicrosoftAjax.js and try to find out the browser name and its version with Sys.Browser.name and Sys.Browser.version I don't get anything in IEMobile while this test works with other mobile browsers, e. g. S60 browser from Nokia or Opera Mini 4 Beta. IEMobile returns the well known ASP.NET AJAX error "'Sys' is undefinded".  (Test: http://localhost:1245/jkgfh1.maximumaspbeta.com/m/a/Test1.aspx)

July 6, 2007 5:35 AM
 

iemoblog said:

Thanks for the details.  I think the problem is that there are actually different minor versions of IE Mobile in Windows Mobile 6 releases.  The version you have (6.9) corresponds to the initial release of WM6.  We updated the browser for WM6 AKU 0.2 release to IE Mobile 6.12 which includes many of the changes needed to support ASP.NET AJAX.  

We typically state that this is the version of IE Mobile for WM6 because most phones which are released to the public will have at least AKU 0.2.  

The good news is that I double checked the latest emulator images and they have IE Mobile 6.12.  You can download them here:

http://www.microsoft.com/downloads/details.aspx?familyid=38C46AA8-1DD7-426F-A913-4F370A65A582&displaylang=en

Let us know if that helps.

July 6, 2007 2:30 PM
 

avives said:

Hi,

I'm wondering about the differences between the IE that is bundled in Windows CE 5 and the one that comes with Microsoft Mobile 5/6. The thing is that we have an AJAX application that works fine with Windows CE 5.0 but it's not working properly in Mobile 5 and 6, the library is loaded fine but it behaves unexpectedly.

At least to us it seems that the version in Windows CE 5 is more advanced than the IE Mobile, is this due to the Pocket  version root of IEMobile? Anyone knows why still there are diferences even though the SO base is the same?

Thanks

October 16, 2007 11:59 AM
 

iemoblog said:

Hi avives:

There are two different browsers that you can get with CE 5.0 - either "full" IE which is ported from the desktop, or a smaller version which is equivalent to the Windows Mobile version.  It sounds like you are most likely using the full version on CE which is indeed more advanced version than what ships with Windows Mobile 5/6.

October 16, 2007 2:01 PM
 

ttklf4 said:

Can you explain what you mean by "ATLAS" and "AJAX"? I am astonished that the IEMobile team apparently does not know that "Atlas" was the name of the Microsoft ASP.NET Ajax framework in the beta phase. Since the RTM it is called Microsoft ASP.NET AJAX. One of many confusing things in the discussion of ASP.NET AJAX and IEMobile ...

October 21, 2007 3:22 AM
 

iemoblog said:

Hi ttklf4:

By 'Atlas' we did mean 'ASP.NET AJAX'.  Sometimes we have a bad habit of continuing to call products by their codename after they have been officially renamed.  I've edited the post to be clearer.  Thanks for the feedback!

October 22, 2007 2:19 PM
 

horse said:

Does IE Mobile support frames?

October 25, 2007 10:16 AM
 

iemoblog said:

Hi horse:  Yes, IE Mobile supports frames.

October 25, 2007 1:49 PM
 

skyntchev said:

I have an Image AJAX/Java script related question.

If an image is enclosed in a DIV tag whose style is set to "hidden", IE does not download the image when it renders the page. Unfortunately, if later you make the DIV visible, the image still does not download. I had some (limited) success by removing and reattaching the image using DOM, but sometimes it works sometimes it does not work. Is there a way to do that using Java script (or any other way)?

Thanks

December 2, 2007 8:39 AM
 

iemoblog said:

skyntchev:

I didn't have a problem making this work.  Can you share the code that you're using?

-Charles

December 4, 2007 2:30 PM
 

lakshmansrg said:

Does IE 6.12 on WM6 supports Google Maps browsing?

If its supported, would it work on HTC Mogul.

Thanks!

February 27, 2008 11:37 AM
 

iemoblog said:

lakshmansrg:

There are some issues with the Google Maps web site on IE Mobile 6.12.

For maps, I'd suggest using a dedicated mobile client application such as Live Search.  You can download it by visiting http://wls.live.com on your phone.

-Charles

February 27, 2008 1:35 PM
Anonymous comments are disabled

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker