Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jul 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Value not setting for selectonemenu in IE9/10

    Hi All,
    I am facing a issue in which i want to set value for selectonemenu by using document.getElementById().
    The below code executes when printpreview link is clicked.
    Issue: The value selected in the dropdown in main page is not same as thatof print previewpage. Instead in the print preview page the drop down is displaying defaut value .
    This is only happening in IE9/10.


    Code:
    function settingParameters(){
    //In below code I am trying to get the value for the item being selected in selectonemenu1.
    
    valueOfTable1=document.getElementById("view<portlet:namespace/>form1:table1"+i+":selectonemenu1").value;
    
    //In below code I am trying to set the value of selectonemenu2 with the values of selectonemenu1.
    
    document.getElementById("view<portlet:namespace/>:form2:table2:"+i+":selectonemenu2").value=valueOfTable1;
    
    }
    Please let me know if anyone had faced such isue and how to resolve the same.
    Thanks in advance.
    Regards,
    Partho
    Last edited by VIPStephan; 07-29-2013 at 09:44 AM. Reason: corrected code BB tags

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,033
    Thanks
    0
    Thanked 248 Times in 245 Posts
    When the page is printed, does the print out also show the default value and not the selected value?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •