GithubHelp home page GithubHelp logo

Comments (13)

mgol avatar mgol commented on May 16, 2024

Comment author: timmywil

Marking as valid for 1.next

from jquery.

mgol avatar mgol commented on May 16, 2024

Comment author: malsup

This is really a fairly significant omission. As stated above, it's impossible to track FormData file upload progress without this property exposed. The jqXHR object is documented as a "superset of the browser's native XMLHttpRequest object". The upload property is but one example where this is simply not true, with respect to XMLHttpRequest Level 2. Either all properties should be exposed or there must be a way to access to the native XHR.

from jquery.

mgol avatar mgol commented on May 16, 2024

Comment author: jaubourg

-1, There are ways to access the native xhr (by overriding options.xhr in a prefilter). If we want upload in jQuery, then we'd better implement an upload method rather than try and have ajax be even more bloated.

from jquery.

mgol avatar mgol commented on May 16, 2024

Comment author: jzaefferer

+1, "overriding options.xhr in a prefilter" is not good enough - at least document how to access non-exposed properties in a sane way as part of the existing docs (see also Mike's comment)

from jquery.

mgol avatar mgol commented on May 16, 2024

Comment author: dmethvin

+1, I'd like a better/simpler way to do this as well

from jquery.

mgol avatar mgol commented on May 16, 2024

Comment author: mikesherov

+1

from jquery.

mgol avatar mgol commented on May 16, 2024

Comment author: timmywil

+1

from jquery.

mgol avatar mgol commented on May 16, 2024

Comment author: rwaldron

-1, Ajax is extendable.

from jquery.

mgol avatar mgol commented on May 16, 2024

Comment author: dmethvin

Bulk change from enhancement to feature.

from jquery.

mgol avatar mgol commented on May 16, 2024

Comment author: mikesherov

F you, Timmy

from jquery.

mgol avatar mgol commented on May 16, 2024

Comment author: meleyal

It seems you can access the xhr object in $.ajaxSettings.xhr();

from jquery.

mgol avatar mgol commented on May 16, 2024

Comment author: dmethvin

I'm switching to -1 on this as far as $.ajax is concerned, since any addition we make here would not be cross-browser in either branch. I'd prefer to deal with this in $.xhr.

from jquery.

dmethvin avatar dmethvin commented on May 16, 2024

I agree, this seems like more confusion to pile on top of $.ajax, let's handle this via a different interface.

from jquery.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.