View Single Post
Old 06-03-2009, 05:12 AM   PM User | #2
Eldarrion
Regular Coder

 
Join Date: Feb 2009
Location: Wheeling, IL
Posts: 358
Thanks: 5
Thanked 62 Times in 60 Posts
Eldarrion is on a distinguished road
jQuery load does exactly that... loads the contents of a file and puts them inside a location specified. You might want to use this instead (From jQuery's AJAX API):

Code:
$.ajax({
  url: "test.html",
  cache: false,
  success: function(html){
    $("#results").append(html);
  }
});
And the link to the page:

http://docs.jquery.com/Ajax/jQuery.ajax

I'm sure you can figure it out.
__________________
The way to success is to assume that there are no impossible things. After all, if you think something is impossible, you will not even try to do it.

How to ask smart questions?
Eldarrion is offline   Reply With Quote