5. The state of JavaScript

5.1 What is the state of JavaScript on mobile devices?

M-Business Client, version 5.0 and later, supports a major subset of the JavaScript standard—not quite everything you can do in Microsoft's Internet Explorer, but all of the most important features. See JavaScript.

5.2 Can I use JavaScript to do things like putting M-Business Client in offline mode and disabling toolbar buttons?

Yes, as long as your users have version 5.0 or later. To force M-Business Client to work offline, use the following JavaScript:

avantgo.disconnect();

The following JavaScript shows how to disable individual toolbar buttons:

toolbar.buttonForName("back").visible = false;
toolbar.buttonForName("forward").visible = false;
toolbar.buttonForName("reload").visible = false;

For more information on JavaScript support in M-Business Client, version 5.0 and later, see JavaScript and M-Business JavaScript Engine reference.