[ClojureScript] Re: [ANN][book] Clojure Reactive Programming

2015-04-15 Thread Makoto H.
I purchased the kindle version of this book yesterday. - 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

Re: [ClojureScript] Re: ANN: Om 0.8.2

2015-01-27 Thread Makoto H.
:52 AM UTC+1, Makoto H. wrote: Hi, I tried the 0.8.6 but I faced another error. ExceptionInfo No such namespace: cljsjs.react at line 1 file:/userdata/appdata/maven/.m2/repository/org/omcljs/om/0.8.6/om-0.8.6.jar!/om/dom.cljs   clojure.core/ex-info (core.clj:4403

Re: [ClojureScript] Re: ANN: Om 0.8.2

2015-01-26 Thread Makoto H.
Hi, I tried the 0.8.6 but I faced another error. ExceptionInfo No such namespace: cljsjs.react at line 1 file:/userdata/appdata/maven/.m2/repository/org/omcljs/om/0.8.6/om-0.8.6.jar!/om/dom.cljs clojure.core/ex-info (core.clj:4403) I am trying to find the cause but I was not able to do it.

Re: [ClojureScript] Re: ANN: Om 0.8.2

2015-01-26 Thread Makoto H.
He Antoni, The situation was the same after remove cemerick.piggieback/wrap-cljs-repl. I did another test. I checked differences between om 0.8.1 and 0.8.2. In the 0.8.2 ns for om.core and om.dom as follows: (ns om.core (:require com.facebook.React [om.dom :as dom :include-macros

[ClojureScript] Re: ANN: Om 0.8.2

2015-01-24 Thread Makoto H.
I am update om to 0.8.2, then:require causes an error. (ns om-app.hello (:require [om.core :as om :include-macros true] [om.dom :as dom :include-macros true] ) ) clojure.lang.ExceptionInfo: No such namespace: com.facebook.React at line 1

Re: [ClojureScript] Re: help ! modal control from clojurescript does not work

2014-08-15 Thread Makoto H.
. On Thursday, August 14, 2014 6:07:42 PM UTC-7, Makoto H. wrote: I'm trying to run Jason's code but I cannot run it work. I received the following error when I run (modal-ui).  #function modal_ui(){return om.core.root.call(null,test.modal.wrapper,test.modal.app_state,new

Re: [ClojureScript] Re: help ! modal control from clojurescript does not work

2014-08-14 Thread Makoto H.
!important; } } On Wednesday, August 6, 2014 8:53:54 PM UTC-7, Makoto H. wrote: It worked with jayq. My code is as follows: (ns menu.test (:require-macros [cljs.core.async.macros :refer [go]]) (:require [om.core :as om :include-macros true

[ClojureScript] Browser-REPL(from austin) using the latest clojurescript (0.0-2307) didn't work

2014-08-09 Thread Makoto H.
I am using om and clojurescript using cemerick's austin. When I updated clojurescript to the latest version from 0.0-2280 to 0.0-2307, Browser-REPL did not work. The following is when I was starting bRepl. ; nrepl.el 0.2.0 (Clojure 1.6.0, nREPL 0.2.3) user (in-ns 'om-tut.server) #Namespace

Re: [ClojureScript] help ! modal control from clojurescript does not work

2014-08-06 Thread Makoto H.
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

[ClojureScript] Re: help ! modal control from clojurescript does not work

2014-08-06 Thread Makoto H.
I have defined bootstrap.js like :externs [/bootstrap.js] in my project.clj. But I'm not sure that is correct or not. https://gist.github.com/tokomakoma123/d2111e9ee288e3dddbcf I found an article in the web which provides a solution how to use bootstrap components from react.js.

Re: [ClojureScript] Re: help ! modal control from clojurescript does not work

2014-08-06 Thread Makoto H.
would be as Thomas says and write a modal Om component instead. Another alternative (probably what I will do soon) is to look into using the modals from  https://github.com/luxbock/bootstrap-cljs On 6 August 2014 14:54, Makoto H. tokoma...@gmail.com wrote: I have defined bootstrap.js

Re: [ClojureScript] Re: Warning: Only React Components are valid for mounting.

2014-07-26 Thread Makoto H.
project as you did, it makes sense that you wouldn't see the warnings. On 26 July 2014 04:15, Makoto H. tokoma...@gmail.com wrote: Hi, I've tested the following project.clj and it worked fine without any warning. (defproject makoto 0.1.0-SNAPSHOT   :description FIXME

[ClojureScript] Warning: Only React Components are valid for mounting.

2014-07-25 Thread Makoto H.
Hi, I am using om and I often encounter warning of Only React Components are valid for mounting. . For example, when I evaluate the following expression, the warning occurs. (om/root animation-view app-state {:target (.getElementById js/document app)}) What is it and is there any way to

Re: [ClojureScript] Warning: Only React Components are valid for mounting.

2014-07-25 Thread Makoto H.
Hi Sean, I tested your steps using lein new mies-om makoto and it worked fine without any warning. My environment is complicated but I will check check what causes the warning. (I am using austin and the project has other om test code). https://github.com/tokomakoma123/om-tut Thanks, Makoto

[ClojureScript] add and remove div

2014-07-14 Thread Makoto H.
Hi, This may be a simple question. I'd like to know how to add and remove div section using om. My html is as follows: !DOCTYPE html html lang=ja head meta charset=utf-8 / meta content=width=device-width, initial-scale=1 name=viewport / titletitle/title link rel=stylesheet

Re: [ClojureScript] display multiple components using OM

2014-07-10 Thread Makoto H.
Hi Ahmad, I have also tested the sample code. Thanks, Makoto DD's solution should do the trick. You should also look at Om's example of using multiple roots incase you need to go down that approach: https://github.com/swannodette/om/blob/master/examples/multiroot/src/core.cljs -- Note

Re: [ClojureScript] anchor in om

2014-07-09 Thread Makoto H.
Hi Dave, With your suggestion, I could generate lia href=#menu1/a/li block using the following clojurescript: (dom/li nil (dom/a #js {:className #} menu1)) https://github.com/swannodette/om/blob/master/src/om/dom.clj#L4-L126 Above is also helpful for me. Thanks, Makoto Should just be

Re: [ClojureScript] anchor in om

2014-07-09 Thread Makoto H.
Hi Jamie, I'll try to use Om tools an Sabalono. Thanks, Makoto You might consider using a lib such as Om Tools or Sablono for the dom. https://github.com/Prismatic/om-tools https://github.com/r0man/sablono On Jul 9, 2014, at 7:14 AM, Makoto H. tokomakoma...@gmail.com

Re: [ClojureScript] anchor in om

2014-07-09 Thread Makoto H.
Hi Moritz, Yes, you are correct. (dom/li nil (dom/a #js {:className #} menu1)) You want :href, not :className. -- 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

[ClojureScript] display multiple components using OM

2014-07-09 Thread Makoto H.
HI, I have written some components using OM. I would like to these components on the same web page as follows: 1. menu-table-header 2. menu-table 3. menu-table-button The following is my prototype code. In my om/root can display only one component and I am looking for how can I show multple