showWebPopup listener not firing

Ok I’ve tried everything and I just can’t get the callback to fire from my own web page.

I copied the localpage.html from the fish example and loaded that page when I open a page in my own app. This call back works as expected.

On my page I have a link which has the href=“corona:close” and this just never seems to trigger in the same way as the example page.

I’m using jqtouch & jquery. The page loads fine and looks great but I just can’t get it to interact with corona :frowning:

Anyone else had this problem?

Cheers,
Scott. [import]uid: 51622 topic_id: 9710 reply_id: 309710[/import]

Scott,

Did you ever get this working?

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

<script type="text/javascript"><br>function submit2010_1()<br>{<br> document.forms["dothis"].submit();<br>}<br></script>  

then for the link I have 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.

  • davey

[import]uid: 7845 topic_id: 9710 reply_id: 35655[/import] ](javascript:%20dothis())

Hi Davey,

Thanks for responding, much appreciated :slight_smile:

No my problem is exactly like yours, the listeners aren’t responding.

I’ll try as you suggest and put the listeners on the main.lua file and see if I get any further.

Cheers,
Scott. [import]uid: 51622 topic_id: 9710 reply_id: 35682[/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]

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]