Brian Maddy wrote:
Hello,
I am making a form that uses ajax like in the car selector sample. I
would like to make another <div> on the page have the fade out visual
effect when the form widgets are updated.
I am able to add events to the onchange attribute (I have to add the
forms_submitForm() function also though), but the javascript is executed
before the ajax stuff updates the browser's DOM.
Known issue: https://issues.apache.org/jira/browse/COCOON-1718
<ft:widget id="address_city">
<fi:styling onchange="forms_submitForm(this); alert('asdf');"/>
</ft:widget>
Does anyone here know how to trigger an event after the ajax update
happens?
You could potentially figure out what JS function gets called within the
ajax library post-update and override it to execute some of your own
code in addition to its normal behavior. Unfortunately this ties you to
that specific ajax implementation, and I believe there are plans in the
works to replace it for some release in the not-so-distant future.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]