Re: Onkeypress event

2008-07-16 Thread RJ
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 w

Re: Onkeypress event

2008-07-15 Thread RJ
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 #

Re: Onkeypress event

2008-07-15 Thread Joel Perras
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 on

Re: Onkeypress event

2008-07-15 Thread RJ
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

Re: Onkeypress event

2008-07-15 Thread Siegfried Hirsch
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 t

Re: Onkeypress event

2008-07-15 Thread RJ
it doesn't work i guess ... i want to make ajax calls on 'onkeyup' event how to use $ajax->observeField for the same?? On Jul 15, 6:04 pm, "Siegfried Hirsch" <[EMAIL PROTECTED]> wrote: > what about trying with the $ajax->observeField helper. > > On Tue, Jul 15, 2008 at 2:45 PM, RJ <[EMAIL PROTECT

Re: Onkeypress event

2008-07-15 Thread Siegfried Hirsch
what about trying with the $ajax->observeField helper. On Tue, Jul 15, 2008 at 2:45 PM, RJ <[EMAIL PROTECTED]> wrote: > > Thanks for the reply.. The client side requirement is achieved... > but i want to make a check whether the user-name is already registered > on the fly(i.e ajax call on o

Re: Onkeypress event

2008-07-15 Thread RJ
Thanks for the reply.. The client side requirement is achieved... but i want to make a check whether the user-name is already registered on the fly(i.e ajax call on onkey event) .how to do that ? On Jul 15, 5:28 pm, Kyle Decot <[EMAIL PROTECTED]> wrote: > That's going to get to be a lot of r

Re: Onkeypress event

2008-07-15 Thread Kyle Decot
That's going to get to be a lot of requests I would think. I suggest either checking on submit, or having a "Check Availability" button. Here is the code to put the value of one field into another. That should get you started. echo $form- >input("username",array("onkeydown"=>"document.getElementB

Onkeypress event

2008-07-15 Thread RJ
I want to implement the following scenario: there are 4 text-boxes ,when user enters his name in the first input box, i want that data(i.e user name) to be auto-filled in the 4th input box after validating it with database(to check uniqueness) . For this i'll need to make an ajax request on 'on