Polycom 3725-49106-001 Rev A Cell Phone User Manual


 
Web Application for Polycom Phones UC Software 5.0.0
Polycom, Inc. 44
Figure 4: VVX 500 Idle Browser
Using Browser JavaScript DOM Extensions
The browser provides access to phone-specific Document Object Model (DOM) JavaScript extensions.
The DOM is created by the browser after parsing an XHTML file. JavaScript’s primary role in the browser
is to modify properties of the DOM. The DOM is a collection of every object defined in the XHTML
including every button, label, and image. A Web application uses JavaScript to modify DOM properties
similarly to other XHTML objects.
For more JavaScript examples, see JavaScript Examples for the Browser.
This section provides information on the following custom DOM extensions:
PolySoftKey
PolyUri
Sample Browser Web Applications
PolySoftKey
The PolySoftKey DOM object provides control over the soft keys in the browser. You can use the
PolySoftKey DOM object to hide or show the default or custom defined soft keys as well as respond to
pressed soft keys.
Note: Soft key Support
Soft keys are only supported on the microbrowser. If you are making an application for the browser
on VVX phones, use HTML input type=’button’. See Control of Soft Keys.
The JavaScript PolySoftKey.* custom DOM extensions are as follows:
PolySoftKey.customSoftkeyEvent.connect({function}) Connects the JavaScript function
supplied to the callback when a custom soft key is pressed. Refer to Table 34: PolySoftKey DOM
Extension.