I have installed a WindowClosingHandler to catch when people leave my 
application without saving any data they have entered.

In my application, some HTML text is stored in a database and displayed on 
a page.  This text contains an <a href="javascript:function()"> element.  
When I click on this element, IE calls my window closing handler.

I have read through 
https://groups.google.com/forum/?fromgroups=#!topic/google-web-toolkit/vaxeiEvNoUs
 
which references called ClickEvent#preventDefault in a click handler to 
avoid this problem, but this is not possible since my code is not actually 
responding to the click event; it's the browser doing it in response to 
clicking on the <a> element.  Having the content come from the database is 
a strict requirement; it can't become part of the application.

Is there any way to deal with this?  It doesn't happen in Firefox or 
Chrome, but most of my users will likely be using IE.

Thanks!
Ryan

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to