Re: ajax-editor error message

2006-11-28 Thread nate

http://wiki.script.aculo.us/scriptaculous/show/Ajax.InPlaceEditor


--~--~-~--~~~---~--~~
 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?hl=en
-~--~~~~--~~--~--~---



Re: ajax-editor error message

2006-11-28 Thread carlosrg

Ok,

I have readed it, but I still don't understand it...
I have just started and I'm not very good in it.

with this code:

$this-Model-saveField('fiedl', value, true)

cake checks the correct format of the new value, if the format is wrong
it doesn't save the new data, and in a normal view (without ajax) this
message error is displayed with this code:

$html-tagErrorMsg('Model/field', 'Error message.')

Now How I can do that with $ajax-editor?

In the ajax view I have this:

? echo $new_value ?
? echo $html-tagErrorMsg('Model/field', 'Error message for email goes
here.') ?

But the tagErrorMsg doesn't run.

Thanks!


--~--~-~--~~~---~--~~
 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?hl=en
-~--~~~~--~~--~--~---