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" );
318 questions
6
votes
2 answers

Scripts running in jquery.ajax() loaded pages run document.ready too early

My site was using jquery.load() to do navigation on a big chunk of the page. I really appreciate the ability to only include only a particular part of the loaded content, here the div with id="content": $(frame_selector).load(url +" #content",…
Leopd
  • 41,333
  • 31
  • 129
  • 167
5
votes
3 answers

Load API results through ajax

I'm wondering that how API results can load as response comes. similar functionality I think using ajax from database we can get. But here from API(live results) SOAP API. any suggestions? EDIT My current ajax function is $.ajax({ type: "get", …
user123456789
  • 556
  • 3
  • 12
  • 31
5
votes
1 answer

Error in javascript after load it with jquery.load

in my a.html i write this: in the body of a.html i write window.onload = Flike() like.php is: echo "