beautypg.com

Gmi api description, Gmiengine.refresh(), 4 gmi api description – Grandstream GXV3140 GMI Guide User Manual

Page 4: 1 gmiengine.refresh(), 2 gmiengine.historypage()

background image

Grandstream Networks, Inc.

GMI HTML SDK and API Guide

Page 4 of 43

www.grandstream.com

Last Updated: 09/2010

For more details regarding menu.xml, please refer to the following document:

《GXV31XX XML Based GUI Customization Guide》

.

The example files are available for

download here

.

4 GMI API Description

In order to facilitate the ease of controlling the phone behavior within the html code,

we have developed and provided several basic API functions (packaged in Javascript).

This chapter provides introduction to all the API functions available.

4.1 GMIEngine.refresh()

Function:

GMIEngine.refresh()

Purpose:

Used to refresh the current page. The phone will obtain the current

page from the web server and reload the page on the phone.

Parameter and Return

Value:

Parameter:

None

Return Value:

None

Additional Description:

This API function is mainly used for testing during development. It is

advised to remove this function call in your program before official

release, so that the program will run as smoothly as the built-in

applications on the phone, providing users with better user

experience.

4.2 GMIEngine.historypage()

Function:

GMIEngine.historypage(num)

Purpose:

Go to the pages visited in history, as specified by num.

Parameter and Return

Value:

Parameter:

num - Any natural number. Negative numbers represents the

number of page records to go backward. 0 represents the current

page. Positive numbers represents the number of page records to