Or you should hook load event. (ns foo (:require [clojure.browser.repl :as repl] [goog.events :as gevents]))
(defn main [] (repl/connect "http://localhost:9000/repl") (gevents/listen js/window (aget gevents/EventType "LOAD") main) 2011/11/25 Takahiro <fat...@googlemail.com>: > In your html, a script tag seems to have to be in body tag, not head > tag, when you use browser repl. > If you use Chrome, look at a console in Developer Tools. > Is there an xpc error? > > 2011/11/25 Wilkes Joiner <wilkesjoi...@gmail.com>: >> The browser repl in the samples directory works fine for me in emacs. I'm >> guessing it has something to do with my app. I'll keep poking around. >> Thanks for your help. If I figure it out, I'll post a follow up here. >> >> -- >> Wilkes Joiner >> >> On Thursday, November 24, 2011 at 11:50 AM, David Nolen wrote: >> >> Another thing, it's important to delete the .repl folder that gets created >> in your project, this may be stale especially if CLJS has changed. >> David >> >> On Thu, Nov 24, 2011 at 12:39 PM, Wilkes Joiner <wilkesjoi...@gmail.com> >> wrote: >> >> I see a prompt. It just never evaluates an expression. >> >> -- >> Wilkes Joiner >> >> On Thursday, November 24, 2011 at 11:38 AM, David Nolen wrote: >> >> You said the REPL hangs, do you don't see a prompt? >> David >> >> On Thu, Nov 24, 2011 at 12:12 PM, Wilkes Joiner <wilkesjoi...@gmail.com> >> wrote: >> >> No dice on the browser refresh. I'm wondering if it something with my emacs >> config. I'm going to strip it down to the simplest set up I can manage and >> see if it resolves the issue. >> >> -- >> 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 >> >> -- >> 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 >> >> -- >> 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 >> >> -- >> 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 >> >> -- >> 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 > -- 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