Ok. I have this script below which with slight modification works perfectly for sending 3 of the 4 parameters that I need to post cross-domain style. I am using jQuery's post method with jsonp formatting to make this possible.
I am trying to figure out how to pass in a variable to this method as a parameter and I've tried a ton of variations. Who can help? How do I do this?
<script type="text/javascript">
$(document).ready(function(){
var randomVariable = "Something That Changes in Other Functions";
$.post("urlWithDifferentDomain", {"PropertyWithVariableValue" : randomVariable,
"login":"moreInfo",
"x":1,
"y":2},
function(data){
alert(data.x + "," + data.y + " : " + data.message);
//do something with data here
},'jsonp'
);
});
</script>