onkeypress, enter and iexplorer



Hello:

I'm having a problem with a simple javascript code that checks if the
enter key had been pressed or not. The code works propertly in mozilla,
but in iexplorer it only works one time, the second one the event isn't
throw any more, and I can't catch it.

Anyone can help me?

this is the sample code

function searchIntro(oEvent)
{
if (oEvento.keyCode)
iAscii = oEvent.keyCode;
else if (oEvent.which)
iAscii = oEvent.which;
else
return false;
if (iAscii == 13)
{
sendData();
}

}

<input type="text" id ="textBoxName1" name="CCO" size="69"
onkeypress="SearchIntro(event)"></tr>

Thanks a lot

.



Relevant Pages

  • Re: Where is libjavaplugin_oji.so in JRE 1.5.0_05?
    ... Plugin of libjavaplugin_oji.so into 64bit mozilla ... of firefox does not seem to be working. ... Prev by Date: ...
    (comp.lang.java.help)
  • Unterminated string literal
    ... I am using "C" to generate the javascript code. ... webbrowser for the following syntax. ... I see an error message alert("Test Unterminated string literal in the ... Javascript console of Mozilla web browser. ...
    (comp.lang.c)
  • Re: browser other than ie?
    ... > inefficient to me. ... > CE or are trying Mozilla on something else. ... You need to compare apples to ... reason is the JavaScript code because the pages are all created dynamically. ...
    (microsoft.public.windowsce.platbuilder)
  • HTTP 403 (forbidden)
    ... innocent including the Microsoft Help & Supoprt Pages!! ... It doesn't happen if I use another browswer such as Mozilla. ... Prev by Date: ...
    (microsoft.public.windowsxp.general)
  • Re: Ebay - what a heap of crap
    ... Monkey wrote: ... >>> I've got Mozilla on this machine, and use it quite frequently, ... Windows - who's controlling your PC? ... Prev by Date: ...
    (uk.rec.motorcycles)