Web popup, sending URLs without clicking on links

I’ve been able to successfully pass data to Corona using the url listener when a link in web popup is clicked.

Now I’m trying to do the same thing except I want to use jQuery’s .trigger() to trigger the click event on the link so that I can send data without the user having to click anything. Unfortunately, the .trigger() function doesn’t seem to work in the web popup. Any suggestions? [import]uid: 61256 topic_id: 18100 reply_id: 318100[/import]

I wonder if a work around might work for you? (Hiding a small webpopup that opens automatically out of view while you get the data, then closing it?)

Peach :slight_smile: [import]uid: 52491 topic_id: 18100 reply_id: 69284[/import]

I actually solved the problem and failed to update my post here. Sorry. :slight_smile:

It turns out that you can use “window.location” to trigger the url events, but because web popups in the simulator are buggy still, it doesn’t always pick it up.

For what it’s worth, I’m pretty sure that my use of web pops in this app counts as “creative”. I’m learning a lot about how to use them efficiently, and I think the Ansca staff might be interested to see the finished product. [import]uid: 61256 topic_id: 18100 reply_id: 69287[/import]

BTW, I’d love if I could get a staff answer for this forum question: http://developer.anscamobile.com/forum/2011/11/22/context-menus-inside-web-popups [import]uid: 61256 topic_id: 18100 reply_id: 69288[/import]

Will check out your other thread shortly :slight_smile:

Just to be clear; has it worked at all in the new simulator or only on device?

Peach :slight_smile: [import]uid: 52491 topic_id: 18100 reply_id: 69325[/import]

Now it seems to be working in both, before it only worked on the device.

My code hasn’t changed, but I did revert to a stable build, and then back to a daily build (691), so perhaps reinstalling the daily build solved the problem.

Thoughts on this forum post? http://developer.anscamobile.com/forum/2011/11/23/web-popup-fails-load-until-orientation-change [import]uid: 61256 topic_id: 18100 reply_id: 69403[/import]