E
Erik-Jan Bakker
Hi
I am not a javascript expert and I have a problem that the guru's
in this newsgroup probably can solve quickly. ;-)
I've made a webpage with three frames: top, left and mainframe.
I defined this in a frameset called index.htm.
Each frame is loaded with a specific page: top:title.htm, left:menu.htm
and mainframe:start.htm.
So far so good...
In menu.htm I have a javascript compiled menubar. Each menu button
reffering to a page to load in the mainframe.
When I tested my webpage on my own PC (I start with index.htm) everything
works fine.
When I upload the webpage to my host provider and approach the index.htm
the page is loaded correctly and the javascript menu buttons appears correctly.
But when I click on one of the menu button I got the message Error in Page:
"window.top.mainframe is null or not an object"
It looks like that the frameset definition is loaded after the javascript.
But I alreasdy put the javascript at the end of the source code of menu.htm
on purpose.
How can I solve this problem?
Why don't I have this problem on my own PC?
How can I force that the object mainframe is defined in the javascript source?
I hope there's someone here to help me out with some hints, tips or tricks.
Erik-Jan
I am not a javascript expert and I have a problem that the guru's
in this newsgroup probably can solve quickly. ;-)
I've made a webpage with three frames: top, left and mainframe.
I defined this in a frameset called index.htm.
Each frame is loaded with a specific page: top:title.htm, left:menu.htm
and mainframe:start.htm.
So far so good...
In menu.htm I have a javascript compiled menubar. Each menu button
reffering to a page to load in the mainframe.
When I tested my webpage on my own PC (I start with index.htm) everything
works fine.
When I upload the webpage to my host provider and approach the index.htm
the page is loaded correctly and the javascript menu buttons appears correctly.
But when I click on one of the menu button I got the message Error in Page:
"window.top.mainframe is null or not an object"
It looks like that the frameset definition is loaded after the javascript.
But I alreasdy put the javascript at the end of the source code of menu.htm
on purpose.
How can I solve this problem?
Why don't I have this problem on my own PC?
How can I force that the object mainframe is defined in the javascript source?
I hope there's someone here to help me out with some hints, tips or tricks.
Erik-Jan