Understanding Managing Layout JavaScript

You can invoke JavaScript events and jQuery Mobile events on many page elements in the Mobile Application Platform. In most cases, you define the JavaScript on the JavaScript page and then reference the JavaScript event and function on specific page element properties.

If you have assigned one or more templates to a layout, any JavaScript that you included in the templates appears on the JavaScript page in read-only format. To make changes to JavaScript defined in a template, you must open the template, make the necessary changes, and then use the Sync Element Types button on the Layout page to synchronize the modifications with the layout.