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

Added support for progress-handler for XhrIo #183

Merged
merged 5 commits into from
Jul 17, 2017

Conversation

RyanBertrand
Copy link
Contributor

Doc
:progress-handler - the handler function for progress events. This handler is only available when using the goog.net.XhrIo API

Example

(ajax/PUT url
          {:handler          (fn [data]
                               (println "Success"))
           :progress-handler (fn [e]
                               (println (str "Progress (" (.-loaded e) "/" (.-total e) ")  [" (* 100 (/ (.-loaded e) (.-total e))) "]%")))
           :format           :raw
           :body             js-file})

Excited to get this in! 👍

Thanks,
R

@JulianBirch
Copy link
Owner

Thanks! Currently working on #111. A few more weekends and I should be ready for 0.7.0. :)

@JulianBirch JulianBirch reopened this Jul 17, 2017
@JulianBirch JulianBirch merged commit b5bec9b into JulianBirch:0.7 Jul 17, 2017
@JulianBirch
Copy link
Owner

You'll also see that a lot of code has been moved out of ajax.core (finally...)

@RyanBertrand
Copy link
Contributor Author

Very exciting! Looking forward to the 0.7 release :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants