Forum Moderators: open

Message Too Old, No Replies

Frames error

object expected.. but ..!

         

natty

12:32 pm on Jul 23, 2004 (gmt 0)

10+ Year Member



hi all,

i have a framed page, with a button and js in the left (nav) frame. the function will be doing things to the main frame.
top.main.etc....

the left frame also has some vbscript scripting in it.
but when i call my JS function (in the left frame)even if its a simple alert("hello");

i get object expected in line 1 of the main frame..
obviously im missing something as usual, but surely a simple alert script shouldnt have any problems..

and what does it care about the main frame anyhow?!

tia

nat

natty

1:24 pm on Jul 23, 2004 (gmt 0)

10+ Year Member



ok, i found the problem!

there is a <base target="main"> in the page..
still , knowing that, shouldnt i be able to call the script in the left frame (named menu) by doing a
top.menu.functionname();

and then reference all functions and elements, in the function or page in the full form : top.framename.whatever ..?

if im ranting then plz ignore me ;)

or how can i change the base target of the page on the fly?