Message example, 6 message example – Grandstream GXV3140 GMI Guide User Manual
Page 36

Grandstream Networks, Inc.
GMI HTML SDK and API Guide
Page 36 of 43
www.grandstream.com
Last Updated: 09/2010
</
tr
>
</
table
>
</
body
>
</
html
>
6.6 Message Example
Figure 6: Message Example illustration
Refer to the code and the comments below for the implementation of Message Example:
File:message.html
//After the page loads, map the up/down button to tab/alt+tab
function
bind_tab
()
{
GMIEngine.mapupdown2tab
()
;
}
//When the page unloads, revoke the mapping between tab/alt+tab
function
unbind_tab
()
{
GMIEngine.revokemap
()
;
}
/******************************************************************************
* After the page loads, map the up/down button to tab button. When the page
unloads, revoke this mapping so that it would not influence other pages.
* * At the same time, all the key events are handled by the softkey_process function.
******************************************************************************/