Tuesday, September 27, 2016

Re: Window.open does nothing in windows mobile 10 (IEEdge)

Thanks for suggestions. As far as I know you still cannot remote debug mobile IEEdge in visual studio 2015

Anyway I think I have the answer. For some reason if I call window.open in response to a click event or another native event like pointerdown then it works.

If I call window.open in response to a GWT fired event like TapEvent for example (I'm using MGWT which fires tap events when you get a pointerdown followed by a pointerup event) then window.open does not work! You get no error, the call is basically ignored.

Very strange. I'm still investigating.

Cheers
 
On Tuesday, September 27, 2016 at 11:35:49 AM UTC+1, Vassilis Virvilis wrote:
looks like a popup blocker issue... Does an alert command before window open() works? If yes then you don't have problem with the event but with open per se.

Mobile Chromium and mobile Safari have a developer mode with console - when connected to desktop computer. It needs some setup but a console may give a hint.

    Vassilis

On Tue, Sep 27, 2016 at 1:27 PM, Paul <paul....@kirona.com> wrote:
In a simple GWT test project it works. It must be something I'm doing with event capture. My application is complex so I'll have to try and workout what is stopping the window.open just for IEEdge on windows mobile10

IEEdge desktop is fine and so is chrome! Strange.... 


On Tuesday, September 27, 2016 at 10:52:31 AM UTC+1, Paul wrote:
Window.open("http://www.google.co.uk","_blank","")

....does nothing in windows mobile 10 (IEEdge) when running in GWT 2.7

Any ideas?

If I write a simple html page with the above javascript, then the browser happily opens the google page on a new tab.



--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.



--
Vassilis Virvilis

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment