Targeting a frame to open in

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
User avatar
D3vil
Beginner
Beginner
Posts: 3
Joined: Wed Jul 31, 2002 10:48 pm
Location: NC
Contact:

Targeting a frame to open in

Post by D3vil »

I have targeted my menue to open its links in my I-frame wich is named "I1" but when i use the target=I1 script i get tons of javascript errors "Object does not support this property or method" and it will not work. this is a sample of my scripting..


addmenu(menu=["OnlineQuotes",
,,170,1,"",style1,,"left",effect,,,,,,,,,,,,
,"<img src=newsimage.gif border=0>&nbsp;Auto Quote","http://www.Allwoodins.com/auto target=I1",,,1
,"<img src=newsimage.gif border=0>&nbsp;Home Quote","http://www.Allwoodins.com/home target=I1",,,1
,"<img src=newsimage.gif border=0>&nbsp;Buisness Quote","http://www.Allwoodins.com/buisness target=I1",,,1
,"<img src=newsimage.gif border=0>&nbsp;Life Insurance Quote","http://www.Allwoodins.com/life target=I1",,,1
])



-----why will my links not open in a target frame? the script looks right to me.--------
thanks -devil 8O
Winter of Souls
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Have you seen the demo at this URL?

http://www.milonic.co.uk/menu/menusampl ... ampleid=16

-- Andy
User avatar
D3vil
Beginner
Beginner
Posts: 3
Joined: Wed Jul 31, 2002 10:48 pm
Location: NC
Contact:

New Problem

Post by D3vil »

well i used that script, i can atleast pass over my links now without getting an error (thankk yooouuuu!!!)but now i get a new error when i try to click the links. it tries ti open this adress --> javascript:openIFrame("I1","http://www.allwoodins.com/home")

if i shift click
if i normally click i get a javascript error.
addmenu(menu=["news",
,,120,1,"",style1,,"left",effect,,,,,,,,,,,,
,"Recent","javascript:openIFrame(\"I1\",\"http://www.allwoodins.com/recent\")",,,0
,"Archived","javascript:openIFrame(\"I1\",\"http://www.allwoodins.com/archived\")",,,0
])

i wrote this script using the link sent to me as a model
-d3vil
Winter of Souls
Post Reply