hi Tobias,
I advise you to add an onException handler to the outer Ajax.Request
as the default exception handler silently eats any error thrown in the
other handlers.  This way you'll have more insight why the
Ajax.Updater is failing.

cheers

--
mona

On Wed, Jun 3, 2009 at 9:21 AM, majestixx <majestixx...@gmail.com> wrote:
>
> Hi,
> I tried to nest ajax requests. I think this should be possible, but
> just the outer is executed properly.
>
> The script is working till the update in the onComplete function. The
> ajax.updater is not started. Firebug has no network activity and
> nothing happens.
>
> Any idea where the error is? Probably I am just too blind.
>
> Thanks in advance
> Tobias
>
> new Ajax.Request(commentAjaxPath+"comments.ajax.php5", {
>        method: "post",
>        parameters: {
>                get: "saveComment",
>                senderName: $F('senderName'),
>                senderEmail: $F('senderEmail'),
>                text: $F('text'),
>                recaptcha_challenge: Recaptcha.get_challenge(),
>                recaptcha_response: Recaptcha.get_response(),
>                pageFeatureID: $F('pageFeatureID'),
>                sendNotification: $F('sendNotification')
>        },
>
>        onComplete: function(transport) {
>                if(Object.isString(transport.responseText)) {
>                        $('comment_div').update(transport.responseText);
>
>                        new Ajax.Updater('comments', 
> commentAjaxPath+'comments.ajax.php5',
> {
>                                                parameters: {
>                                                        get: "showComments",
>                                        pageFeatureID: $F('pageFeatureID')
>                                                }
>                        });
>                }
>        }
> });
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to