Guys, you're talking past each other.


This is perfectly valid:

var x = "one=1&two=2&three=3";
new Ajax.Updater(target, url, {parameters: x});


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>
> 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
> 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 
For more options, visit this group at 

Reply via email to