THANKS !!!!!!
On 3 jun, 16:48, Douglas <[email protected]> wrote:
> Ops! My mistake now O.o
>
> you'd use something like this:
>
> [code]
> var myParameters = { ID : 17, Name : 'hello' };
> new Ajax.Updater(
> td.id
> ,'../adicionar'
> ,{
> asynchronous:true
> ,parameters: myParameters // see? Setting
> Ajax.Updater.parameters as myParameters
> ,onComplete: function(resp, json) {/* something wild :)*/}
> });
> [/code]
>
> Cheers.
>
>
>
> On Wed, Jun 3, 2009 at 4:43 PM, Douglas <[email protected]> wrote:
> > On Wed, Jun 3, 2009 at 2:31 PM, Celso <[email protected]> wrote:
>
> >> var parameters = { ID : 17, Name : 'hello' };
>
> >> new Ajax.Updater(
> >> td.id
> >> ,'../adicionar'
> >> ,{asynchronous:true
> >> ,parameters
>
> > parameters is mispelled :/ you should use parameters:
> > 'string'|{object} instead. Removing this line it might work
>
> >> ,evalScripts:true
> >> ,onComplete:function(request, json)
> >> {Effect.Pulsate(td.id);}
> >> ,requestHeaders:['X-Update', td.id]
> >> }
> >> );
>
> >> Does not works :(
> >> Why?
>
> >> Thanks,
> >> Celso.
>
> > --
> > Believe nothing, no matter where you read it, or who said it, no
> > matter if I have said it, unless it agrees with your own reason and
> > your own common sense.
>
> --
> Believe nothing, no matter where you read it, or who said it, no
> matter if I have said it, unless it agrees with your own reason and
> your own common sense.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---