loading - Ajax: wait X seconds before load -
I have a search form that shows live results in a specific div (see there)
I 'has changed the script to a bit and now when a user checks one of the check boxes, the result is auto-refresh. Load function is controlled by On Change Event.
Is there a way to load the AJAX result script after a certain time? For example, if I select a checkbox for a script, wait 2 seconds before loading the script in this way the user can check, for example, 2 or 3 checkboxes and when the selection is stopped, then the Ajax script Will load.
- Edit -
Ajax script is not done through the call function, this code is:
$ (document) .ready (function () {$ ('# category_filter') Click (function () {var catArray = new Array (); var j = 0; for (var i = 0; i
Example
Example
<("'Hello' warning ()", 2000) Pre> setTimeout;
Comments
Post a Comment