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 tried to require goog.ui but found the cljs compiler gives a fatal error. Alistair On Aug 30, 3:27 am, Eric Lavigne <lavigne.e...@gmail.com> wrote: > 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.... > > > > On Mon, Aug 29, 2011 at 6:50 PM, atucker <agjf.tuc...@googlemail.com> wrote: > > 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/Dragger. kurdt) > > (dom/appendChild (.body (dom/getDocument)) (dom/createDom "h1" 0 > > (dom/getOuterHtml kurdt))))) > > > with the HTML: > > > <html> > > <head></head> > > <body> > > <script type="text/javascript" src="hello.js"></script> > > <img src="KURDT1.JPG" id="kurdt" border="0" /> > > <script> > > hello.main(); > > </script> > > </body> > > </html> > > > As you can see > > herehttp://www2.warwick.ac.uk/fac/cross_fac/comcom/dtcsite/people/student..., > > I am only getting the first output, as if the call to fx/Dragger. is > > stopping the script. > > > Thank you! Alistair > > > -- > > You received this message because you are subscribed to the Google > > Groups "Clojure" group. > > To post to this group, send email to clojure@googlegroups.com > > Note that posts from new members are moderated - please be patient with > > your first post. > > To unsubscribe from this group, send email to > > clojure+unsubscr...@googlegroups.com > > For more options, visit this group at > >http://groups.google.com/group/clojure?hl=en- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en