Re: [Xsltforms-support] Disabled buttons are click-able on IE, Chrome, Safari
Brought to you by:
alain-couthures
From: Benoit V. <bvi...@la...> - 2012-05-21 12:35:07
|
Hi Alain, Thx, it works fine now. But ... I found another weird feature with triggers (appearance="minimal") and IE9 : 1) In the same test code, replace the line "<xf:trigger ref="b1">" with "<xf:trigger ref="b1" appearance="minimal" >" 2) Display the form 3) each time you click on Button 1, you get a message box "Button 1" ... you are happy. 4) you click anywhere on the windows (Button1 loose the focus), you get an unwanted message box "Button 1" ... you are unhappy. 5) you click again on Button 1, you don't get the message box ... you are unhappy, again ! I think that there is problem with the focus events on minimal triggers. For now I prefer to use standard triggers with CSS to give them a "minimal" style, the produced "<button>" seems more reliable than a "<a href='javascript:void(0);'>" anchor. Thank you for your help Benoit Le 17/05/2012 18:27, Alain Couthures a écrit : > Hi Benoit, > > I have added an extra Javascript test for not considering the click > event on a disabled input. > > Please check again with r545. > > Thank you for your feedbacks! > > -Alain > > Le 15/05/2012 18:20, Benoit VINCENT a écrit : >> >> Hi Alain, >> >> Right now I try to make my forms compatible with IE9and my problem is >> that the read-only triggers remain click-able. >> >> Here's an example: >> >> <?xml-stylesheet href="xsltforms/xsltforms.xsl" type="text/xsl"?> >> <?xsltforms-options debug="yes"?> >> <html xmlns="http://www.w3.org/1999/xhtml" >> xmlns:xf="http://www.w3.org/2002/xforms" >> xmlns:ev="http://www.w3.org/2001/xml-events"> >> <head> >> <title>Test IE9 disabled button</title> >> <xf:model> >> <xf:instance id="main"> >> <data xmlns=""> >> <b1/> >> <b2/> >> </data> >> </xf:instance> >> <xf:bind nodeset="b2" readonly="true()"/> >> </xf:model> >> </head> >> <body> >> <xf:trigger ref="b1"> >> <xf:label>Button 1</xf:label> >> <xf:message ev:event="DOMActivate">Button 1</xf:message> >> </xf:trigger> >> <xf:trigger ref="b2"> >> <xf:label>Disabled Button 2</xf:label> >> <xf:message ev:event="DOMActivate">Disabled Button 2</xf:message> >> </xf:trigger> >> </body> >> </html> >> >> Nothing appends when I try to click the disabled trigger on Firefox or >> Opera, but the message is displayed when use this sample on IE8, IE9, >> Chrome or Safari. What could I do to protect the disabled buttons on all >> browsers ? >> >> Regards >> Benoit >> >> >> >> >> ------------------------------------------------------------------------------ >> >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Xsltforms-support mailing list >> Xsl...@li... >> https://lists.sourceforge.net/lists/listinfo/xsltforms-support >> > |