jussa
08-27-2007, 06:01 AM
hey all,
I have the following code in my 'onkeyup' event, which works fine...
<input type="text" id="txtActivityCode" class="textbox" style="width:211px" onkeyup="setTimeout(displayActivityCodes(this.value), 1000)" />
however, when i change the onkeyup event to be like so:
<input type="text" id="txtActivityCode" class="textbox" style="width:211px" onkeyup="setTimeout('displayActivityCodes(this.value)', 1000)" />
which is what is in all the examples i have seen, and also in the firefox error console (useless setTimeout call (missing quotes around argument?)), it wont send the value of this.value...instead it becomes undefined...
how do i get around this?
Cheers,
Justin
I have the following code in my 'onkeyup' event, which works fine...
<input type="text" id="txtActivityCode" class="textbox" style="width:211px" onkeyup="setTimeout(displayActivityCodes(this.value), 1000)" />
however, when i change the onkeyup event to be like so:
<input type="text" id="txtActivityCode" class="textbox" style="width:211px" onkeyup="setTimeout('displayActivityCodes(this.value)', 1000)" />
which is what is in all the examples i have seen, and also in the firefox error console (useless setTimeout call (missing quotes around argument?)), it wont send the value of this.value...instead it becomes undefined...
how do i get around this?
Cheers,
Justin