Link to home
Start Free TrialLog in
Avatar of ruperts
ruperts

asked on

one click - update 2 frames..

Want a link which updates two frames at the same time (the link is in one of the frames to be updated.)

thanks
Avatar of MasseyM
MasseyM

<A HREF="javascript:parent.framename.location='thepage.htm';parent.framename.location='thepage.htm';">Click here...</A>

should update the two frame you want to update...
How about:

<a href='pagetoupdatethisframe.htm' onclick='parent.otherframe.location="pagetoupdateotherframe.htm";return true;'>Click to update this frame and other frame</a>

???

Tom
ASKER CERTIFIED SOLUTION
Avatar of MasseyM
MasseyM

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ruperts

ASKER

having problems...
please check out

www.rest.demon.co.uk/temp

left frame- contents
right frame - mainwin

Should load qxl.html (my page) on the left hand side, and their site on the right hand site (www.qxl.com) when you click on QXL logo.

I've tried both ie5 and netscape (give this error - JavaScript Error: [unknown origin], - parent.mainwin has no properties).

thanks...


Rupert


remove the

<ase target=main> tag at the top of the page.

Avatar of ruperts

ASKER

Thanks....
That works..
JavaScript  should really be left on parameters that are meant to handle scripts. When I tried this line I got all sorts of funky behaviors. It should really look like this:

<A HREF="#" onClick="javascript:parent.framename.location='thepage.htm';parent.framename.location='thepage.htm';">
      Click here...</A>

The hash tells the browser that the location is not changing and it still excutes the link just like the above solution.