button performs 2 actions - accesses 2 different pages

  • buzzby365
  • Proficient
  • Proficient
  • buzzby365
  • Posts: 288

Post 3+ Months Ago

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
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

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
  • buzzby365
  • Proficient
  • Proficient
  • buzzby365
  • Posts: 288

Post 3+ Months Ago

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
  • buzzby365
  • Posts: 288

Post 3+ Months Ago

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
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

Are you sure htmlgoodies doesn't have the script? I know for a fact I got it from there previously.
  • buzzby365
  • Proficient
  • Proficient
  • buzzby365
  • Posts: 288

Post 3+ Months Ago

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
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

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.
  • buzzby365
  • Proficient
  • Proficient
  • buzzby365
  • Posts: 288

Post 3+ Months Ago

<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
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

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.
  • buzzby365
  • Proficient
  • Proficient
  • buzzby365
  • Posts: 288

Post 3+ Months Ago

"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 39 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
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.