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
-~----------~----~----~----~------~----~------~--~---

Reply via email to