Closed Thread Icon

Preserved Topic: Help needed.....how can i get a 1 button to load 2 .htm pages in 2 different frames ? Pages that link to <a href="https://ozoneasylum.com/backlink?for=18416" title="Pages that link to Preserved Topic: Help needed.....how can i get a 1 button to load 2 .htm pages in 2 different frames ?" rel="nofollow" >Preserved Topic: Help needed.....how can i get a 1 button to load 2 .htm pages in 2 different frames ?\

 
Author Thread
Ultra
Nervous Wreck (II) Inmate

From:
Insane since: Jan 2002

posted posted 07-10-2002 08:44

I'm working on a site and i'm having some problem......

I have the following frames :

topframe,
navframe,
navoneframe,
mainframe

what i'm trying to do is having a link ( button in the "navframe" loading a .htm page in the "navoneframe" and one in the "mainframe"............

is it possible?

I've tried a few combination but i keep getting nowhere as only 1 page will load in one frame

Can some one please give ma a hand?

Thank you

Ultra

::UltrA::

[This message has been edited by Ultra (edited 07-10-2002).]

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 07-10-2002 09:34

<A HREF="javascript:top.frames['navoneframe'].location.href='page1.html';top.frames['mainframe'].location.href='page2.html';">CLICK HERE!!!</A>



Ultra
Nervous Wreck (II) Inmate

From:
Insane since: Jan 2002

posted posted 07-10-2002 09:42

thank you i will try that now



Ultra
Bluelines

kuckus
Bipolar (III) Inmate

From: Berlin (almost)
Insane since: Dec 2001

posted posted 07-10-2002 09:42

You can't change two frames at once with HTML only, you'll need a bit of JavaScript for that.

If you're in one frame and want to change the document that's displayed in another frame of the same frameset, you can do so by saying:

parent.framename.location.href = 'whatever.html';

Now you'll have to put this line into a link and replace 'framename' by 'navoneframe':

<a href="javascriptarent.navoneframe.location.href='page1.html';">Link</a>

And since you want two frames to be changed you simply add that line from above another time. That's the finished link:

<a href="javascriptarent.navoneframe.location.href='page1.html'; parent.mainframe.location.href='page2.html';">Link</a>

edit: seems that it took me a long time to explain this...

kuckus (cell #282)

[This message has been edited by kuckus (edited 07-10-2002).]

Ultra
Nervous Wreck (II) Inmate

From:
Insane since: Jan 2002

posted posted 07-10-2002 09:59

hmmm MAX version was working a bit better...........
but not 100% either
the 2 pages load but the actual frame with the link will change to !!
1 click 3 frame changes.............lol

I will do a few more experiment and i will post the url here so you can see better where i'm getting at

Thank you

Ultra

Ultra
Bluelines

kuckus
Bipolar (III) Inmate

From: Berlin (almost)
Insane since: Dec 2001

posted posted 07-10-2002 10:13

That's strange. Try this:

<a href="#" onclick="parent.navoneframe.location.href='page1.html'; parent.mainframe.location.href='page2.html';">Link</a>


kuckus (cell #282)

Ultra
Nervous Wreck (II) Inmate

From:
Insane since: Jan 2002

posted posted 07-10-2002 10:15

thx

[This message has been edited by Ultra (edited 07-10-2002).]

Ultra
Nervous Wreck (II) Inmate

From:
Insane since: Jan 2002

posted posted 07-10-2002 10:21

Thank you for the help everything as been sorted and working now )

Ultra

[This message has been edited by Ultra (edited 07-10-2002).]

« BackwardsOnwards »

Show Forum Drop Down Menu