Re: Clojurescript Beginner's Question

2011-08-30 Thread atucker
That did it, thanks again! On Aug 30, 8:50 pm, "Gijs S." wrote: > I have not run your fade example, but I think the (.play anim) is to > blame. You should use (. anim (play)). The explanation for this is > athttps://github.com/clojure/clojurescript/wiki/Differences-from-Clojure > in the 'Host In

Re: Clojurescript Beginner's Question

2011-08-30 Thread Gijs S.
I have not run your fade example, but I think the (.play anim) is to blame. You should use (. anim (play)). The explanation for this is at https://github.com/clojure/clojurescript/wiki/Differences-from-Clojure in the 'Host Interop' section. An example is at https://github.com/clojure/clojurescrip

Re: Clojurescript Beginner's Question

2011-08-30 Thread atucker
Thank you that works! But I see what you mean about rough edges, it's not for the faint-hearted. So for example I have no idea how to find out why fading works with this JavaScript: goog.require('goog.dom'); goog.require('goog.fx.dom'); function fade() { var kurdt = goog.dom.getElement("kur

Re: Clojurescript Beginner's Question

2011-08-30 Thread Gijs S.
Hi, I have run into a similar problem. The problem is something with the "require" and namespaces in JavaScript. The following worked for me: (ns example.example (:require [goog.fx.Dragger :as unused-alias])) And then to call the Dragger constructor: (goog.fx.Dragger. ) In the twitterbuzz exam

Re: Clojurescript Beginner's Question

2011-08-30 Thread atucker
On Aug 30, 11:05 am, atucker wrote: / I thought perhaps the problem was related to this onehttp://groups.google.com/group/clojure/browse_thread/thread/2ad1db6d4..., / but Dragger.js hasn't been updated since January. Sorry! That's not true at all. But even in the older library version bundled

Re: Clojurescript Beginner's Question

2011-08-30 Thread atucker
Hmm thanks. I should try out Firebug myself. I thought perhaps the problem was related to this one http://groups.google.com/group/clojure/browse_thread/thread/2ad1db6d4022e0d3/dd53b4578496a731?lnk=gst&q=closure+version#dd53b4578496a731, but Dragger.js hasn't been updated since January. I also tr

Re: Clojurescript Beginner's Question

2011-08-29 Thread Eric Lavigne
Firebug says goog.fx.Dragger is not a constructor. Firebug's error message doesn't match my understanding of the goog.fx.Dragger documentation, but yes, that line did stop the script. http://closure-library.googlecode.com/svn/docs/class_goog_fx_Dragger.html On Mon, Aug 29, 2011 at 6:50 PM,

Clojurescript Beginner's Question

2011-08-29 Thread atucker
Hi! I wonder if someone might tell me what I'm doing wrong here. (ns hello (:require [goog.fx :as fx] [goog.dom :as dom])) (defn ^:export main [] (let [kurdt (dom/getElement "kurdt")] (dom/appendChild (.body (dom/getDocument)) (dom/createDom "h1" 0 (dom/getOuterHtml kurdt))) (fx/Dragge