PDA

View Full Version : loading content



alpharaven
June 26th, 2007, 11:39 PM
Is there a way to load content into a page with using Iframe or creating a new page. What I am trying to do is when a person clicks on a link content will load in a specific location with ever leaving the page. The content will consist of an image and text. How do I do that????


Thanks :thumb2:

borrob
June 27th, 2007, 01:46 AM
AJAX

localZero
June 27th, 2007, 05:09 AM
You'll find the answer here: http://dynamicdrive.com/

foodpk
June 27th, 2007, 05:50 AM
With jQuery, you'd just do


$("#id-of-your-link").click(function() {
$("#id-of-the-container").load("something.html");
});

alpharaven
June 27th, 2007, 07:17 PM
that worked great thank you all.