This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



May 31, 2011, 1:29 AM
8 Posts

Beyond the IE onChange bug

  • Category: Server Side JavaScript
  • Platform: All
  • Release: 8.5.2
  • Role:
  • Tags: ie onChange
  • Replies: 3
 Hi
 
I've run into the bug with IE where the onChange event is not firing.  I have a radio button group which refreshes a panel when the onChange event fires.  This works for both Chrome and Firefox, not IE (9). 
 
As suggested, I've moved the refresh trigger to the onClick and the refresh works as expected.  However, there is now a peculiar bug whereby you have to click on the actual radio button, not the label.  Clicking the label seems to refresh but does not retain the value, reverting back to the original value after the refresh has completed.  This behaviour occurs in all browsers.
 
Any suggestions would be appreciated. 
May 31, 2011, 8:15 AM
33 Posts
Re: Beyond the IE onChange bug
Hi,
in fact the onchange event in IE is firing but only after the radio button loses focus. 
We solved this issue by using dojo widget instead of the standard radio button. 
You can find more about it here: 
http://dojotoolkit.org/reference-guide/dijit/form/RadioButton.html#dijit-form-radiobutton 
Jun 1, 2011, 5:22 AM
8 Posts
Re: Beyond the IE onChange bug
 Thanks.  I'll look at replacing it with the Dojo controls.
May 31, 2011, 6:46 PM
66 Posts
Re: Beyond the IE onChange bug
Ran into the same issue. My forum post is here: http://www-10.lotus.com/ldd/xpagesforum.nsf/topicThread.xsp?documentId=ED3F1A322D7D212A8525787F00485FD9&action=openDocument
 
I ended up having to use the Dojo radio buttons also. (I have the extension library installed) With the Dojo control, groupName stays the same, but the IDs still have to be unique. You can use getComponent("RadioID1").getValue() on just one of the radio buttons in the group and it will still get the value selected in the entire group (e.g. if No was selected)

                    <xe:djRadioButton
                        id="RadioID1"
                        label="Yes"
                        selectedValue="Y"
                        groupName="GroupName"
                        value="#{document.Value}">
                        <xp:eventHandler
                            event="onClick"
                            submit="true"
                            refreshMode="partial"
                            refreshId="RefreshPanel" />
                    </xe:djRadioButton>
                    <xe:djRadioButton
                        id="RadioID2"
                        label="No"
                        selectedValue="N"
                        groupName="GroupName"
                        value="#{document.Value}">
                        <xp:eventHandler
                            event="onClick"
                            submit="true"
                            refreshMode="partial"
                            refreshId="RefreshPanel" />
                    </xe:djRadioButton>

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal