The following is my simplified om code and html. https://gist.github.com/tokomakoma123/9a65f0d4bd8936c3f8e6 https://gist.github.com/tokomakoma123/53a6f4baf85a1a994ea1
Thanks, Makoto > Can you post the full (minimal) clojurescript code that's breaking? > > > > On 6 August 2014 11:39, Makoto H. <[email protected]> wrote: > > > I am trying to show and hide modal window using clojurescript and om. > > > > My modal component is as follows: > > (defn menu-modal > > [app owner] > > (reify > > om/IRender > > (render [this] > > (dom/div #js {:id "div-modal" :className "modal fade col-sm-10"} > > .... > > ) > > > > When I tried to show modal window, an error occurred. > > > > cljs.menu> (def modal (. js/document (getElementById "div-modal"))) > > #<[object HTMLDivElement]> > > nil > > cljs.menu> (.modal modal "show") > > "Error evaluating:" (.modal modal "show") :as > "cljs.menu.modal.modal(\"show\");\n" > > #<TypeError: undefined is not a function> > > TypeError: undefined is not a function > > at eval (repl-1407321121597.js:1:85) > > at eval (repl-1407321121597.js:5:3) > > at http://localhost:8080/js/cljs.js:35425:289 > > at evaluate_javascript (http://localhost:8080/js/cljs.js:35430:4) > > at Object.callback (http://localhost:8080/js/cljs.js:35506:181) > > at goog.messaging.AbstractChannel.deliver > (http://localhost:8080/js/cljs.js:32470:13) > > at goog.net.xpc.CrossPageChannel.xpcDeliver > (http://localhost:8080/js/cljs.js:34663:14) > > at Function.goog.net.xpc.NativeMessagingTransport.messageReceived_ > (http://localhost:8080/js/cljs.js:34059:13) > > at Object.goog.events.fireListener > (http://localhost:8080/js/cljs.js:28288:21) > > at goog.events.handleBrowserEvent_ > (http://localhost:8080/js/cljs.js:28330:22) > > nil > > > > Does anybody know how to show modal from clojure script and what is wrong in > my code ? > > > > I have written a simple modal demo using html and javascript and it is > working. > > > > https://gist.github.com/tokomakoma123/94b0cc5cf3278fc8ebea > > > > Regards, > > Makoto > > > > -- > > Note that posts from new members are moderated - please be patient with your > first post. > > --- > > You received this message because you are subscribed to the Google Groups > "ClojureScript" group. > > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > > To post to this group, send email to [email protected]. > > Visit this group at http://groups.google.com/group/clojurescript. -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/clojurescript.
