This is my ajax script:
type: "POST",
url:"getresponse.php",
data: data,
success: function(response){
uploadForm(response);
}
function uploadForm(response){
alert(response);
$('#fileupload').uploadifySettings('scriptData',{'response': response});
}
the alert function does show the right value of response but for some reason the value of response is not sent as POST. Funny thing is if I change {'response': 'apple'}. The value of response which is apple is sent as post. Could someone please help me. why is the actual value of response(which is integer in this case) is not being passed.