Jump to content


Photo

Targeting multiple IFrames


  • Please log in to reply
1 reply to this topic

#1 AV1611

AV1611
  • Members
  • PipPipPip
  • Advanced Member
  • 997 posts

Posted 23 February 2006 - 03:02 AM

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...

#2 AV1611

AV1611
  • Members
  • PipPipPip
  • Advanced Member
  • 997 posts

Posted 24 February 2006 - 12:41 AM

OK,

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.submit();        
    document.Form1.action = "AUDIOPLAY.PHP"   
    document.Form1.target = "ALLSEARCHI";    
    document.Form1.submit();        
    return true;
}
-->
</script></PRE>

<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;
   height:20px;
   font-size: 85%;
   text-align: center;" type="submit" name="button1" value="PLAY" onclick="return OnButton1()"></td><td>
</form>





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users