I noticed you're missing a comma...

var myAjax = new Ajax.Updater(target, url, {method: 'post',
parameters: { params: pars } onComplete:function(){


Between "{ params: pars } onComplete" (should be right before onComplete)


That may be unrelated, but an observation worth noting.





On Tue, Jun 2, 2009 at 4:47 PM, T.J. Crowder <t...@crowdersoftware.com> wrote:

>
> Hi,
>
> Guys, you're talking past each other.
>
> @Alex:
>
> This is perfectly valid:
>
> var x = "one=1&two=2&three=3";
> new Ajax.Updater(target, url, {parameters: x});
>
> @OP:
>
> This is perfectly valid (and preferred):
>
> new Ajax.Updater(target, url, {
>     parameters: {
>        'one':    1,
>        'two':    2,
>        'three':  3
>    }
> });
>
> -- T.J.
>
> On Jun 2, 9:37 pm, "partypeopl...@gmail.com" <partypeopl...@gmail.com>
> wrote:
> > ok, I tried your suggestion but this doesn't work at all
> >
> > have you ever tried the syntax you are suggesting? Because I think
> > it's wrong...
> >
> > Caught also in FF's error console as:
> >
> > Error: missing } after property list
> > Source File: XXXXXXXXXXXXXXXX
> > Line: 52, Column: 94
> > Source Code:
> >      var myAjax = new Ajax.Updater(target, url, {method: 'post',
> > parameters: { params: pars } onComplete:function(){
> >
> > and indicating exactly the parameters string, as to say "you cannot
> > open a bracket there, unless you close the previous one"
> >
> > However, putting a trailing coma after the parameters corrects this
> > syntax error, and everything works again
> >
> > Nevertheless, IE denies to deliver, even using this syntax :(
> >
>

--~--~---------~--~----~------------~-------~--~----~
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