[jQuery] Re: Pause after .load request

2008-11-16 Thread ricardobeat
Ah, sorry. I made a mistake, this should work: $(document).ready(function() { var date_reg = $("input#date_requested").val(); var counter = -1; slideTimer = setInterval((function(date_reg,counter){ return function(){ //global var if (counter <= date_reg) { $('#resul

[jQuery] Re: Pause after .load request

2008-11-16 Thread [EMAIL PROTECTED]
I've been trying to play around with this, my javascript knowledge is very limit still (learning!). I keep getting this error: Error: useless setInterval call (missing quotes around argument?) I changed the script after running it a bit, to try and fix the error, still having problems: $(docum

[jQuery] Re: Pause after .load request

2008-11-16 Thread ricardobeat
There is no 'delay' or 'pause' in Javascript, you have to use a timeout or interval. Maybe this will work (interval, vars passed with a closure, if instead of while): $(document).ready(function() { var date_reg = $("input#date_requested").val(); var counter = -1; slideTimer = setInterva