[elm-discuss] Re: Stuck on custom event handlers and JSON decoder for select element
I wrote a post about how to use Json decoding to fetch properties of the DOM that you might find helpful: https://medium.com/@debois/elm-the-dom-8c9883190d20#.6tcf08pl7 -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[elm-discuss] Re: Stuck on custom event handlers and JSON decoder for select element
I found a good solution for my issue. Still need to dig into what's going on here. I find this idea of Json decoding in Elm is still a bit of a struggle for me. Here is what got things working for me: http://stackoverflow.com/questions/37376509/work-with-elm-and-select On Friday, July 8, 2016 at 8:47:01 AM UTC-4, Adam Waselnuk wrote: > > This is the last thing blocking me from a migration to 0.17. I can't seem > to wrap my head around capturing an on "change" event from a select > element. At this point my app is compiling, but when I toggle the select > dropdown, no messages are sent to the update function. If anyone can point > me to further reading on any of these topics I would very much appreciate > it. > > I have also created a Gist of the relevant (I think) code if anyone has a > minute to check that out: > https://gist.github.com/AWaselnuk/d0c9a01931c6e8e8a84d8743b6739df2 > -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [elm-discuss] Re: Stuck on custom event handlers and JSON decoder for select element
I think onInput will not give you the required event for select elements in some browsers. 2016-07-08 16:45 GMT+02:00 Simon: > With 0.17 I use onInput > > On Friday, 8 July 2016 14:47:01 UTC+2, Adam Waselnuk wrote: > > This is the last thing blocking me from a migration to 0.17. I can't seem >> to wrap my head around capturing an on "change" event from a select >> element. At this point my app is compiling, but when I toggle the select >> dropdown, no messages are sent to the update function. If anyone can point >> me to further reading on any of these topics I would very much appreciate >> it. >> >> I have also created a Gist of the relevant (I think) code if anyone has a >> minute to check that out: >> https://gist.github.com/AWaselnuk/d0c9a01931c6e8e8a84d8743b6739df2 >> > > > -- > You received this message because you are subscribed to the Google Groups > "Elm Discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to elm-discuss+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[elm-discuss] Re: Stuck on custom event handlers and JSON decoder for select element
With 0.17 I use onInput On Friday, 8 July 2016 14:47:01 UTC+2, Adam Waselnuk wrote: This is the last thing blocking me from a migration to 0.17. I can't seem > to wrap my head around capturing an on "change" event from a select > element. At this point my app is compiling, but when I toggle the select > dropdown, no messages are sent to the update function. If anyone can point > me to further reading on any of these topics I would very much appreciate > it. > > I have also created a Gist of the relevant (I think) code if anyone has a > minute to check that out: > https://gist.github.com/AWaselnuk/d0c9a01931c6e8e8a84d8743b6739df2 > -- You received this message because you are subscribed to the Google Groups "Elm Discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.