1.3.4.4. Scripting languages

The Pocket Internet Explorer supports client side JavaScript 1.1 (ECMA-262). VBScript is not supported. As a general rule of thumb, Pocket Internet Explorer supports the Internet Explorer 3.02 DOM (Document Object Model). Some rules for scripting with the Pocket Internet Explorer are explained below.

In the Pocket Internet Explorer by Default Scripting Errors are OFF. Consequently, syntax errors in JScript, missing objects, or other reasons for JScript errors are ignored. The error prone script will terminate without any error message. The error messages can be switched on by adding the following registry key:

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main] "ShowScriptErrors"=dword:00000001

The registry of the PPC can be edited with the editor of the Microsoft Embedded Visual Tools or the RegEditCE Version 2.6 from Grundle Software http://www.grundlesoftware.com/.

In the Pocket Internet Explorer JScript in is Not Case Sensitive. On the other hand JScript is case sensitive in Internet Explorer versions 4.0 and 5.0. This might cause problems as the same script might run fine on the Pocket Internet Explorer but causes errors with the Internet Explorer on the desktop. Therefore, it is strongly encouraged that any JScripting is written using the correct case to ensure compatibility with a wider range of browsers, and to assist debugging.

The Pocket Internet Explorer does not support multiple windows. Therefore, calls to window.open will fail silently, unless the error messages are switched on. Also hyperlinks like <A HREF="..." TARGET="_new"(or any other non-existent frame)> will not cause the Pocket Internet Explorer to open a new browser window.

The detailed Pocket Internet Explorer DOM specification can be downloaded at: http://www.microsoft.com/mobile/pocketpc/developer/Webdeveloper.asp

The documentation on the JScript engine of the Pocket Internet Explorer, can be found at: http://msdn.microsoft.com/scripting/

Copyright © 2001-2003 by Rainer Hillebrand and Thomas Wierlemann