PDA

View Full Version : Multiple targets link follow up...



almarenan
11-19-2004, 12:10 PM
Ok, the first part is working, thanks to you all.
The exact code is in the form of :
javascript:{onClick:parent.frame1.location='xxx.html';parent.frame2.location='yyy.html'}

Now using it on hvmenu (which was the overall point anyway) create a new prob :
If you use this code on more than one menu item, the pages asked for MUST be on the same level (i.e. NOT on folders or sub-folders). If you use something like this :
javascript:{onClick:parent.frame1.location='folder1/xxx.html';parent.frame2.location='folder1/yyy.html'}
and, on another item
javascript:{onClick:parent.frame1.location='folder2/www.html';parent.frame2.location='folder2/zzz.html'}
everything is swell the first time but on the second, you have a message that "the page YourSite/folder2/xxx.html cannot be found". It's normal because xxx.html is in folder1...

I've tried something like this :
javascript:{onClick:parent.frame1.location='../folder1/xxx.html';parent.frame2.location='../folder1/yyy.html'} but to no avail.

I think it's a question of relative versus absolute addressing but I can't seem to get the hang of it and I'm going to have a LOOOOT of pages to address...

Help me, please