- Is Ajax support on Internet Explorer Mobile?
Actually, IE Mobile’s Ajax support dates back to Windows Mobile 2003. - javascript & AJAX 實做心得
- 可用AJAX,但desktop IE的javascript Framework有很多function不適用,因此建議還是依需求開發。
- 針對AJAX部份我有根據官方範例寫了一個Ajax call function for Mobile IE
http://blackbing.net/lab/mobile/mobileAjax.js
- 針對AJAX部份我有根據官方範例寫了一個Ajax call function for Mobile IE
- 基本的javascript幾乎都支援,getElementById, setTimeout, etc..
- 只有button 有onclick事件,其他如DIV、SPAN上沒有這種event。
- 請注意IE Mobile 沒有「onMouseOver」事件。
- CSS支援度差,不支援定位(position, top, left),且javascript存取css的方式也有限,必須反覆測試style的表現。
- On Smartphone/PocketPC 2003 innerText and innerHTML Properties are only supported on div and span elements.
On Windows Mobile 5 innerText and innerHTML Properties are supported on all elements.
- 可用AJAX,但desktop IE的javascript Framework有很多function不適用,因此建議還是依需求開發。
- 開發AJAX應用程式的注意事項:
- 使用者介面越簡單越好
- 資料傳輸量越精簡越好(JSON)
- DOM tree 越淺(shallow)越好
- 若有大量資料要隱藏,請避免使用display:none,直接採用DOM操作方式remove掉。(保持頁面資料越精簡越好)
- 盡可能不要讓使用者輸入data,改由select方式
- Adding On-Demand Script
- 其他:
- how to configure Internet Explorer Mobile to display script errors?
To configure IE Mobile to display script error messages requires you to create a new registry entry.- Open the device/emulator registry using the Remote Registry Editor or other Windows Mobile registry tool
- Navigate to the registry key HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main
- Create a new DWORD entry for the key; name the new entry ShowScriptErrors and set the value to 1
- Soft-reset the device/emulator
Once you complete these steps, IE Mobile will display error messages for any script errors that occur.
- Enabling Cross-Domain Calls in Your Development Environment
When working in your development environment, you can disable the security check that prevents the XMLHTTP object from making a cross-domain call. You do this by modifying the value of the appropriate registry entry using the following steps.- Open the device/emulator registry using the Remote Registry Editor or other Windows Mobile registry tool
- Navigate to the registry key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Current Version\Internet Settings\Zones\3
- Change the value of the entry named 1406 to 0.
- Soft-reset the device/emulator
Once you complete these steps, the XMLHTTP object can call into any domain without restriction.
- how to configure Internet Explorer Mobile to display script errors?
- 參考資料:
- Mobile Web Development
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnanchor/html/anch_mobilewebdev.asp - Mobile DOM Reference Guide
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mobilesdk5/html/mogrfdomreferenceguide.asp - Mobile CSS Support
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mobilesdk5/html/mogrfdomreferenceguide.asp?frame=true - Windows Mobile Developers Wiki
http://channel9.msdn.com/wiki/default.aspx/MobileDeveloper.HomePage
- Mobile Web Development