Processing
 

Async Ajax call not working in chrome

25/02/2014 12:03#1

Joined at: 5 months ago

Post: 1

Thank: 0

Thanked: 0

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.

25/02/2014 12:22Top#2

Joined at: 11 months ago

Post: 2

Thank: 0

Thanked: 0

Guess the problem is with cache:false as the jQuery Doc says - " Setting cache to false will only work correctly with HEAD and GET requests. It works by appending "_={timestamp}" to the GET parameters. The parameter is not needed for other types of requests, except in IE8 when a POST is made to a URL that has already been requested by a GET." and u are doing a POST request.

Similar articles

Chrome, THREE.js: Cross-origin image load denied

5 years ago - Reply: 5 - Views: 269

Prevent Google Chrome Log XMLHttpRequest

3 years ago - Reply: 5 - Views: 276

How can I include ChromeDriver in a JAR?

3 years ago - Reply: 3 - Views: 81

Chrome geolocation not working on any site

3 years ago - Reply: 1 - Views: 46

wrong borders' width in android browser

3 years ago - Reply: 4 - Views: 206

Uncaught SyntaxError: Unexpected token < On Chrome

3 years ago - Reply: 10 - Views: 468

Flashdata not getting cleared in Codeigniter

3 years ago - Reply: 5 - Views: 57

Illegal access Javascript error in Chrome

3 years ago - Reply: 1 - Views: 51

ng-repeat not updating in Chrome

3 years ago - Reply: 1 - Views: 81

Applying border to a checkbox in Chrome

4 years ago - Reply: 2 - Views: 118

open browser plugin using access vba

3 years ago - Reply: 1 - Views: 25

vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re