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

jQuery UI slider with jQuery-AJAX load function not working

I have an html page called search.html which contains sliders, they work perfectly in this page. I'm trying to load this page into another one (my main page) using the jQuery .load() function. I removed the slider initialization from the search.html…
Ilyes Ferchiou
  • 583
  • 3
  • 10
  • 22
0
votes
1 answer

jquery function not working inside a javascript, but works great outside it

I have a php page which includes jQuery and a script.js file. When I put the following function inside my php file, the function gets executed and works as intended: