Problem with using onkeydown for this is that the # of DB requests is directly proportional to the length of the name being input; setting a freq. of 1 sec seems like a good solution. However, I can usually input my name in less than a second. Try performing the action on an onblur instead of onkeydown; that'll retain the same functionality, but reduce the # of requests to the DB.
-J. On Jul 15, 9:27 am, RJ <[EMAIL PROTECTED]> wrote: > hey got it.... when i put frequency of 1 sec , it gives the desired > result. > But as Mr Decot mentioned, it could be a lot on server... > > Thanks all > > On Jul 15, 6:15 pm, "Siegfried Hirsch" <[EMAIL PROTECTED]> > wrote: > > > I use frequecy for 1 seconds updates with the ajax call. Thats the way to > > handle > > it without putting a burden on the server with every key stroke ;) > > > On Tue, Jul 15, 2008 at 3:11 PM, RJ <[EMAIL PROTECTED]> wrote: > > > > it doesn't work i guess ... i want to make ajax calls on 'onkeyup' > > > event > > > how to use $ajax->observeField for the same?? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
