Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XMLHttpRequest should provided a futures based API #4377

Closed
jmesserly opened this issue Aug 6, 2012 · 7 comments
Closed

XMLHttpRequest should provided a futures based API #4377

jmesserly opened this issue Aug 6, 2012 · 7 comments
Labels
web-libraries Issues impacting dart:html, etc., libraries
Milestone

Comments

@jmesserly
Copy link

See these links for similar thing in Closure:
https://groups.google.com/forum/#!msg/closure-library-discuss/aHjKn7K6O9Q/kArNBi1NvDAJ
http://code.google.com/p/closure-library/source/browse/trunk/closure/goog/labs/net/xhr.js

We have one helper: "new XMLHttpRequest.get" that provides a callback API, but we should probably do something more substantial.

@iposva-google
Copy link
Contributor

Removed Area-DOM label.
Added Area-HTML label.

@jmesserly
Copy link
Author

see also jQuery's ajax method

@jmesserly
Copy link
Author

Also, see angularjs $resource (example is on their homepage by "form validation")

     var Project = $resource('https://api.mongolab.com/api/1/databases' +
          '/angularjs/collections/projects/:id',
          { apiKey: '4f847ad3e4b08a2eed5f3b54' }, {
            update: { method: 'PUT' }
          }
      );

@sethladd
Copy link
Contributor

See also issue #2677


Added this to the Later milestone.

@sethladd
Copy link
Contributor

See the http package for now: http://pub.dartlang.org/packages/http


cc @munificent.

@munificent
Copy link
Member

Unfortunately, the http package doesn't work browser-side yet. It's one of the many packages that's stuck waiting on platform-specific configuration. As soon as that's in the language, we do plan to support it in the browser as well as using dart:io.

@efortuna
Copy link
Contributor

This should be fixed, yes? Reopen if we're missing something.


Removed this from the Later milestone.
Added this to the M4 milestone.
Added Fixed label.

@jmesserly jmesserly added Type-Defect web-libraries Issues impacting dart:html, etc., libraries labels Mar 19, 2013
@jmesserly jmesserly added this to the M4 milestone Mar 19, 2013
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
web-libraries Issues impacting dart:html, etc., libraries
Projects
None yet
Development

No branches or pull requests

5 participants