[ClojureScript] Re: [:ann :book] ClojureScript Unraveled

2015-07-20 Thread ritchie turner
"Clojurscript Decomplected", would seem more Hickian ;) On Friday, July 17, 2015 at 2:30:21 PM UTC-3, Alejandro Gómez wrote: > Hello everybody, > > I'm happy to announce that Andrey Antoukh (@niwinz) and I published the > book about ClojureScript > that we have been writing lately on Leanpub. It

[ClojureScript] Re: Are experienced JS developers looking for ClojureScript jobs?

2014-02-27 Thread ritchie turner
Hi I've been using Haxe for years as an altjs (and did the haxe external defs for node.js) , so i'm biased to compile to js, rather than raw js. That said, i'm drawn to clojurescript as i can still use node.js, i'm only tangentially interested in the jvm. I love the fact that all the basic pl

[ClojureScript] reagent - drag/drop?

2014-02-18 Thread ritchie turner
Hi Dan How would you recommend dealing with drag/drop in reagent? I probably want to use the goog.fx.DragDrop functionality and move nodes between parents (components) However, reparenting like this seems like a great way to confuse react (defn- ondrop [event] (let [ti (.-element (.-dropTar

[ClojureScript] Re: ANN: Reagent 0.3.0 - now with async rendering

2014-02-03 Thread ritchie turner
dynamic updates and I don't have that text in my pages. I didn't notice this the other night before I upgraded to 0.3. Due to the locality around the mount point maybe something to do with reagent? I have my fingers crossed :) R On Monday, February 3, 2014 10:04:09 PM UTC-3, ritchie t

[ClojureScript] core.async problem?

2014-02-03 Thread ritchie turner
Hi David I'm new to core.async (and clojurescript) so i'm not sure if it's my usage or not but the get-json! "/api/login" works in Chrome - however with FF I get an exception in getJsonResponse when it tries to parse an empty object - I don't see any network activity which makes me think it's

[ClojureScript] Re: ANN: Reagent 0.3.0 - now with async rendering

2014-02-03 Thread ritchie turner
Thanks Dan My stuff still working as expected :) R On Monday, February 3, 2014 11:24:25 AM UTC-3, Dan Holmsand wrote: > Reagent, a minimalistic interface between React.js and ClojureScript, is now > at 0.3.0. > > > > The new release adds a couple of bugfixes, and async rendering. Read more

[ClojureScript] Re: reagent: some wierdness

2014-02-02 Thread ritchie turner
As you say in the issue, a warning is probably best until there's a crucial use case that crops up. Thanks R -- 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 "ClojureScri

[ClojureScript] reagent: some wierdness

2014-02-01 Thread ritchie turner
Hi Dan In the following code, if the first @selected isn't there the ui is not redrawn, that is, the @selected in the if statements seems to be ignored. I do have another componend that does update when the atom is part of an if so I think there's a bug somewhere. (defn ui [] (println "redr

[ClojureScript] Re: how to lose the "WARNING: No such namespace: JSON" noise?

2014-02-01 Thread ritchie turner
On Saturday, February 1, 2014 10:10:54 AM UTC-3, Jonas Enlund wrote: > On Saturday, February 1, 2014 1:15:49 PM UTC+2, ritchie turner wrote: > > thanks > > > > R > > Try something like (.parse js/JSON "..."). > > > Jonas Doh! Thanks. --

[ClojureScript] Re: reagent: adding dynamic attributes

2014-02-01 Thread ritchie turner
On Saturday, February 1, 2014 10:53:00 AM UTC-3, Jonas Enlund wrote: > On Saturday, February 1, 2014 3:37:57 PM UTC+2, ritchie turner wrote: > > Hi Dan > > > > I'm having problems adding an id attribute to a list, e.g. > > > > (for [t @ta

[ClojureScript] reagent: adding dynamic attributes

2014-02-01 Thread ritchie turner
Hi Dan I'm having problems adding an id attribute to a list, e.g. (for [t @tabs] (if (= (:id t) @selected) [:a.tab-selected {:id (:id t)} (:text t)] [:a.tab {:id (:id t) :on-click tab-click} (:text t)] )) id will not show in the dom. Is {:id (:id t)} the correc

[ClojureScript] how to lose the "WARNING: No such namespace: JSON" noise?

2014-02-01 Thread ritchie turner
thanks R -- 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 clojur

[ClojureScript] Re: reagent, event after rendering?

2014-01-27 Thread ritchie turner
On Monday, January 27, 2014 11:10:36 AM UTC-3, Dan Holmsand wrote: > On Monday, January 27, 2014 2:30:57 PM UTC+1, ritchie turner wrote: > > How i want to get an event after reagent is finished rendering a component. > > I want to be able to query the dimensions of a component, e

[ClojureScript] reagent, event after rendering?

2014-01-27 Thread ritchie turner
Hi How i want to get an event after reagent is finished rendering a component. I want to be able to query the dimensions of a component, e.g. to center a dialog box component after I've rendered a new form into it. Thanks R -- Note that posts from new members are moderated - please be pati

[ClojureScript] Re: ANN: Cloact is now Reagent 0.2.0

2014-01-24 Thread ritchie turner
Hi Thanks for this library, i like the simplicity. One issue, I'm trying to add a non standard attr during rendering but it's being dropped, is that a bug or a feature :) ? Specifically trying to add prod-code to the img tag, doesn't turn up in output [:img.action {:src "/images/baske

[ClojureScript] Re: ANN: Cloact is now Reagent 0.2.0

2014-01-24 Thread ritchie turner
I've started to use reagent, I like how simple it is. Thanks! R On Friday, January 24, 2014 9:52:39 AM UTC-3, Dan Holmsand wrote: > Cloact, a minimalistic interface between React.js and ClojureScript, is now > called Reagent (the old name was bad in all sorts of ways). > > > > There is als