Thanks for the sample - it loads the target in the UIWebView. I tried using a target of "_blank" as well, same result. I might have to just catch external urls in the native app and launch safari manually,
Thank you
-- On Sun, Dec 30, 2012 at 9:30 PM, Paul Stockley <pstockley1@gmail.com> wrote:
This works on iOS Fullscreen web applications. I think it may also work on a UIWebViewpublic void open(String url) {Anchor a = new Anchor();a.setTarget("_new");a.setHref(url);RootPanel.get().add(a);NativeEvent e = Document.get().createHtmlEvent("click", true, true);a.getElement().dispatchEvent(e);RootPanel.get().remove(a);}To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/UVzOE3n_CyQJ.--
On Sunday, December 30, 2012 1:57:50 PM UTC-5, markww wrote:Hi,I have a Button, when clicked, I'd like to open a url in a new browser instance. The following works on desktop:Window.open(url, "_blank", null);When I run the same code in a UIWebView on ios, nothing happens. Ideally I'd like to open a new instance of mobile safari directed to that url. Does anyone have any ideas of how to do this? I can fall back on catching the url in my objective-c code, but ideally there's something we could do directly in javascript to trigger mobile safari to open,
Thanks
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment