Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing content

Status
Not open for further replies.

johnsimpson

Programmer
Mar 28, 2006
60
GB
Hi guys,
not really sure if this is the right forum for this forgive me if its not!!

Im creating a website which is going to have a portfolio of my work on it. I have several images for each different project I have done but want to change the information without leaving the page.

eg:
for this project i have three images - at the moment they are going to different pages but i want to load the information without leaving the page.

how can i achieve this?

thanks
J
 
Many ways:

You could use frames (given that you're using them already).

You could deliver the content in DIV elements, and only show the one that you wish the user to see (this has the advantage of working well for users without JS - if you have them all shown, but hide all but one using JS on page load).

You could also use AJAX to fetch them on the fly.

Whatever you go with, I'd advise re-doing your layout to avoid the use of tables. Using tables for layout is so outdated and frowned upon now.

Hope this helps,
Dan

Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
i did yes thanks Dan,

I ended up using some show / hide div code

thanks for checking!!

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top