The sections linked in the table below contain detailed reference information on the methods you can use to make interactive web apps for Series 40. All of these methods are associated with the mwl namespace and run in the client browser in the phone.
The following MWL methods are described:
| Name | Description |
|---|---|
| addClass() | Adds a specified CSS class to an element. |
| removeClass() | Removes a specified single CSS class from an element. |
| toggleClass() | Toggles a specified class attribute of an element. |
| switchClass() | Combines the removal of one element class and the addition of another in a single operation. |
| iterateClass() | Increments or decrements the specified class prefix name and applies it to the target node. |
| setGroupTarget() | Targets one node in a group to have a distinct class from the rest of its siblings. |
| setGroupNext() | Iterates to the next or previous element in a given block. |
| show() | Makes an element visible on the page. |
| hide() | Hides an element on the page. |
| toggle() | Controls the visibility of an element, making it visible if hidden and hidden if visible. |
| scrollTo() | Scrolls the browser to the block with the specified ID. |
| loadURL() | Breaks out of the web app and loads a specified resource directly into the root window of the Nokia Browser for Series 40. |
| setInputValue() | Updates the value of a specified HTML input. |
| timer() | Executes commands in response to a timer firing. |
| stopTimer() | Stops running timers. |