oke.. timeout is a default javascript function :P i`m getting somewhere now.
i will post my results when i`m getting close to the final result. or i will put it online somewhere.. i think this can be verry usefull for others aswell. 2007/3/23, Mark <[EMAIL PROTECTED]>:
do you have a special timeout extension installed? cause that`s not working for me. 2007/3/23, Mateusz Misiorny <[EMAIL PROTECTED] >: > > On 3/23/07, Mark <[EMAIL PROTECTED] > wrote: > > ehm.. my javascript knowledge is kinda limited ^_^ > > would you (or anyone that has some javascript knowledge) like to make > a > > sample code? i can expand it to mu wishes when i have a sample code > but it`s > > really hard for me to start from scratch. i can do all the php coding > myself > > Ok, from my experience you learn more if you figure out stuff yourself > so I wanted to just push you in the right direction, but here is the > code I use: > > var timer; > jQuery(function($) { > $('#text').bind("keyup", function() > { > clearTimeout(timer); > timer = setTimeout(make_request, 1000); > }); > }); > > function make_request() { ajax stuff } > > > <input type="text" name="text" id="text" size="25"/> <br/> > > > Hope it gets you going! > Matt > > _______________________________________________ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ >
_______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/