Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5
  1. #1
    Junior Member
    Join Date
    Oct 2009
    Posts
    2
    Member #
    20104
    Okay, I am designing a webcomic page for my best friend, and I need to know how to change only the middle section of the page when certain options are selected. I attatched a picture of the basic layout for the site.
    Under where it says 'comic' there will be arrows to go from one page to the other, but I want ONLY the middle portion of the page to refresh, not the entire page.
    Any suggestions?
    Attached Images Attached Images

  2.  

  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,693
    Member #
    5580
    Liked
    717 times
    Use an <iframe> for the part that is to refresh.
    You "target" that <iframe> with a link (URL).
    The contents of the iframe would be a PHP script that renders the correct content.


  4. #3
    Junior Member
    Join Date
    Oct 2009
    Posts
    2
    Member #
    20104
    thank you
    I will try that out.

  5. #4
    Junior Member
    Join Date
    Oct 2009
    Location
    Marion, TX
    Posts
    15
    Member #
    20137
    I agree, an iframe will work perfectly in this situation!

  6. #5
    Junior Member
    Join Date
    Oct 2009
    Posts
    6
    Member #
    20135
    iframe is definitely the easiest way. Although another (more XHTML friendly) way would be to use AJAX to obtain the comic info and display it without refreshing the page. However I personally don't like AJAX, as I think it's too immature to be widely used. Go with iframes for now


    Have a good one,
    Mike


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 03:55 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com