nisroc Posted August 3, 2009 Share Posted August 3, 2009 What I am trying to do is make a entire static webpage but the one table cell that holds the main information to the site will change when a user clicks a link. I have been away from php for quite awhile but recall doing this with a link like, <a href="www.something.com" name="main">anchor</a>. then i would have a script that would call the main content when the page loads and when user clicks on a link the table cell changes to the new content. This is the part i cannot recall how to do. Now i have tried several methods but they keep loading the outside page as a page by itself. Any help on how i could do this? Quote Link to comment Share on other sites More sharing options...
abazoskib Posted August 4, 2009 Share Posted August 4, 2009 iframe? Quote Link to comment Share on other sites More sharing options...
ldougherty Posted August 4, 2009 Share Posted August 4, 2009 There are several ways to do this such as iframe or using javascript to change the content of an element. The iframe would definitely be the easiest solution as you can set the iframe name and then just target it. http://www.w3schools.com/TAGS/tag_iframe.asp Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.