Fork me on GitHub
#beginners
<
2017-04-01
>
sb14:04:34

Sorry guys, maybe here somebody can help me. I would like to add to hiccup a simple js file (date picker/ which works correctly like html). I see, after compiled hiccup.. the script can’t identify datepicker’s "div id”. Is that correct or I did something wrong?

sb14:04:25

[:script {:type "text/javascript"} 
     "$(function() {
     $(\".selectbox-json-array\").selectBoxIt({
        autoWidth: false,

        // Populates the drop down using a JSON array
        populate: {\"data\": [
            {\"text\":\"SelectBoxIt is:\",\"value\":\"SelectBoxIt is:\"},
            {\"text\":\"a jQuery Plugin\",\"value\":\"a jQuery Plugin\"},
            {\"text\":\"a Select Box Replacement\",\"value\":\"a Select Box Replacement\"},
            {\"text\":\"a Stateful UI Widget\",\"value\":\"a Stateful UI Widget\"}
        ]}
     });}”]

sb14:04:41

simple selectbox json array

sb14:04:58

but can’t find this

[:div.form-group
         [:label "JSON array"]
         [:select.selectbox-json-array]]

sb14:04:28

I tried with include-js too.

sb14:04:21

(maybe the first script not full.. but works in html)

sb14:04:41

what is the solution in this case?

sb15:04:15

Exactly find the class, but not loaded the content.

lepistane15:04:06

i watched clj talk on clojureTV about java9 modules ( https://www.youtube.com/watch?v=4fevIDAxQAM ) i feel concerned could someone maybe shine little bit of light on the topic? Is this really a problem that affects us deeply? Will at some point clojure have to let go of it's unique philosophy to still be able to run on JVM?