How do I use Ajax on progress with post to url

0 favourites
  • 5 posts
From the Asset Store
Progress\Loading Bar. Now Load you game like a Professional.
  • I am pushing a small array with an extract base64 string of an image file (around 600kb), but i can't seem to get the progress of the upload to show.

    I added an event

    on ajax progress "tag"

    browser log ajax.progress

    this event is not even triggered.

    When using ajax request url, the progress shows up fine.

    I am posting the data with Content-Type application/json in the header instead of application/x-www-form-urlencoded

    Does it got anything to do with that?

  • I have the same problem.

    It seem that:

    AJAX On "tag" progress

    is not triggered with AJAX Post to url

  • I currently have the same problem. i have to download a rather large file (3MB-12MB) and the file is downloaded correctly, however, the on progress is never triggered, even if i load it over a slow connection.

    Ashley , i the manual it says

    [quote:1agkx0oh]For long running requests (e.g. downloading a large file), On progress triggers periodically and updates the Progress expression with the state of the request. This is useful for making progress bars for AJAX requests.

    Would you kindly specify "periodically"? Does this mean 100of a second, second, 10 seconds?

    Kind regards


  • It's defined by the browser. I think its every couple of seconds generally but it could depend on the download speed.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • ok, this is strange then... even if the download is finished the event is not triggered. thank you anyway for now i will just use on finished.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)