Cannot Show Webpopup After Cancelling Whilst It Was Still Down Loading?

Hi there,

Has anyone else noticed this. If I show a Webpopup and then have a button that allows it to be cancelled, if cancelled whilst still loading subsequent calls to show fail with either a blank area where it should be or a brief flicker of the activity indicator.

If I don’t click the cancel button until after it has finished loading it seems fine, but that is not something a user is going too do.

Anyone seen this, got a work around?

Thanks!

Ceej [import]uid: 10629 topic_id: 10043 reply_id: 310043[/import]

Hi there,

Have logged as a bug with an example (5609 on iPhone 4).

Best regards,

Ceej [import]uid: 10629 topic_id: 10043 reply_id: 36637[/import]

Yes, I was just about to report this as well. This seems like a show-stopper bug, like something Apple would reject the app for if they try this. Any updates on an ETA for a fix? [import]uid: 8692 topic_id: 10043 reply_id: 36844[/import]

Hi there,

Yes it is a bit of a problem as will almost always have a close button to return to the main application interface, and within a short space of time, more likely on a slower connection flicking in and out it often happens you generally click cancel before a page load has finished. Its quite basic in terms of just show and cancel, but can do quite a lot with it if this could be sorted as very handy to display a web page in an app without leaving it e.g. Support page, manufacturers web page. Notice there is some mention of more advanced functionality on the road map, changing the URL, move, resize, go back, launch externally in Safari I guess all would all be handy, but this issue limits it’s usefulness at the moment really as almost certainly would result in rejection after only cursory testing. Only reproduced on iPhone at present.

Best regards,

Carl [import]uid: 10629 topic_id: 10043 reply_id: 36857[/import]

Hey guys,

I mentioned this a while back but wasn’t sure if it was isolated to my then-current situation.

http://developer.anscamobile.com/forum/2011/03/07/webpopup-doesnt-reload-correctly-director

I guess nobody noticed or did anything about it. Hopefully this will become a more useful feature in the near future, but in the meantime it seems like webPopups are mostly just useful for displaying local files. The only other real option for pulling up a webpage is system.openURL( ), though that will take you out of your program and into Safari.

Good Luck,

Matt
W2MD [import]uid: 10211 topic_id: 10043 reply_id: 37187[/import]

Hi there,

Yes I read this before I posted this, sounds related to this from earlier today:-

http://developer.anscamobile.com/forum/2011/05/18/nativecancelwebpopup-does-not-kill-webviewcorethread-b508

Best regards,

Carl [import]uid: 10629 topic_id: 10043 reply_id: 37201[/import]

Actually, it just occurred to me that if there is a way to sense when the webPopup has loaded, then it would be easy to just disable the ability to call native.cancelWebPopup( ) during the loading time period.

Does anyone know of a method to sense when the popup has completed loading?
[import]uid: 10211 topic_id: 10043 reply_id: 37204[/import]

Hi there,

I thought of all that but so limited in what you can do is have a listener to intercept URLs so pretty scuppered until it’s fixed.

Best regards,

Carl [import]uid: 10629 topic_id: 10043 reply_id: 37207[/import]

I tried playing around with this and it looks like you can only get an event when a new URL is requested, not when it’s loaded. Also, preventing the user from hitting cancel is probably not a good workaround. What if the connection is really slow or times out and never finishes loading? I think this is a bug that just needs to be fixed.
[import]uid: 8692 topic_id: 10043 reply_id: 37208[/import]

Hi there,

Yes I agree, often are work arounds for issues but as only got show, cancel and the URL listener not possible to engineer anything, sounds like may also be performance issue related to it from the link above, but as broken had not bothered to use instruments thus far to look for such issues. It’s simple functionality but if this could be fixed is quite useful even in this simple implementation.

Best regards,

Carl [import]uid: 10629 topic_id: 10043 reply_id: 37211[/import]