|
Posted by Ian on April 14, 2005, 4:51 am
Please log in for more thread options
Can anyone help me with a problem I am having in using FRAMES.
I have a web page split into 3 frames as follows:
<FRAMESET rows="80,*">
<FRAME frameborder="0" framespacing="0" border="0" src="top.html"
name="top" scrolling="no">
<FRAMESET cols="180,*">
<FRAME frameborder="0" framespacing="0" border="0" src="left.php">
<FRAME frameborder="0" framespacing="0" border="0" src="main.html"
name="main">
</FRAMESET>
</FRAMESET>
The menu options which the user has access to are all within the left
hand frame and their results appear in the "main" part of the screen.
Everything works fine until I try to add an option which further splits
the main area into two further FRAMES.
For example, I have added an option in the "left" frame which directs
the following to the "main" frame:
<FRAMESET rows="60,*">
<FRAME frameborder="0" scrolling = "no" src="chat.html">
<FRAME frameborder="0" src="blank.html" name="bottom">
</FRAMESET>
The top half of the "main" frame (chat.html) now contains a javascript
menu which should further target events to happen in the "bottom" part
of the "main" frame but generates an error when using IE which says when
clicked:
Error: 'window.top.bottom' is null or not an object
I'm sure that I must be doing something wrong but am new to FRAMES so
would appreciate any help in sorting the problem out. Is it maybe that
I can't set further FRAMES in an existing FRAME perhaps and if so is
there a way round this?
|
|
Posted by David Dorward on April 14, 2005, 8:44 am
Please log in for more thread options
Ian wrote:
> Can anyone help me with a problem I am having in using FRAMES.
Not using frames is almost certainly the best option. They cause more
problems then they solve, and solve no significant problems not better
solve by other technology.
http://www.allmyfaqs.com/faq.pl?Problems_with_using_frames
> Error: 'window.top.bottom' is null or not an object
Top is, IIRC, a keyword so you are probably hitting a namespace conflict.
Its also a very bad name for a frame (since names of things should
represent their purpose, not their layout).
This is a JavaScript question BTW, and should have been directing at
comp.lang.javascript.
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/> Home is where the ~/.bashrc is
|
|
Posted by Andreas Prilop on April 14, 2005, 3:03 pm
Please log in for more thread options
On Thu, 14 Apr 2005, Ian wrote:
> Can anyone help me with a problem I am having in using FRAMES.
"Doctor, it hurts when I bend my leg like this."
"Well then, don't do that."
|
| Similar Threads | Posted | | Beginners guide to affiliate marketing | February 10, 2005, 11:06 am |
| frames question | February 16, 2005, 3:05 pm |
| Frames Question | March 7, 2005, 1:43 am |
| Frames question | November 21, 2005, 1:48 pm |
| Another question on changing 2 frames | November 16, 2004, 7:42 am |
| question about horizontal scrollbar in frames | August 11, 2006, 4:00 am |
| Question on frames within iframe and scrollbar issues | April 3, 2008, 2:15 pm |
| So, HOW should one do "frames" without Frames? | September 6, 2004, 7:30 pm |
| frames and N/FF/M | April 6, 2005, 2:38 pm |
| Re: CSS frames | April 17, 2006, 3:52 pm |
|