This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-03-20
Channels
- # beginners (7)
- # boot (39)
- # braid-chat (3)
- # braveandtrue (1)
- # cider (27)
- # cljsjs (15)
- # cljsrn (6)
- # clojars (18)
- # clojure (307)
- # clojure-art (1)
- # clojure-brasil (1)
- # clojure-italy (2)
- # clojure-poland (3)
- # clojure-russia (61)
- # clojure-sdn (2)
- # clojure-taiwan (4)
- # clojure-uk (5)
- # clojurebridge (7)
- # clojurescript (19)
- # core-async (1)
- # core-matrix (1)
- # cursive (35)
- # datomic (3)
- # emacs (51)
- # euroclojure (3)
- # hoplon (20)
- # jobs (1)
- # keechma (1)
- # mount (3)
- # off-topic (2)
- # om (177)
- # onyx (96)
- # parinfer (4)
- # pedestal (4)
- # re-frame (19)
- # reagent (7)
- # untangled (5)
@flyboarder: yeah i did know that i can add multimethods, but it seemed like something worth putting in core
Is there a way to tell which submit button in a form was clicked when the form has multiple buttons? I've found HTML solutions that say to set a common "name" with different "value"s for the buttons, then check that value later in the code. However, I couldn't find a way to check the value using hoplon.
@numberq: how are you firing your action?
Hmm I didn't think of that. Currently it just submits as though the button were clicked, but I only have one button currently.
Somehow, that didn't even occur to me even though I'm already using a click handler to do something else. I'll try that out, thanks for the advice!
Is there a way to use read-string
in hoplon? It keeps calling it an undeclared var. I've tried calling it like clojure.core/read-string
, and I've tried putting a read-string
wrapper in a .cljs file and calling it from there, but it still thinks it's an undeclared var.