In FireBug:

    invalid object initializer
    [Break on this error] ,{asynchronous:true

If I put it Ajax.Updater works, but my function is not generic

                new Ajax.Updater(
                                td.id
                                ,'../adicionar'
                                ,{asynchronous:true
                                        ,parameters:{ ID : 17, Name : 'hello' } 
//
**********Attetion***********//
                                        ,evalScripts:true
                                        ,onComplete:function(request, json) 
{Effect.Pulsate(td.id);}
                                        ,requestHeaders:['X-Update', td.id]
                                        }
                                );


On 3 jun, 15:02, david <david.brill...@gmail.com> wrote:
> Hi Celso,
>
> is it possible to have a live page with the problem ?
> or something that explain the error.
> Or even better, what you want to do and what is the error.
>
> In fact, you'll have more chance to receive an answer with plenty of
> details.
>
> --
> david
>
> On 3 juin, 19:31, Celso <cels...@gmail.com> wrote:
>
> > var parameters = { ID : 17, Name : 'hello' };
>
> >                 new Ajax.Updater(
> >                                 td.id
> >                                 ,'../adicionar'
> >                                 ,{asynchronous:true
> >                                         ,parameters
> >                                         ,evalScripts:true
> >                                         ,onComplete:function(request, json) 
> > {Effect.Pulsate(td.id);}
> >                                         ,requestHeaders:['X-Update', td.id]
> >                                         }
> >                                 );
>
> > Does not works :(
> > Why?
>
> > Thanks,
> > Celso.
--~--~---------~--~----~------------~-------~--~----~
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