If you're using $ajax->observeField, you can add custom javascript to
your loaded option in the array.
ie. $ajax->observeField(....,array('loaded' =>
'document.getElementById('div_name').style.background-color =
"yellow"; document.getElementById....));

You get the idea.  Write some javascript in a separate file and
include it.  Have the loaded call the function and pass some
paramaters.

You are pretty much going to have to write your own, any way you look
at it.

You *may* be able to do this:  In the thtml file where you are getting
the generated messages to update the divs with, just have it update
the field that is getting observed by, giving the response of the text
field, with the highlighted word using $text->highlight and then when
it is loaded, use javascript to place the cursor at the end of the
text field and give it focus again so the user can keep typing.

This could be a problem if you have someone who types very fast.

On Apr 4, 6:26 pm, "pixelclub" <[EMAIL PROTECTED]> wrote:
> Hey all,
>
> I was wondering how to "highlight" the input fields that don't
> validate after submitting a form.
> Updating one div which contains the error messages works and color
> fading it,  but can't seem to figure out how to do it based on the
> validation results.
>
> Thanks


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to