I'm continuing to refactor code with 1.2RC2 and latest cake learnings!

I've got an $ajax->observeField(...) working nicely watching a select list.
When the
option changes, a more lengthy description is dynamically updated into a div
on the page to help the user.

But... when you first load the page, there has not been a changeEvent yet,
so the description
for the initially selected item does not show up.

I guess you could write some raw javascript to observe "load" events, but
this does not seem
very elegant, and essentially would repeat the observeField code

Are there any neat cake tricks in the ajax helper callbacks or options that
would force
this observation to fire itself and load the description when the form is
first loaded?

Cheers, Howard

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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