Vote example, 5 vote example – Grandstream GXV3140 GMI Guide User Manual
Page 28

Grandstream Networks, Inc.
GMI HTML SDK and API Guide
Page 28 of 43
www.grandstream.com
Last Updated: 09/2010
}
……
<
h4
>
<
font
color
=
'yellow'
size
=
"5"
>
Send UDP to
www.ipvideotalk.com
</
font
></
h4
>
<
div
>
Data:
<
input
type
=
"text"
id
=
"udp_data"
value
=
"I'm test
string"
><
input
id
=
"udp-submit"
onclick="udp
(
document
.getElementById
(
'udp_data'
)
.valu
e
)
"
type
=
"button"
value
=
"Send"
>
<
br
>
Response:
<
input
type
=
"text"
id
=
"udp_response"
>
</
div
>
6.5 Vote Example
Figure 4: Vote Example illustration 1
File:myvote.html
/******************************************************************************
* After the page loads, the first radio boxes will be highlighted. At the same time,
all key events are handled by the softkey_process function.
******************************************************************************/
<
body
onload="myvote_focus
()
;"
onkeydown="softkey_process
(
event
.keyCode
)
;"
id
=
"myvote-body"
>
<
table
id
=
"myvote-table"
>
<
tr
>
<
td
>
<
p
style
=
"margin:10px 0 0 20px;font-size:20px;"
>
Welcome to GMI Vote
Demo.
</
p
>