[jQuery] Passing parameters to $.post
I've given the good ol' college try and haven't landed the bird yet. I want to pass parameters to $.post using a string but I keep getting "missing : after property id" in Firebug.. How can I dynamicly pass parameters? I need to dynamicly pass params and act on the returned array.
Code:
function postReturnData(url) {
var params = 'name:"John",id:"Pringle"';
$.post(url,{params },function(txt) {
alert("Return data from bind2.php: "+txt);
} );
}
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/