RootPanel --> OutClickEvent -- > how to detect click event out of the HTML Page it self ?

46 views
Skip to first unread message

Alp Yilancioglu

unread,
Nov 29, 2012, 4:31:26 PM11/29/12
to google-we...@googlegroups.com
Hi,
how can i detect the OutMouseClicks out side of the HTML page ?
 
 

Jens

unread,
Nov 29, 2012, 5:18:44 PM11/29/12
to google-we...@googlegroups.com
In general its window.onBlur in JavaScript but IE handles things a bit different as usual ;-) They tried to integrate a focus/blur handler for the window object into GWT some time ago but it does not work very well, so they removed it. 

See: 

Alp Yilancioglu

unread,
Nov 30, 2012, 5:25:58 AM11/30/12
to google-we...@googlegroups.com
Thanks ;)

Joseph Lust

unread,
Nov 30, 2012, 10:35:29 AM11/30/12
to google-we...@googlegroups.com
To detect when the user has left the window, you can also look as the new page visibility API in HTML5.
See the explication/example here: http://davidwalsh.name/page-visibility


Sincerely,
Joseph
Reply all
Reply to author
Forward
0 new messages