Advertisement

10.26.2004 at 01:08PM PDT, ID: 21183586
[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!

7.8

Javascript Frames navigation has stopped working for some -- not all (IE6)

Asked by shambright in JavaScript

Tags: , , ,

My website has a members area with some nested framesets like this:

A webpage (toolbar.html) creates a header frame across the top (headerFr), and then the bottom frame (mainFr)
The source of mainFr is another frameset: a left panel (panelFr) and a main content window (botFr).

I can include the frameset HTML if it is necessary... but I dont think that this is the problem.

The links in the headerFr call javascript code to change both of the other frames. Further, there is some javascript code in the panel frame that actually changes the color of some pieces in the header frame. I tested and re-tested all of this and it works great.

Just in the last few weeks, I am getting complaints from some that the javascript links in the headerFr are not working. The common thread is that the users are using Windows XP with IE6.

-----------------------------------------------
HTML from headerFr:

<HTML>
<HEAD>
<META Http-Equiv="Cache-Control" Content="no-cache">
<META Http-Equiv="Pragma" Content="no-cache">
<META Http-Equiv="Expires" Content="0">
<!--
-->
<script type="text/javascript" language="JavaScript">
<!--
if (top.location == self.location) { top.location.href="toolbar.html" }
//-->
      function selectNavTab(name) {
            var element,i,classNm;
            navElement = new Array("NAV1","NAV2","NAV3","NAVlogout")
            for (i=0;i<navElement.length;i++) {
                        
                  if (document.getElementById(navElement[i])) {
                        element = document.getElementById(navElement[i]);
                        classNm = (name == navElement[i]) ? "select" : "";
                        element.className=classNm;
                  }
            }
      }      
</script>
<SCRIPT type="text/javascript" language = "JavaScript">
<!--
      function changeNAV(whichPage) {
            switch (whichPage) {
                  case "NAV1" :
                        selectNavTab("NAV1");
                        parent.mainFr.panelFr.location.href="**loc**";
                        parent.mainFr.botFr.location.href="**loc**";
                  break;
                  case "NAV2" :
                        selectNavTab("NAV2");
                        parent.mainFr.panelFr.location.href="**loc**";
                        parent.mainFr.botFr.location.href="**loc**";
                  break;
                  case "NAV3" :
                        selectNavTab("NAV3");
                        parent.mainFr.panelFr.location.href="**loc**";
                        parent.mainFr.botFr.location.href="**loc**";
                  break;
                  case "NAVlogout" :
                        selectNavTab("NAVlogout");
                        parent.mainFr.botFr.location.href="logout.cgi";
                  break;
            }            
      }
//-->
</SCRIPT>
</HEAD>

<STYLE>
BODY {margin-left:0px;}
#navigation {
      font-family:verdana;
      font-size: 11px;
      font-weight: bold;
}

#navigation A {
      color: #000;
      background: #fc0 url("/images/members/tab-FFCC00-left.gif") left top no-repeat;
      text-decoration: none;
      padding-left:10px;
}

#navigation A span {
      background: url("/images/members/tab-FFCC00-right.gif") right top no-repeat;
      padding-right: 10px;
}      

#navigation A:hover {
      color: #fff;
      background: #000040 url("/images/members/tab-000040-left.gif") left top no-repeat;
      text-decoration: none;
      padding-left: 10px
}

#navigation A:hover span {
      background: url("/images/members/tab-000040-right.gif") right top no-repeat;
      padding-right: 10px
}

#navigation A.select {
      color: #fff;
      background: #000040 url("/images/members/tab-000040-left.gif") left top no-repeat;
      text-decoration: none;
      padding-left:10px;
}

#navigation A.select span {
      background: url("/images/members/tab-000040-right.gif") right top no-repeat;
      padding-right: 10px;
}

#navigation A.select:hover {
      color: #fff;
      background: #000040 url("/images/members/tab-000040-left.gif") left top no-repeat;
      text-decoration: none;
      padding-left: 10px
}



#navigation ul {
      list-style: none;
      padding: 0;
      margin: 0;
}
#navigation li {
      float: left;
      display: block;
      margin: 0;
      padding: 0;      
}

.headline {
      font-family:Tahoma,verdana;
      font-size:16px;
      color: #000040;
      font-weight:bold;
}

</STYLE>


<BODY>

<table bgcolor="#FFFFFF" width="100%" height="60" border="0" cellspacing="0" cellpadding="0">
<TR valign=top><TD align="left">

      <TABLE border=0 cellpadding=0 cellspacing=0>
      <tr valign=top><td style='padding-left:15px;padding-bottom:3px;'><img src="/images/logo/logo_small.gif"></TD>
      <TD style='padding-left:5px;padding-bottom:3px;' nowrap><span class='headline'>Members Area</span></TD>
      </TR>
      </TABLE>


      <table border="0" cellpadding="0" cellspacing="0" width="750">
      <TR>
      <TD>
            <ul id="navigation">
            <li><a href="javascript:changeNAV('NAV1');" id="NAV1" class="select"><span>Home</span></a></li>
            <li><a href="javascript:changeNAV('NAV2');" id="NAV2" ><span>Area1</span></a></li>
            <li><a href="javascript:changeNAV('NAV3');" id="NAV3" ><span>Area2</span></a></li>
            <li><a href="javascript:changeNAV('NAVlogout');" id="NAVlogout" ><span>Log Out</span></a></li>
            <li><a href="**loc**" target="_top"><span>Having Trouble?</span></a></li>
            </ul>            
      </TD>
      </TR>
      <TR><TD bgcolor="#000040">&nbsp;</TD></TR>
      </table>

</TD>
</TR>
</table>

</BODY>
</HTML>


------------------------------------------------
------------------------------------------------
sample HTML from panelFr:

<HTML>
<HEAD>
<META Http-Equiv="Cache-Control" Content="no-cache">
<META Http-Equiv="Pragma" Content="no-cache">
<META Http-Equiv="Expires" Content="0">
<link href="/stylesht/members_only/NEWmenu.css" rel="stylesheet" type="text/css">

<SCRIPT LANGUAGE="JavaScript" TYPE="TEXT/JAVASCRIPT" SRC="/javascript/members_only.js">
</SCRIPT>
      <TITLE>Nav Bar</TITLE>
<!-- CHANGE Select Tab in Header Frame -->
<script type="text/javascript" language="JavaScript">
      if (top.location == self.location) { top.location.href="toolbar.html" }
      parent.parent.headerFr.selectNavTab("NAV1");
</script>

</HEAD>
<BODY BGCOLOR="#000040" topmargin="0" leftmargin="0">

<table border=0 width="130" cellpadding="0" cellspacing="0">
      
      <TR><TD></TD><TD><HR color="darkblue"></TD></TR>

<!-- HOME -->
      <TR valign="top"><td valign=top nowrap height="14"><img src="/images/folder.gif" width=14 height=11 border=0></td><td valign=top nowrap><span class="heading">&nbsp;Home</span></td></tr>
      <TR valign="top"><TD></TD><td valign=top nowrap>&nbsp;<a class="subhead" href="member_intropage.html" target="botFr" onMouseover="window.status='Return To Members Area Home';return true" onMouseout="window.status='';return true">Home <span style="font-size:10px;font-family:Arial;">(acct. overview)</span></a></td></tr>

      
      <TR><TD></TD><TD><HR color="darkblue"></TD></TR>


<!-- ADMIN -->
      <TR valign="top"><td valign=top nowrap height="14"><img src="/images/wsr/folder.gif" width=14 height=11 border=0></td><td><span class="heading">&nbsp;Admin</span></td></tr>
      <TR valign="top"><TD></td><td valign=top nowrap><a class="subhead" href="**ACTION**" target="botFr" onMouseover="window.status='Do this action...';return true" onMouseout="window.status='';return true">Action 1</a></td></tr>
      <TR valign="top"><TD></td><td valign=top nowrap><a class="subhead" href=**ACTION**" target="botFr" onMouseover="window.status='Do this action...';return true" onMouseout="window.status='';return true">Action 2</a></td></tr>
      
      <TR><TD></TD><TD><HR color="darkblue"></TD></TR>

</table>

</BODY>
</HTML>


======================================

From those that are complaining, links from the panelFr DO change the content of botFr, but nothing happens when clicking the links in the headerFr.

I cannot duplicate this problem, and have tried using several different browsers on Mac and PC. Very frustrating.

"toolbar.html" calls the opening frameset (headerFr and mainFr), just in case someone tries to open a subframe in a new window.

I have been researching the popup blocker angle, and asking someone with problems to <control>click the links does not help.

Anyone?Start Free Trial
[+][-]10.26.2004 at 03:33PM PDT, ID: 12416536

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 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.27.2004 at 06:45AM PDT, ID: 12422030

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 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.27.2004 at 07:04AM PDT, ID: 12422323

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 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.27.2004 at 07:41AM PDT, ID: 12422712

View this solution now by starting your 14-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

Zone: JavaScript
Tags: ie6, javascript, navelement, navigation
Sign Up Now!
Solution Provided By: COBOLdinosaur
Participating Experts: 1
Solution Grade: B
 
 
[+][-]10.27.2004 at 08:21AM PDT, ID: 12423193

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 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.27.2004 at 09:25AM PDT, ID: 12423978

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 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.27.2004 at 07:45PM PDT, ID: 12429855

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 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.28.2004 at 06:15AM PDT, ID: 12433299

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 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.05.2004 at 01:42PM PST, ID: 12509140

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 14-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.06.2004 at 02:05PM PST, ID: 12514780

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 14-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.07.2004 at 02:55PM PST, ID: 12519448

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 14-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-43