Re: Ajax helper observeForm

2006-08-31 Thread majna
Tnx bitrace. bake on2006/8/31, bitrace <[EMAIL PROTECTED]>: Hi!I was having similar problems to this and managed to fix it with thefollowing snippet!First determine the name of the input field you wish to focus. Its namewill be of the form YourModelNameSearch.  Use view source for the avoidance of

Re: Ajax helper observeForm

2006-08-31 Thread bitrace
Hi! I was having similar problems to this and managed to fix it with the following snippet! First determine the name of the input field you wish to focus. Its name will be of the form YourModelNameSearch. Use view source for the avoidance of any doubt and then try adding echo $javascript->code

Re: Ajax helper observeForm

2006-08-13 Thread majna
Tnx RosSoft,This just wont't work.I'll try on #prototype IRC.RosSoft wrote: i'm not sure but try: 'loaded'=>"Element.hide();$('search').focus(); " --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. T

Re: Ajax helper observeForm

2006-08-13 Thread RosSoft
i'm not sure but try: 'loaded'=>"Element.hide(); $('search').focus(); " --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubsc

Ajax helper observeForm

2006-08-12 Thread majna
Is there any way to get focus on element? exmpl: $ajax->observeForm('MyForm',array( 'frequency'=>2,'url'=>'/admin/news/index','update'=>'content', 'loading'=>"Element.show('ajax_loading');", 'loaded'=>"Element.hide('ajax_lo