…ke autoStop work after restarting
…pdater Conflicts: jquery.periodicalupdater.js
…er a request finishes.
…-increment of timer when not modified
…and provided the handle to the callback function
…e current number of calls.
…metimes not an issue just felt like cleaning it up for consistency's sake in my fork :)
in jQuery 1.4 and up the $.ajax() call will now automatically convert the "data" returned into a JS Object when using "type:json". The plugin was always calling JSON.parse(remoteData) because older versions of jQuery always returned a json string. Added a check to make sure that type == json AND remoteData is a string before trying to parse remoteData. This will allow the correct parsing to happen for pre1.4 jQuery, while skipping this step when remoteData is already an Object (the case in jQuery 1.4+) Verified that this works nicely with jQuery 1.3.2 and jQuery 1.4.2
… new ones. * Actually adjusting the timer up as intended; this must've been a bug because it never worked for me until I commented out the line that resets the timerInterval to settings.minTimeout in ajaxSettings.success * Not firing the AJAX call immediately on page load; this is supposed to be a Periodical _Updater_. Meaning the page is already loaded once and you don't need an update 1ms after that happens. Pointless IMHO. Instead firing after the specified minInterval after document load. * Providing debug functions to illustrate how timer is boosted. This helps you guage your min, max, and multiplier settings. * Passing status, and xhr object to the success() callback, because I want to know what the status was. (e.g. only attempt to prepend data to the page if status=='success' and not when status=='notmodified')