TroyMcClure
Technical User
I have javascript in the main page, which has an Iframe. Within the Iframe, there are textboxes. I want to trap keystroke keycodes from those textboxes inside the iframe. The source of the iframe is an asp page, and I have a function call for the onkeydown of the texboxes input tag.
The problem is that the function I'm calling within the iframes source code does not exist in that asp page--the function is part of the parent window's code. I can't have that function duplicated in the iframe--I need a way to call the parent window's function from the iframes textbox code--in addition I need the either pass the keycode from the iframe, or to reference the event.keycode of the Iframe from the parent windows javascript code.
Can this be done? Thanks,
T
The problem is that the function I'm calling within the iframes source code does not exist in that asp page--the function is part of the parent window's code. I can't have that function duplicated in the iframe--I need a way to call the parent window's function from the iframes textbox code--in addition I need the either pass the keycode from the iframe, or to reference the event.keycode of the Iframe from the parent windows javascript code.
Can this be done? Thanks,
T