Hi John,

I know what you're thinking of even if I think you mean the onbeforeunload 
event.
I had the same problem with my 5 key mouse, the left-sided button is by default 
set to "go-back". 
But I think this is not the same problem, because of, that's like a user click 
the browsers back button. I don't want to forbid such default browser 
navigations.

The problem is more that users did not see the difference between a editable 
text field an one that's set read-only. 
So sometimes the users click into it and try to delete the content with 
backspace and this is causing IE (v9, still not sure if other versions are 
affected) to load the previous visited website... and so they are losing work 
and have to login again.

Regards,
Andreas

>-----Ursprüngliche Nachricht-----
>Von: John Spackman [mailto:[email protected]]
>Gesendet: Mittwoch, 8. Februar 2012 13:41
>An: qooxdoo Development
>Betreff: Re: [qooxdoo-devel] backspace on readonly field (IE)
>
>Just a thought but can you catch and cancel the onbeforeload event?  I had
>a user the other day that kept accidentally going "back" when using my
>mouse and loosing all of her work.
>
>John
>
>On 08/02/2012 12:24, "Fink, Andreas" <[email protected]> wrote:
>
>>Hi Thomas,
>>
>>you are right there are many ways for a workaround :)
>>We create many fields dynamic from xml (not only text fields, nearly
>>every qooxdoo form field and custom fields) and I don't want such a huge
>>amount of listeners.
>>
>>But anyway, my question was more about if this is a bug (I think so) or
>>the desired behavior. And if there is framework default workaround that
>>fails on IE 9?
>>
>>Regards,
>>Andreas
>>
>>>-----Ursprüngliche Nachricht-----
>>>Von: thron7 [mailto:[email protected]]
>>>Gesendet: Mittwoch, 8. Februar 2012 13:06
>>>An: qooxdoo Development
>>>Betreff: Re: [qooxdoo-devel] backspace on readonly field (IE)
>>>
>>>
>>>
>>>On 02/08/2012 11:48 AM, Fink, Andreas wrote:
>>>> Hi all,
>>>>
>>>> we mentioned a ugly behavior of our app when someone set the cursor
>in
>>>>a
>>>read-only text field an press the backspace key.
>>>> The browser then loads the previous visited website. At least IE 9 is
>>>>doing
>>>this this, it doesn't happen with Firefox. I've not tested other
>>>Browsers yet.
>>>>
>>>> I've implemented a workaround by adding a listener to the root:
>>>>
>>>> this.getRoot().addListener("keypress", function(e) {
>>>>    if (e.getKeyIdentifier() === "Backspace") {
>>>>      e.stop();
>>>>    }
>>>> }, this);
>>>
>>>Why didn't you set the listener on the text field? That would still
>>>allow backspace navigation if the focus is elsewhere.
>>>
>>>Also, you could use .preventDefault().
>>>
>>>T.
>>>
>>>-------------------------------------------------------------------------
>>>-----
>>>Keep Your Developer Skills Current with LearnDevNow!
>>>The most comprehensive online learning library for Microsoft developers
>>>is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
>>>Metro Style Apps, more. Free future releases when you subscribe now!
>>>http://p.sf.net/sfu/learndevnow-d2d
>>>_______________________________________________
>>>qooxdoo-devel mailing list
>>>[email protected]
>>>https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>>--------------------------------------------------------------------------
>>----
>>Keep Your Developer Skills Current with LearnDevNow!
>>The most comprehensive online learning library for Microsoft developers
>>is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
>>Metro Style Apps, more. Free future releases when you subscribe now!
>>http://p.sf.net/sfu/learndevnow-d2d
>>_______________________________________________
>>qooxdoo-devel mailing list
>>[email protected]
>>https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
>
>
>------------------------------------------------------------------------------
>Keep Your Developer Skills Current with LearnDevNow!
>The most comprehensive online learning library for Microsoft developers
>is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
>Metro Style Apps, more. Free future releases when you subscribe now!
>http://p.sf.net/sfu/learndevnow-d2d
>_______________________________________________
>qooxdoo-devel mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to