I
Iver Erling Årva
I have come across a problem with the onKeyDown event in some of my forms.
I'm using onKeyDown in <form> as a standard method to open my help screen
system throughout my system, but I have discovered that If I have a
<div></div> section somewhere and then load the contents of it from another
file using innerHTML after the main window is loaded, the onKeyDown event
doesn't trigger any more.
I'm using IE6 and the structure is:
<body onLoad=getDiv()>
<form onKeyDown=getHelp();>
<div id=pagebody></div>
</form>
</body>
where the getDiv function sets pagebody.innerHTML to something (which works
just fine). In pages where I don't use the <div>'s the getHelp() function
starts fine.
Any idea how I can work around this problem?
Thanks!
Brgds
(e-mail address removed)
I'm using onKeyDown in <form> as a standard method to open my help screen
system throughout my system, but I have discovered that If I have a
<div></div> section somewhere and then load the contents of it from another
file using innerHTML after the main window is loaded, the onKeyDown event
doesn't trigger any more.
I'm using IE6 and the structure is:
<body onLoad=getDiv()>
<form onKeyDown=getHelp();>
<div id=pagebody></div>
</form>
</body>
where the getDiv function sets pagebody.innerHTML to something (which works
just fine). In pages where I don't use the <div>'s the getHelp() function
starts fine.
Any idea how I can work around this problem?
Thanks!
Brgds
(e-mail address removed)