Code Monkey home page Code Monkey logo

inlinexhr--php-'s People

Contributors

tribis avatar

Stargazers

 avatar

Watchers

 avatar  avatar

inlinexhr--php-'s Issues

xhr.after() in js module, not stopping on error

If an error in PHP occurs during a xhr call the inlineXHR(php) will send a json rsponse signalling an error.
However, from a xmlHTTP point of view this is not an error and the inlineXHR method after() will proceed as normal.
The desired behaviour is to stop the chain of actions.
inlineXHR must check for artificial error codes sent by inlineXHR(php) if a code of 610 or similar the chain must be stopped and the error passed along when the first error happens.

Use case: a function creates a file and fails with permision denied
a second function tries to write to that file and fails too, "missing file".
Ideally the script should stop at the first error, instead if the second function has been called by after() it will cause both errors to happen.

Automatic detection of GET or POST mode

It's too troublesome having to set GET or POST on both sides of the transaction.
The server side should be able to detect if the ajaxAction param has been passed either as POST or GET and react accordingly.
This would be a configuration setting of "mode= auto", as default while GET or POST would be used to enforce a single mode.

enhance debugging functionality

A pop up window is needed giving a trace of the request and the impact the different configuration options are having on the request/response flow.

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.