Thursday, August 26, 2010

Re: Verify username, Ajax observeField - How to display the error message?

Anyone?
--
Louie Miranda
 - Email: lmiranda@gmail.com
 - Web: http://www.louiemiranda.com



On Thu, Aug 26, 2010 at 2:37 PM, Louie Miranda <lmiranda@gmail.com> wrote:
I am trying to get ajax to work on my username field to check if the account is taken or not using this function.
http://bin.cakephp.org/view/1632401399

The function works. And the view/register.ctp (below)
http://bin.cakephp.org/view/258044293

Works too, I debug using Firebug.

I am just curious, how can I display the error message on view/register.ctp? Can I use the error message from the model? Is there a specific <div>? or I should create another <div> for this special function?

Please advise.
--
Louie Miranda
 - Email: lmiranda@gmail.com
 - Web: http://www.louiemiranda.com


Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
 
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: