Questions tagged [jquery-load]

The .load() method in jQuery provides the ability to load content into the selected elements.

The .load() Load data from the server and place the returned HTML into the matched element.

.load( url [, data ] [, complete ] )

This method is the simplest way to fetch data from the server. It is roughly equivalent to $.get(url, data, success) except that it is a method rather than global function and it has an implicit callback function. When a successful response is detected (i.e. when textStatus is "success" or "notmodified"), .load() sets the HTML contents of the matched element to the returned data. This means that most uses of the method can be quite simple:

Example:

$( "#result" ).load( "ajax/test.html" );
319 questions
-1
votes
2 answers

load page into a div

When page load first time the page contents which are I load on Jquery.ready javascripts work perfect then when I use ajax to do some things and try to load page again javascript are not working on that second page which I try to load. I tried to…
cooolstaff
  • 75
  • 1
  • 8
-1
votes
1 answer

jQuery ajax load event not working

I am attempting to load in another part of a site into a div using jQuery's ajax's load event. Long story short--it isn't loading anything. I have tried using a link with a click event (for testing purposes). Here is the jQuery code:
Jonathan Moriarty
  • 468
  • 2
  • 5
  • 13
-2
votes
1 answer

jQuery.get() div html data from external page

When we use jQuery load() we can define a DIV on the external page we want to load into our content. Is there a similar way to get the html data from a specific DIV from an external page? Something like this? var url = someurl; var div =…
elbatron
  • 655
  • 3
  • 15
  • 29
-4
votes
1 answer

Jquery - load() multiple times

I have the following code:
1 2 3
21
22