I've already tried both ways. Creating the html file with the script tag with the simple code you showed, and just simply trying to connect directly with http://localhost:9000/repl. In both cases, the same error message shows. Note that the error message isn't from my source code, but rather from the source code returned by http://localhost:9000/repl
On Monday, December 3, 2012 2:27:29 PM UTC-5, Herwig Hochleitner wrote: > > The browser repl works by creating a clojurescript file like: > > (ns foo (:require [clojure.browser.repl :as repl])) > > (repl/connect "http://localhost:9000/repl") > > then compiling it (not in advanced mode) and using the output in a script > tag. > > > 2012/12/3 Brent Millare <brent....@gmail.com <javascript:>> > >> Using clojurescript 3842d3f9e0d68853077117a9192222e93e169079 >> >> Trying to do the simplest case of a clojurescript browser repl: >> >> running clojurescript/script/repl, then >> >> Taken straight from the documentation: >> >> (require '[cljs.repl :as repl])(require '[cljs.repl.browser :as browser]) >> ;; require the browser implementation of IJavaScriptEnv(def env >> (browser/repl-env)) ;; create a new environment(repl/repl env) ;; start the >> REPL >> >> Next after trying to connect with browser at url >> http://localhost:9000/repl I get an error from google chrome's console. >> >> Uncaught ReferenceError: clojure is not defined >> >> <html><head><meta charset="UTF-8"></head><body> >> <script type="text/javascript"></script><script type="text/javascript"> >> clojure.browser.repl.client.start("http://localhost:9000"); >> Uncaught ReferenceError: clojure is not defined >> </script></body></html> >> >> Note that the rhino repl works fine. >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Clojure" group. >> To post to this group, send email to clo...@googlegroups.com<javascript:> >> Note that posts from new members are moderated - please be patient with >> your first post. >> To unsubscribe from this group, send email to >> clojure+u...@googlegroups.com <javascript:> >> For more options, visit this group at >> http://groups.google.com/group/clojure?hl=en > > > -- 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