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 any doubt and then try addingecho $_javascript_->codeBlock("$('YourModelNameSearch').focus()");to the returned Ajax view.Good luck!

--~--~-~--~~~---~--~~
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 unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/cake-php  -~--~~~~--~~--~--~---


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->codeBlock("$('YourModelNameSearch').focus()");

to the returned Ajax view.

Good luck!


--~--~-~--~~~---~--~~
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 unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



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.  To post to this group, send email to cake-php@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/cake-php  -~--~~~~--~~--~--~---


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 unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---