posted 15 years ago
Why always show AutoSuggestControl is not defined?
I have a js file defined the class AutoSuggestControl
function AutoSuggestControl(oTextbox) {
...........
}
And the index.html included this file and new the object at onfocus event.
<script type="text/javascript" src="autosuggest.js"></script>
<input type="text" id="name" onfocus="new AutoSuggestControl(this)" />
But when the textbox is onfocus, a javascript error shows AutoSuggestControl not defined.
[ August 06, 2008: Message edited by: Calvin Wong ]