(:import [goog.net XhrIo])

works.

HTH,
David

On Thu, Apr 16, 2015 at 7:49 PM, John Jelinek <[email protected]> wrote:

> I'm used to calling (xhr/send url #(do stuff)), but in my current case, I
> need to set a listener on the READY_STATE_CHANGE  event of XhrIo.
> https://developers.google.com/closure/library/docs/xhrio describes two
> ways to use XhrIo:
>
> > There are two ways to send an asynchronous request with XhrIo: by
> calling the the goog.net.XhrIo.send() utility function, and by
> instantiating goog.net.XhrIo and calling the instance's send() method.
>
> The latter is what I'd like to implement now in cljs. Has anyone else been
> able to interop with that? I noticed there isn't an `(:import [goog
> XhrIo])`. Any thoughts?
>
> --
> Note that posts from new members are moderated - please be patient with
> your first post.
> ---
> You received this message because you are subscribed to the Google Groups
> "ClojureScript" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/clojurescript.
>

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to