Download iBrowse User's Guide

Transcript
Appendix B
— iBrowse Custom Edit Control
ITCAXEdit Events
All events are trapped using JavaScript code in the HTML. This
allows for the web page to react to certain user input in a way
that is not possible with the standard <input type=“text”> tag.
All of these events are optional. You do not need to implement
these on every web page but instead you should implement these
on an as-needed basis.
OnChange
The OnChange event is fired when the value of the ITCAXEdit
control has changed. No return value is required.
Syntax
Void OnChange( void )
Parameter
Description
void
No parameters
Example
Displays and alert every time the value in the control is changed.
<HTML>
<HEAD></HEAD>
<BODY>
EditBox1 <OBJECT ID=”IBEAX1”
CLASSID=”CLSID:D8A6AACE-0F02-4440-8F07-64CF68F33DE9” WIDTH=”50”
HEIGHT=”25”>
</BODY>
<SCRIPT LANGUAGE=”JSCRIPT” FOR=”IBEAX1” EVENT=”OnChange( )”>
alert(’The edit box value has been changed’);
return 0;
</SCRIPT>
</HTML>
88
iBrowse User’s Guide