Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 662021
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T23:19:56+00:00 2026-05-13T23:19:56+00:00

I’m working on an application that allows the user to send a file using

  • 0

I’m working on an application that allows the user to send a file using a form (a POST request), and that executes a series of GET requests while that file is being uploaded to gather information about the state of the upload.

It works fine in IE and Firefox, but not so much in Chrome and Safari.

The problem is that even though send() is called on the XMLHttpRequest object, nothing is being requested as can be seen in Fiddler.

To be more specific, an event handler is placed on the “submit” event of the form, that places a timeout function call on the window:

window.setTimeout(startPolling, 10);

and in this function “startPolling” sequence is started that keeps firing GET requests to receive status updates from a web service that returns text/json that can be used to update the UI.

Is this a limitation (perhaps security-wise?) on WebKit based browsers? Is this a Chrome bug? (I’m seeing the same behaviour in Safari though).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T23:19:57+00:00Added an answer on May 13, 2026 at 11:19 pm

    I am having the exact same problem. At the moment i use an iframe, which is targeted in the form. That allows the xhr requests to be executed while posting. While that does work, it doesn’t degrade gracefully if someone disables javascript.(I couldn’t load the next page outside the iframe without js) So if someone has a nicer solution, i would be grateful to hear it.

    Here the jQuery script for reference:

    $(function() {
    $('form[enctype=multipart/form-data]').submit(function(){ 
        // Prevent multiple submits
        if ($.data(this, 'submitted')) return false;
    
        var freq = 500; // freqency of update in ms
        var progress_url = '{% url checker_progress %}'; // ajax view serving progress info 
    
        $("#progressbar").progressbar({
            value: 0
        });
    
        $("#progress").overlay({ 
            top: 272, 
            api: true,
            closeOnClick: false,
            closeOnEsc: false, 
            expose: { 
                color: '#333', 
                loadSpeed: 1000, 
                opacity: 0.9 
            }, 
        }).load();
    
        // Update progress bar
        function update_progress_info() {
            $.getJSON(progress_url, {}, function(data, status){ 
                if (data) {
                    var progresse = parseInt(data.progress);
                    $('#progressbar div').animate({width: progresse + '%' },{ queue:'false', duration:500, easing:"swing" }); 
                }
                window.setTimeout(update_progress_info, freq);
            });
        };
        window.setTimeout(update_progress_info, freq);
    
        $.data(this, 'submitted', true); // mark form as submitted.
    });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 417k
  • Answers 417k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer We have a FAQ article covering this question. [The .idea]… May 15, 2026 at 9:49 am
  • Editorial Team
    Editorial Team added an answer require 'open-uri' file = open(URI.parse('http://www.google.com/intl/en_ALL/images/logo2.gif')) puts file.size => 8558 May 15, 2026 at 9:49 am
  • Editorial Team
    Editorial Team added an answer I think optparse can do this. May 15, 2026 at 9:49 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.