I had some trouble early on as well. I did the fish example and it worked fine, calls from HTML made the app do stuff. BUT, my problem was when I tried to put the listeners in my own app it was not working. The only workaround I found was to have all the listeners in the main.lua instead of levels deep in my project that used the director class.
Your issue is on the web page HTML side huh.
Do you have all the supporting code for the href=“corona:close” on your page?
Here is all the necessary code I have been using…
In the < head > section of my HTML I have something similar to this
then at the bottom, just after the body close tag < /body > I have
<form id="dothis" action="corona:close"></form>
Mine however has many many links (callbacks) throughout the HTML file so the to top section is a long list of stuff and the bottom is also a long list of things. Let me know if you need to see the longer list or how to set that up. It was just easier to split the form code up and put it all at the bottom.
I am having a problem posting a form inside a webpage using showWebPopup in Android. iOS works fine. I load a webpage and inside Android showWebPopup will not read values from input boxes using JavaScript var test = document.getElementById(sometextbox).value & etc. For instance alert() does not work but I can call other functions in a .js file from my HTML that manipulate CSS. onclick=UpdateColor();
I really need to get Dynamic HTML Working inside Android. Do you have an idea?
Thanks
-ross
[import]uid: 183369 topic_id: 9710 reply_id: 135648[/import]
I am having a problem posting a form inside a webpage using showWebPopup in Android. iOS works fine. I load a webpage and inside Android showWebPopup will not read values from input boxes using JavaScript var test = document.getElementById(sometextbox).value & etc. For instance alert() does not work but I can call other functions in a .js file from my HTML that manipulate CSS. onclick=UpdateColor();
I really need to get Dynamic HTML Working inside Android. Do you have an idea?
Thanks
-ross
[import]uid: 183369 topic_id: 9710 reply_id: 135648[/import]