Re: Forcing evaluation of returned anonymous javascript function in ClojureScript

2011-07-24 Thread Alen Ribic
Thanks Dave for pointing me to the distinctions section. For some reason (-> % .target (.getRequestText)) didn't work but instead the .. interop macro worked as follows (.. % target (getResponseText)) [1]. -Al [1] Working version: https://gist.github.com/1102641 On Jul 24, 9:19 pm, Dave Ray wr

Re: Forcing evaluation of returned anonymous javascript function in ClojureScript

2011-07-24 Thread Dave Ray
See the "Host Interop" section here [1]. With ClojureScript there's a distinction between method lookup and method invocation. I think what you want is: (-> % .target (.getResponseText)) Dave [1] https://github.com/clojure/clojurescript/wiki/Differences-from-Clojure On Sun, Jul 24, 2011 at 1:51

Forcing evaluation of returned anonymous javascript function in ClojureScript

2011-07-24 Thread Alen Ribic
Firstly, thank you Clojure/core team and other contributors for this exciting project. I have a small problem I've encountered while building a simple personal blog, as an exercise, with Clojure/ClojureScript and would appreciate any feedback. I have a client-side function that sends a request to