Results 1 to 3 of 3
  1. #1

    Refreshing 1 frame, rather then entire page!

    Hi guys, i have a page that has a top and bottom frame. Basically, i want to have the user click a link on the top frame, but have it update/display it on the bottom frame without refreshing the entire page.

    If someone can help me with this, i would be very thankful

  2. #2

    Re: Refreshing 1 frame, rather then entire page!

    Originally posted by RenderStream
    to have the user click a link on the top frame, but have it update/display it on the bottom frame
    hi,
    create the bottom frame with a "name" attribute
    for example:
    Code:
    <FRAME name="bottom_frame" src="bottom_content.html">
    then specify that name in a "target" attribute in your link
    for example:
    Code:
    <a href="new_content.html" target="bottom_frame"> link </a>
    more details here: http://www.w3.org/TR/REC-html40/present/frames.html

  3. #3
    Join Date
    May 2004
    Posts
    398
    Based on the prevoius example, you can use javascript even..
    PHP Code:
    <script language="Javascript">
    function 
    refreshframe() {
    parent.bottom_frame.location=parent.bottom_frame.location;
    }
    </script> 
    You can then call this function.. If you want to set a time for it.. set it on the body load to call this function using setTimeout(refreshframe(), 3000); time is set in millieseconds...

Posting Permissions

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