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.

Member Avatar for diafol

You haven't posted the first bit. And you should use [ CODE ] tags. Difficult to read without them.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.