jquery load data

Posted by nabizan on Stack Overflow See other posts from Stack Overflow or by nabizan
Published on 2010-06-03T12:51:06Z Indexed on 2010/06/03 12:54 UTC
Read the original article Hit count: 158

Filed under:

dumbest question ever... but I want to somehow fill 'gid' value in data load

gid  = 123;
from = 33;
to   = 44;

$('#x').load('y', {'range['+gid+'][]' : [from , to]});

so I could get

[range] => Array
        (
            [123] => Array
                (
                    [0] => 33
                    [1] => 44
                )

        )

but with this syntax 'range['+gid+'][]' I get 'missing : after property id'. I'm desperate...

© Stack Overflow or respective owner

Related posts about jQuery