Results 1 to 2 of 2

Thread: [RESOLVED] Frame Redirect?

  1. #1

    Thread Starter
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Resolved [RESOLVED] Frame Redirect?

    Hi,

    How would I redirect the frame src of a frame set?

    Say I have the first frame used normally:

    Code:
    <!--Puts the order form in the top window-->
    <frameset rows="*,*"" frameborder="NO" border="0" framespacing="0">
      <frame src="../html/order_form.html" name="topFrame"/>
    </frameset>
    <noframes><body>
    
    </body></noframes>
    Now what I want to do is use the code I posted here to open another for the second frame via a button in the first frame.

    I have tried putting:

    Code:
    function help(objFrame){
    
    frame src="../html/help.htm" name="main"
    var  sFrame = objFrame.Main.framesrc.value}
    sFrame = "frame src="../html/order_form.html"}
    In the ".js" file but it made the form quit working!

    Thanks,

    Aaron
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  2. #2

    Thread Starter
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Frame Redirect?

    I put this in the framed window:

    Code:
     <h2>Order Form for Joe's Fruit Shop</h2>
    
      <p>A <span class="red">*</span> means you must fill in the details.</p>
      <iframe name="orderform" src="./orderform.html" height="60%" width="100%"></iframe>
      <iframe name="helppage" src="./blank.html" height="40%" width="100%"></iframe>
    In the javascript file I put:

    Code:
    function openHelp() {
      window.open("./help.html","helppage");
    }
    Finally in the order form html I put

    Code:
    <input type="button" value="Help" onclick="openHelp()" />

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width