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
5
votes
1 answer

send data with jquery.load()

how do I send some data to the server in the .load() function of jquery. I tried this syntax: $('container').load('path', {key: value}); but for some reason it doesn't work
user765368
  • 15,808
  • 23
  • 85
  • 153
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
  • 546
  • 2
  • 12
  • 30
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 "