Polycom 1725-17693-210 Rev. A manual Sample Application

Page 23

Application Development

3.Change mb.proxy to the address of the desired HTTP proxy to be used by the Microbrowser.

For example, mb.proxy=10.11.32.103:8080

where 10.11.32.103 is proxy server IP address and 8080 is the port number.

4.Change mb.idleDisplay.home to the URL used for Microbrowser idle display home page.

For example, mb.idleDisplay.home=http://10.11.32.128:8080/sampleapps/idle

5.Change mb.idleDisplay.refresh to the period in seconds between refreshes of the idle display Microbrowser's content.

For example, mb.idleDisplay.refresh=10

6.Change mb.main.home to the URL used for Microbrowser home page.

For example, mb.main.home=http://10.11.32.128:8080/sampleapps/login

7.Change mb.limits.nodes to the maximum number of tags that the XML parser will handle.

For example, mb.limits.nodes= 256

8.Change mb.limits.cache to the maximum total size of objects downloaded for each page (both XHTML and images).

For example, mb.limits.cache= 200

For more information on configuration parameters, refer to the SIP 2.1

Administrator’s Guide.

Sample Application

This section presents two sample applications that you can use as a starting point for writing your own application.

To develop a static XHTML application:

1.Create a Sample.xhtml page with static information to be displayed. In this case, the static information will be "Hello World!".

<html>

<head>

<title>Sample Application</title> </head>

<body>

<p>HelloWorld!</p>

</body>

</html>

2 - 13

Image 23
Contents SIP Trademark Information About This Guide Developer’s Guide SoundPoint IP / SoundStation IP Contents Developer’s Guide SoundPoint IP / SoundStation IP Overview What is the MicrobrowserWhat is Xhtml How to Create Applications Microbrowser Supported Xhtml Elements Application DevelopmentBasic Tags Following link tag is supported Defines an anchor Another document by using the href attributeLink Tags Input TagsMethod=post This method Specified URL Following attributes are supportedMethod=get This method Input Img element defines an image Image TagsFollowing image tag is supported Img-Defines an image Requirement is 38400 bytesTable Tags Attribute Value/s Description Meta Information Tags Http SupportMicrobrowser User Interface Navigation and Form Editing Launching the MicrobrowserIdle Display Microbrowser Changing Configuration ParametersDeveloping an Xhtml Application Change mb.main.home to the URL used for Microbrowser home Sample ApplicationHttp//WEBSERVERADDRESSPORT/PLCM/Sample.xhtml Getting the Path Where BMP File has to be Saved AddStock.xhtml appears on the graphic display Xhtml file in the sip.cfg configuration fileReboot the phones Enter a stock symbol, then select the Get Quote soft keySymptom Problem Corrective Action TroubleshootingXML Errors Developer’s Guide SoundPoint IP / SoundStation IP Tag Type Tag Description Basic Tags AppendixUnsupported Xhtml Elements Unsupported elements and attributes areFrame Tags Tag Type Tag Description Output TagsBlock Tags Link TagsImage Tags Tag Type Tag Description Input TagsList Tags Meta Information Tags Tag Type Tag Description Table TagsStyle Tags Tag Type Tag Description Programming Tags Developer’s Guide SoundPoint IP / SoundStation IP Index Developer’s Guide SoundPoint IP / SoundStation IP