button performs 2 actions - accesses 2 different pages

  • buzzby365
  • Proficient
  • Proficient
  • No Avatar
  • Joined: May 14, 2004
  • Posts: 288
  • Status: Offline

Post May 27th, 2004, 5:57 pm

i know there is a script for this but i just cannot find it. i need a script for a button that can generate 2 different pages at the same time. i have 2 iframes - 1 iframe displays nothing, the other displays a page with some info. i would like a button that can access its info page and display it in the same iframe while also performing the task of displaying its relative pictures in the iframe beside it. i know this is possible with some javascript. i just cant find where that is.

i hope i have explained the dilema properly
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post May 27th, 2004, 5:57 pm

  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jun 15, 2003
  • Posts: 4583
  • Loc: Maryland
  • Status: Offline

Post May 27th, 2004, 6:08 pm

I know it's possible too. I think http://www.htmlgoodies.com has a tutorial on it, you'll of course have to tailor it to your needs. If all else fails check out http://www.bigwebmaster.com or http://www.hotscripts.com
Pixel Acres V2
  • buzzby365
  • Proficient
  • Proficient
  • No Avatar
  • Joined: May 14, 2004
  • Posts: 288
  • Status: Offline

Post May 27th, 2004, 6:17 pm

i looked at the sites but didnt find anything. its funny because i had this very script a while back. i remember because its was quite an unusual thing to have. but so far cannot find it
  • buzzby365
  • Proficient
  • Proficient
  • No Avatar
  • Joined: May 14, 2004
  • Posts: 288
  • Status: Offline

Post May 27th, 2004, 6:19 pm

i am also not sure how to search for it. what is it called? if i knew that then i could tailor my search better
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jun 15, 2003
  • Posts: 4583
  • Loc: Maryland
  • Status: Offline

Post May 27th, 2004, 6:33 pm

Are you sure htmlgoodies doesn't have the script? I know for a fact I got it from there previously.
Pixel Acres V2
  • buzzby365
  • Proficient
  • Proficient
  • No Avatar
  • Joined: May 14, 2004
  • Posts: 288
  • Status: Offline

Post May 27th, 2004, 6:39 pm

i think i have found it. its a form script. here is the link:

http://www.htmlgoodies.com/tutors/2atonce.html
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jun 15, 2003
  • Posts: 4583
  • Loc: Maryland
  • Status: Offline

Post May 27th, 2004, 6:40 pm

That'd be it! Now give it a try, and post back here with any problems. :) (I don't know much JS but someone will.
Pixel Acres V2
  • buzzby365
  • Proficient
  • Proficient
  • No Avatar
  • Joined: May 14, 2004
  • Posts: 288
  • Status: Offline

Post May 27th, 2004, 6:50 pm

<FORM>
<INPUT TYPE="button" Value="Change Three Frames at Once"
onClick="parent.frames[1].location='zippy5.html';
parent.frames[2].location='zippy6.html';
parent.frames[3].location='zippy7.html';">
</FORM>

this is the code for FRAMES but i have IFRAMES. how is the code different for IFRAMES? this code changes 3 frames but i want to change 2 iframes.
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jun 15, 2003
  • Posts: 4583
  • Loc: Maryland
  • Status: Offline

Post May 27th, 2004, 6:59 pm

Did you even try implementing it? I am not sure what the hierarchy is for iframes, but I would try osmething like

Code: [ Select ]
parent.getElementById('iframe1').src='file.html'


where iframe1 is set by:

Code: [ Select ]
id='iframe1'


in the iframe tag.
Pixel Acres V2
  • buzzby365
  • Proficient
  • Proficient
  • No Avatar
  • Joined: May 14, 2004
  • Posts: 288
  • Status: Offline

Post May 27th, 2004, 7:20 pm

"Changing two or three frame areas with one link.

TWO FRAMES

<a href="newpage1.html"
onClick="parent.left.location='newpage2.html'" target="right"> text or image </a>

newpage1.html will load into the area called right.
newpage2.html will load into the area called left.
change the right, left, newpage1.html, and newpage2.html values to suit your needs.

THREE FRAMES

<a href="newpage1.html" onClick="parent.left.location='newpage2.html';parent.right.location='newpage3.html'" target="middle"> text or image </a>

newpage1.html will load into the area called middle.
newpage2.html will load into the area called left.
newpage3.html will load into the area called right.

again, change all said values to suit your site needs."


i found this tute. supposed to do the job really well. gonna try it.

Post Information

  • Total Posts in this topic: 10 posts
  • Users browsing this forum: No registered users and 72 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.