Jump to content


This topic is now archived and is closed to further replies.


Targeting multiple IFrames

Recommended Posts

When I hit "Submit" I do this:
<form name="book" method="POST" action="JFBVForm.PHP" TARGET="REFERENCE">
I want to do, for example, BOTH of these:
<form name="book" method="POST" action="JFBVForm.PHP" TARGET="REFERENCE">
<form name="audio" method="POST" action="SOMETHINGELSE.PHP" TARGET="MAIN">

How can I do that?

So one displays, for example, an audio-control in an IFrame so you can listen to the Bible on MP3 while the other displays a query result displaying the text of the passage being read...

Share this post

Link to post
Share on other sites

I found the answer on a Google search, but I had to make some slight adjustments.

This now work!

You click the button, and it does 2 things at once.

1. It submits the CHAPTER and VERSE to one frame with the audio control and plays the Bible MP3
2. It submits the CHAPTER and VERSE to another frame and displays the text of the passage

<PRE lang=jscript><script language=javascript>
function OnButton1()
    document.Form1.action = "http://baptistrevival.com:8081/bible/bibles/bibleform.php"    
    document.Form1.target = "BIBLE";    
    document.Form1.action = "AUDIOPLAY.PHP"  
    document.Form1.target = "ALLSEARCHI";    
    return true;

<form name="Form1" value="audio" method="POST" >

<input SIZE="4" name="CHAPTER" type="text" ></td>
<input type = "hidden" name="BOOK" value="<?php echo $BOOK; ?>">
<input type = "hidden" name="KJV" value="KJV">
<input style="color: #000000;
   background: #c0c0c0;
   text-decoration: none;
   width: 40px;
   font-size: 85%;
   text-align: center;" type="submit" name="button1" value="PLAY" onclick="return OnButton1()"></td><td>

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.