Timeline for Using JavaScript created select options as Leaflet map setContent
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 14, 2019 at 0:20 | comment | added | cattboy | Tom, I figured it out.. I had to change the order inside the map.on('popupopen', function(e) { document.querySelector("#node_submission_form2").addEventListener("submit", function(e) { needed to be before all the creation of the select/options | |
Apr 14, 2019 at 0:09 | vote | accept | cattboy | ||
Apr 14, 2019 at 0:06 | comment | added | cattboy | I've updated the JS fiddle, it works: jsfiddle.net/q5cdhw3e/1 Question, mysubmit is not picking up when submitted... Its not even recognizing the submit. (I have it to not submit as FALSE in the HTML but even when true, it reloads the page without catching the event listener) BTW TomazicM, you're a master, thank you so much! I've learned a lot from you're other posts across this forum. I didn't know where to set handlers with the form being a string into setContent, I didn't think of setting them inside mymap.on('popupopen', function(e). The way you suggested worked perfectly! | |
Apr 13, 2019 at 22:29 | history | answered | TomazicM | CC BY-SA 4.0 |