H
hzgt9b
Using VS2005, VB.NET and lots of javascript,
BACKGROUND
I have a web app its (grasp) main page in frames. There are three
frames (1) left frame for navigation links, (2) buttonbar frame for
navigation buttons and (3) a content pane where the links are opened.
The content pane contains an iframe that is dynamically sized by
javascript to fit the viewport of the the content pane it resides in.
All the content from the navgation buttons and links (frames 1,2) are
opened inside the iframe inside the cotent pane. The pages being
opended in the iframe are PPT slides converted to HTML (automatically
by M$ PPT).
QUESTION 1
When the HTML pages (that were converted from PPT) are opened the
following javscript runs:
window.location.replace('myContentPage.htm');
Given that this is being opened inside an iframe which is inside
another frame, which object will have its location changed the iframe
or the content frame?
QUESTION 2
I want to trap the onkeydown event in the content pane. I added the
onkeydown event handler to the body of the page that defines the
iframe but it appears that those events are not propagaed out of the
iframe to my content frame. Does anyone know how to propagte the key
events up and out of the iframe so that I can catch them in my content
pane.
your thoughts appreciated...
BACKGROUND
I have a web app its (grasp) main page in frames. There are three
frames (1) left frame for navigation links, (2) buttonbar frame for
navigation buttons and (3) a content pane where the links are opened.
The content pane contains an iframe that is dynamically sized by
javascript to fit the viewport of the the content pane it resides in.
All the content from the navgation buttons and links (frames 1,2) are
opened inside the iframe inside the cotent pane. The pages being
opended in the iframe are PPT slides converted to HTML (automatically
by M$ PPT).
QUESTION 1
When the HTML pages (that were converted from PPT) are opened the
following javscript runs:
window.location.replace('myContentPage.htm');
Given that this is being opened inside an iframe which is inside
another frame, which object will have its location changed the iframe
or the content frame?
QUESTION 2
I want to trap the onkeydown event in the content pane. I added the
onkeydown event handler to the body of the page that defines the
iframe but it appears that those events are not propagaed out of the
iframe to my content frame. Does anyone know how to propagte the key
events up and out of the iframe so that I can catch them in my content
pane.
your thoughts appreciated...