This may be quite simple for many, but I am stuck trying to make a dynamic $.post() where the request (post) variables passed are fed from a dynamicly changing array.
/-- CODE --/ // just above this is a function that takes a url string and parses out the variables and store them in an assoc. array. This info will be used by the $.post(). url = "resources/java/community_rpc.php"; $.post( "/index.php", { run: url, ******THIS IS WHERE I WANT TO DO MY DYNAMIC ARRAY PASSING******* }, function(debug){ alert(dump(debug)); *********THIS IS WHERE THE CALLBACK IS RUN********* }, "json" ); /-- END CODE --/ I have tried different things, but each time I get an error that things aren't defined, or that [] is not permitted ... I am relatively new to JQuery, so I probably am missing a very important step. What I would like to get working would look like this: { run:url, dynamic1: value1, dynamic2:value2 ... dynamicN: valueN } Thanks Anthony