Advertisement

03.26.2007 at 12:33PM PDT, ID: 22473344
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.6

JavaScript inconsistancies between IE7 & IE6 ... HELP

Asked by lrygiel in JavaScript, Web Browsers, Scripting Languages

Tags: , ,

I have a web page that shows content based upon the selections of a multi select combo box. All seems to work fine under IE 7, but under IE 6 you seem to have do click multiple times to get the correct result.  When I select a state from the combo box, a corresponding table row should be displayed, select again and it should be hidden. Multiple selections should show multiple rows.

The following code illustrates the problem:

<html>
<head>
<script language="javascript" >
function fShowRow(sObjName, bShow){
      //alert('show')
      document.getElementById("tr" + sObjName).style.display= (bShow) ?"block":"none"}

function fShow(obj){
      var oObj = obj;
      for (i=0;i<obj.length;i++)
            {if (obj.options[i].value != "")
                  {if (obj.options[i].selected)
                        {fShowRow(obj.options[i].value,true);}
                  else
                        {fShowRow(obj.options[i].value,false)}
                  }
            else
                  {fShowRow(obj.options[i].value,false)}
            }
      }
</script>
</head>
<body>
<table border="1">
      <tr>
            <td valign="top">
                  <p align="center">State<br>
                  <SELECT size="3" id="frmLicState" size="1" multiple      onclick="fShow(document.getElementById('frmLicState'));">
                        <OPTION value='' SELECTED>None</OPTION>
                        <OPTION value='01'>NJ</OPTION>
                        <OPTION value='03'>NY</OPTION>
                  </SELECT>
            </td>
            <td valign="top">
                  <table border="0" cellspacing="0">
                        <tr style="display:block;"><td valign="bottom">State</td></tr>
                        <tr id='tr'   style='display:none;' licstateid=''  ><td >None</td></tr>
                        <tr id='tr01' style='display:none;' licstateid='01'><td >NJ</td></tr>
                        <tr id='tr03' style='display:none;' licstateid='03'><td >NY</td></tr>
                  </table>
            </td>
      </tr>
</table>
</body>
</html>

Copy and paste and view in your browser. The funny thing is, if you uncomment the "alert" code it works fine under both(?) but of course, you can't have that alert box poping up all the time.

This is for a client web site, so a resolution is critical. Please help, I'm at wits end.


Start Free Trial
[+][-]03.26.2007 at 02:28PM PDT, ID: 18796158

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: JavaScript, Web Browsers, Scripting Languages
Tags: ie7, javascript, ie6
Sign Up Now!
Solution Provided By: stanscott2
Participating Experts: 1
Solution Grade: A
 
 
[+][-]03.26.2007 at 06:39PM PDT, ID: 18797254

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32