Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-22282

Extensible choice parameter greyed out in Internet Explorer

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I have defined an Extensible Choice parameter with a Global Choice Parameter with "Top Most Choice", checked "add Edited Value" and made it Editable. When I build the job with parameters, the choice is greyed out and the drop-down menu is not available.

        Attachments

          Activity

          Hide
          dodren David Odren added a comment -

          Ah, your last post has been most helpful! Now I have to figure out why my default setting in IE seems to be '7'. Perhaps I need to talk with our IT department. As soon as I change it to a higher value per your instructions the problem goes away.

          Show
          dodren David Odren added a comment - Ah, your last post has been most helpful! Now I have to figure out why my default setting in IE seems to be '7'. Perhaps I need to talk with our IT department. As soon as I change it to a higher value per your instructions the problem goes away.
          Hide
          ikedam ikedam added a comment -

          Your web server where Jenkins is located may be configured to send "X-UA-Compatible" header, which force the document mode of IE.
          Please also consult to the maintainer of the web server.
          This page would be helpful: http://msdn.microsoft.com/en-us/library/cc817573.aspx

          Show
          ikedam ikedam added a comment - Your web server where Jenkins is located may be configured to send "X-UA-Compatible" header, which force the document mode of IE. Please also consult to the maintainer of the web server. This page would be helpful: http://msdn.microsoft.com/en-us/library/cc817573.aspx
          Hide
          ikedam ikedam added a comment -

          IE7 seems generate wrong input field in JavaScript

          • IE11
            <tr>
            <td class="setting-leftspace">&nbsp;</td>
            <td class="setting-name">ChoiceTest</td>
            <td class="setting-main">
            <div name="parameter" description="">
              <input name="name" type="hidden" value="ChoiceTest">
              <input
                name="value"
                class="setting-input   staticCombobox"
                value="A"
                autocomplete="off">
              <script src="/scripts/utilities.js" type="text/javascript"></script>
              <script src="/scripts/combobox.js" type="text/javascript"></script>
              <script src="/adjuncts/ed62c48a/jp/ikedam/jenkins/plugins/taglib/form/staticSelect/staticCombobox.js" type="text/javascript"></script>
            </div>
            </td>
            </tr>
            
          • IE7
            <TR>
            <TD class=setting-leftspace>&nbsp;</TD>
            <TD class=setting-name>ChoiceTest</TD>
            <TD class=setting-main>
            <DIV name="parameter" description="">
              <INPUT type=hidden value=ChoiceTest name=name>
              <INPUT
                disabled
                value=A
                autocomplete="off"
                class="setting-input   staticCombobox" 
                oldValue="A"> <!-- removed many non-related attributes -->
            <SCRIPT type=text/javascript src="/scripts/utilities.js"></SCRIPT>
            <SCRIPT type=text/javascript src="/scripts/combobox.js"></SCRIPT>
            <SCRIPT type=text/javascript src="/adjuncts/ed62c48a/jp/ikedam/jenkins/plugins/taglib/form/staticSelect/staticCombobox.js"></SCRIPT>
            </DIV>
            </TD>
            </TR>
            

          I tested this by running following from the location bar (be cautious as copy and paste omits "javascript:"):

          javascript:void(window.clipboardData.setData('Text',document.body.innerHTML))
          
          • "disabled" is specified
          • no "name" field
          Show
          ikedam ikedam added a comment - IE7 seems generate wrong input field in JavaScript IE11 <tr> <td class= "setting-leftspace" >&nbsp;</td> <td class= "setting-name" >ChoiceTest</td> <td class= "setting-main" > <div name= "parameter" description=""> <input name= "name" type= "hidden" value= "ChoiceTest" > <input name= "value" class= "setting-input staticCombobox" value= "A" autocomplete= "off" > <script src= "/scripts/utilities.js" type= "text/javascript" ></script> <script src= "/scripts/combobox.js" type= "text/javascript" ></script> <script src= "/adjuncts/ed62c48a/jp/ikedam/jenkins/plugins/taglib/form/staticSelect/staticCombobox.js" type= "text/javascript" ></script> </div> </td> </tr> IE7 <TR> <TD class=setting-leftspace>&nbsp;</TD> <TD class=setting-name>ChoiceTest</TD> <TD class=setting-main> <DIV name= "parameter" description=""> <INPUT type=hidden value=ChoiceTest name=name> <INPUT disabled value=A autocomplete= "off" class= "setting-input staticCombobox" oldValue= "A" > <!-- removed many non-related attributes --> <SCRIPT type=text/javascript src= "/scripts/utilities.js" ></SCRIPT> <SCRIPT type=text/javascript src= "/scripts/combobox.js" ></SCRIPT> <SCRIPT type=text/javascript src= "/adjuncts/ed62c48a/jp/ikedam/jenkins/plugins/taglib/form/staticSelect/staticCombobox.js" ></SCRIPT> </DIV> </TD> </TR> I tested this by running following from the location bar (be cautious as copy and paste omits "javascript:"): javascript:void(window.clipboardData.setData( 'Text' ,document.body.innerHTML)) "disabled" is specified no "name" field
          Hide
          ikedam ikedam added a comment -

          I finally found the root cause.
          This is caused by the incompatibility of attributes,getAttribute,setAttribute in IE7.
          I have no idea how I can fix it.
          I think extensible-choice-parameter does not support IE7 or earlier.

          Show
          ikedam ikedam added a comment - I finally found the root cause. This is caused by the incompatibility of attributes , getAttribute , setAttribute in IE7. I have no idea how I can fix it. I think extensible-choice-parameter does not support IE7 or earlier.
          Show
          ikedam ikedam added a comment - Added notes: https://wiki.jenkins-ci.org/display/JENKINS/Extensible+Choice+Parameter+plugin#ExtensibleChoiceParameterplugin-Limitations

            People

            • Assignee:
              ikedam ikedam
              Reporter:
              dodren David Odren
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: