Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Wednesday July 18 2012 - 06:07:29
Targeting a frame to open in
Poster: D3vil
Dated: Wednesday July 31 2002 - 22:54:43 BST
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> Auto Quote","http://www.Allwoodins.com/auto target=I1",,,1
,"<img src=newsimage.gif border=0> Home Quote","http://www.Allwoodins.com/home target=I1",,,1
,"<img src=newsimage.gif border=0> Buisness Quote","http://www.Allwoodins.com/buisness target=I1",,,1
,"<img src=newsimage.gif border=0> 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
Poster: Andy
Dated: Thursday August 1 2002 - 10:36:43 BST
Have you seen the demo at this URL?
http://www.milonic.co.uk/menu/menusample.php?sampleid=16
-- Andy
New Problem
Poster: D3vil
Dated: Saturday August 3 2002 - 2:30:54 BST
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