Advertisement

02.04.2008 at 11:45AM PST, ID: 23135950
[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!

6.8

hide / show display not working

Asked by BobCSD in JavaScript, Cascading Style Sheets (CSS), Dynamic HTML (DHTML)

I'm working on a site with existing code.... I changed the look and feel and now the + boxes are not expanding and opening up the sub panels in Firefox only, IE works fine. For instance, there is a text the user clicks the + and it opens up another panel with the sub categories...

Here is the existing code....


    <script language="JavaScript1.2" type="text/javascript">
  <!--
        table_contract = new Image(1,1);
        table_contract.src = "/images/t-open.gif";
        table_expand = new Image(1,1);
        table_expand.src = "/images/t-close.gif";

        function expandDiv(tahw) {
                what  = eval(tahw + "_menu");

                if (what.style.display == "none") {
                        what.style.display = "";

                } else {
                        what.style.display = "none";

                }
        }
  //-->
    </script>

Here is a portion of the code that calls it:

                                                    <tr valign="middle" onmouseover="bgColor='#ffffff'" onmouseout="bgColor='#FFFFFF'">

                                                        <td width="15%" valign="top" onclick="expandDiv('Click')"
                                                            style="cursor: hand" onmouseover="bgColor='White'" onmouseout="bgColor='#FFFFFF'">
                                                            <div align="right">
                                                                <b>
                                                                    Click
                                                                    <img src="/images/plus.gif"></b>
                                                            </div>
                                                        </td>
                                                        <td colspan="3">
                                                            <div class="small" style="display: none;" id="Click_menu">

... then the rest of the stuff goes here that is supposed to open up....

Can anyone see what is wrong with why it doesn't work in Firefox? I have spent hours on this removing and adding and removing and adding to narrow it down to where it is failing, but I am at a loss.

One thing I added to my version, which was not in the original version is this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

If I remove that from my version, and just leave <html>in, the content of my document doesn't display on the screen.




Start Free Trial
 
 
[+][-]02.04.2008 at 11:53AM PST, ID: 20817363

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]02.04.2008 at 11:54AM PST, ID: 20817367

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]02.04.2008 at 01:00PM PST, ID: 20817922

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, Cascading Style Sheets (CSS), Dynamic HTML (DHTML)
Sign Up Now!
Solution Provided By: BobCSD
Participating Experts: 3
Solution Grade: B
 
 
[+][-]02.05.2008 at 05:21AM PST, ID: 20822610

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]02.17.2008 at 06:00PM PST, ID: 20917041

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

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

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