Don't call your file repl.* this has special meaning - it's the file that's
meant to be loaded into the cross page iframe.

On Monday, December 3, 2012, Brent Millare wrote:

> 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>
>>
>>> Using clojurescript **3842d3f9e0d68853077117a9192222**e93e169079
>>>
>>> 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
>>>
>>>  --
>>> 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
>>> 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
>>> For more options, visit this group at
>>> http://groups.google.com/**group/clojure?hl=en<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<javascript:_e({}, 'cvml', 
> '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 <javascript:_e({}, 'cvml',
> 'clojure%2bunsubscr...@googlegroups.com');>
> 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

Reply via email to