Git Product home page Git Product logo

Comments (7)

jpillora avatar jpillora commented on June 17, 2024

Sounds like I broke something :) looking into it now

from xhook.

brian-mann avatar brian-mann commented on June 17, 2024

I'm fairly certain it has to do with the load and loadend events

from xhook.

jpillora avatar jpillora commented on June 17, 2024

Yep, I changed that recently because load should not fire when there's an
error and it was

On Sun, May 11, 2014 at 3:25 PM, Brian Mann [email protected]:

I'm fairly certain it has to do with the load and loadend events


Reply to this email directly or view it on GitHubhttps://github.com//issues/19#issuecomment-42762588
.

from xhook.

brian-mann avatar brian-mann commented on June 17, 2024

Yah I can see you're only firing loadend events for success status codes in the 2xx range.

Per the spec: loadend: The request has completed (either in success or failure).

So loadend should fire for both success or failure.

I'm not sure if load is only for true "success" -- as in 2xx status code or for the more general "completed" which would be whenever the server sends back anything -- irrespective of status codes, etc.

from xhook.

jpillora avatar jpillora commented on June 17, 2024

https://github.com/jpillora/xhook/blob/gh-pages/src/xhook.coffee#L230-L231

So loadend should fire for both, and load for success, though yes... I'm not sure what kind of success...

Will test this now

from xhook.

jpillora avatar jpillora commented on June 17, 2024

You're right, any response will fire load

from xhook.

jpillora avatar jpillora commented on June 17, 2024

just pushed this into xdomain, give it a try and let me know if its still not working

from xhook.

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.