Hi
I did upload of large files, which shows upload progress thru ajax call every one second.
It works fine in FF and IE, but not in Chrome and Opera.
It seems the Chrome has problem to call ajax if there is form submitting in same time.
and i have button in form likeCode:window.OnFormSubmit = function () { intervalProcess = window.setInterval(function () { $.ajax({ type: 'GET', url: link, cache: false, data: '', success: function (response) { UpdateProgress(response); }, error: function (xhr) { if (xhr.responseText) { ShowMessage(xhr.responseText); } else alert('Unknown Error!' + xhr); StopUpdating(); } }); }, tickInterval); uploadForm.submit(); }
<input id="uploadVideoButton" type="button" onclick="OnFormSubmit();" value="Add Video" />
if i remove ajax call and replace with alert(counter); all works perfect. With ajax call however the chrome just ignore that piece of code, doesnt show anything in javascript console and just does nothing...
Is that a known bug? Or some workaround?
I tested everything
Thx a lot


LinkBack URL
About LinkBacks




Reply With Quote