Casio Naurtech CETerm Ver.5.1 Web Browser Programming Manual User Manual

Page 16

Advertising
background image

N

AURTECH

W

EB

B

ROWSER

S

MART

C

LIENTS FOR

W

INDOWS

CE .NET / P

OCKET

PC




Web Browser Programming Guide

Page 16


</form>
...
<script language=javascript>
function loadfields()
{
var username = document.CEBrowseX.CETerm.GetProperty(
"app.usertext.1" );
if (username)
{
// Load with cached user name for this device
document.form1.user.value = username;
}
}
...
</script>

When the login is successful the application would store the current user name
for the next login attempt


...
function onlogin( username )
{
// Login was successful
document.CEBrowseX.CETerm.SetProperty( "app.usertext.1",
username );
}
...

There are some limitations with User Text. The values are shared among all
emulator sessions and currently there are only 64 slots available.

Advertising