Have a look at the updateObject parameter in the AjaxDirectLink tag.
This javascript object has methods which are called by the ajax logic
after the request is returned and allows for additional manipulation
and effects. Eg. highlight the new element, or manipulate a list.
You don't need it unless you are doing a little bit advanced stuff. If
you want to use it make sure you are using tacos HEAD as there are a
few changes related to when/how the methods of the update object are
called.
markus
On 10/11/05, Edward Scanzano <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> In the PartialPrototype example this piece of
> javascript is in the HTML. What does this do and do I
> need this in my code?
>
> Thanks
> E
>
> <script type="text/javascript">
> var responseObject = new Object();
> responseObject.ajaxUpdate =
> function(ajaxElement, responseElement, elementId) {
> if (elementId != "selectedCountries")
> Effect.Appear(elementId);
> else
> new
> Effect.Highlight('selectedCountries', {endcolor:
> "#eeeee0"} );
>
> $('partialWait').style.display="none";
> }
>
> responseObject.beforeAjaxUpdate = function() {
> $('partialWait').style.display="block";
> }
> </script>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]