Welcome guest, is this your first visit? Create Account now to join.
Results 1 to 2 of 2

This is a discussion on bug in ajax call from setinterval if form submiting within the Bugs and Vulnerabilities section, part of the Google Chrome category: Hi I did upload of large files, which shows upload progress thru ajax call every one second. It works fine ...


  1. #1
    Orik is offline Junior Member
    Join Date
    Sep 2010
    Posts
    1

    Default bug in ajax call from setinterval if form submiting

    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.
    Code:
      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();
        }
    and i have button in form like
    <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

  2. #2
    agustina is offline Junior Member
    Join Date
    Jan 2011
    Posts
    1

    Default

    Hi,

    I am experiencing exactly the same issue. I call setInterval just before submitting the form and then reverse ajax stops working. This happens also in Safari although Firefox works fine. Any updates on this issues?

    Thanks a lot, cheers!
    Agustina

Similar Threads

  1. Form filler..??
    By flightcrazed in forum Chrome Plugins
    Replies: 6
    Last Post: 10-22-2010, 07:51 PM
  2. Call Of Duty - World At War
    By Jedi Knight in forum Chrome Themes
    Replies: 0
    Last Post: 09-16-2010, 02:26 AM
  3. Ajax page call
    By lifeworks in forum Bugs and Vulnerabilities
    Replies: 0
    Last Post: 02-09-2010, 08:24 AM
  4. Replies: 2
    Last Post: 09-24-2009, 11:53 PM
  5. php form troubles...
    By Zemo in forum Chrome Troubleshooting
    Replies: 3
    Last Post: 06-06-2009, 03:03 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •