a bit doubt about $ajax->observeField(), when i keep options['frequency'] =1 does it mean it makes ajax call every second when the particular field is focussed or the ajax call is made only when the value in the field is changed...
On Jul 16, 10:31 am, RJ <[EMAIL PROTECTED]> wrote: > yes onblur wld be a good option......but m not able to find how to do > that in cakephp. > could any one help in this as to how to make an ajax call on any > event(onBlur.onclick,etc) > > -RJ > > On Jul 15, 10:37 pm, Joel Perras <[EMAIL PROTECTED]> wrote: > > > 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 -~----------~----~----~----~------~----~------~--~---
