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 <[email protected]> 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 <[email protected]> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---