I have a form within an aspx page,this form takes a file input and posts it to viddler server.
While the file gets posted to viddler server,In the backgorund i make ajax calls to a webmethod on the codebehind page, this webmethod calls the viddler server and returns the upload progress for that particular upload.
These Ajax calls are working fine in firefox, but not working in chrome,they are not even coming up in the chrome Network panel and none of these functions (success,error or complete) are firing.
Am i missing anything here?
Here is my ajax call:
function checkProgress() {
tokenValue = document.getElementById("uploadtoken").value;
var y = "{ token: 'token' }";
var jsonText = JSON.stringify({ token: tokenValue });
$.ajax({
type: 'POST',
url: "video_viddlerUpload.aspx/CheckProgress",
data: jsonText,
contentType: 'application/json',
dataType: 'json',
cache: false,
async: true,
success: function(json) {
var uploadProgress;
uploadProgress = eval('(' + json.d + ')');
},
error: function (xmlHttpRequest, textStatus, errorThrown) {
alert('There was an error uploading your file. Please try again.');
},
complete:function () {
alert('complete');
}
});
}
Please help me. I will be very helpful.