Hi there,

I believe the problem is here:

<script type="application/javascript">

IE6 doesn't like that. Change it to:

<script type="text/javascript">

that should do it.


--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On May 14, 2008, at 5:19 PM, switch13 wrote:


Even simple .hide(); does not seem to be working! I have the latest
version of jQuery and every piece of my code seems to work perfectly
in FF.

I spent a day of development getting the jQuery below down to about 10
lines only to find the next day that it doesn't work in IE6.

Here's a sample:

<!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";>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Agg Perf Test</title>
<script src="jquery.js" type="text/javascript" language="javascript"></
script>

<script type="application/javascript">
        $(document).ready(function() {
                $(".dis_hide").hide();
                $(".dis").hide();
                $(".dis_show").click(function(){
                        $(this).hide();
                        $(this).parents("table").next().show('slow');
                        $(this).next().show();
                });
                $(".dis_hide").click(function(){
                        $(this).hide();
                        $(this).parents("table").next().hide('slow');
                        $(this).prev().show();
                });

        });
</script>

<style type="text/css">
</style>
</head>
<body>
<table>
   <tr>
       <td class="hiliteB-1" height="28" colspan="11">
           <b>
               <a href="#">Small Cap Core</a>
               <sup>
                       <span id="dis_show_ns" class="dis_show">
                           show disclosure
                       </span>
                       <span id="dis_hide_ns" class="dis_hide">
                           hide disclosure
                       </span>
               </sup>
           </b>
       </td>
   </tr>
<tr>
<td class="hiliteB-1" height="28" colspan="11">
<a href=#">
<b>(Click here for Gross Expense Ratio)</b>
</a>
</td>
</tr>
<tr>
<td class="hiliteA-1" align="right"> Class A </td>
<td class="hiliteA-1" width="1"/>
<td class="hiliteA-1" nowrap="yes" align="center"> 10.34 </td>
<td class="hiliteA-1" nowrap="yes" align="center">
</td>
<td class="hiliteA-1" nowrap="yes" align="center"> -9.85% </td>
<td width="1"/>
<td class="hiliteA-1" nowrap="yes" align="center"> -16.83% </td>
<td class="hiliteA-1" nowrap="yes" align="center"> 11.73% </td>
<td class="hiliteA-1" nowrap="yes" align="center"> 10.72% </td>
<td width="1"/>
<td class="hiliteA-1" nowrap="yes" align="center"> -21.62% </td>
<td class="hiliteA-1" nowrap="yes" align="center"> 10.41% </td>
<td class="hiliteA-1" nowrap="yes" align="center"> 10.02% </td>
</tr>
<tr>
<td class="hiliteA-1" align="right"> Class A </td>
<td class="hiliteA-1" width="1"/>
<td class="hiliteA-1" nowrap="yes" align="center"> 10.34 </td>
<td class="hiliteA-1" nowrap="yes" align="center">
</td>
<td class="hiliteA-1" nowrap="yes" align="center"> -9.85% </td>
<td width="1"/>
<td class="hiliteA-1" nowrap="yes" align="center"> -16.83% </td>
<td class="hiliteA-1" nowrap="yes" align="center"> 11.73% </td>
<td class="hiliteA-1" nowrap="yes" align="center"> 10.72% </td>
<td width="1"/>
<td class="hiliteA-1" nowrap="yes" align="center"> -21.62% </td>
<td class="hiliteA-1" nowrap="yes" align="center"> 10.41% </td>
<td class="hiliteA-1" nowrap="yes" align="center"> 10.02% </td>
</tr>
<tr>
<td class="hiliteA-1" align="right"> Class A </td>
<td class="hiliteA-1" width="1"/>
<td class="hiliteA-1" nowrap="yes" align="center"> 10.34 </td>
<td class="hiliteA-1" nowrap="yes" align="center">
</td>
<td class="hiliteA-1" nowrap="yes" align="center"> -9.85% </td>
<td width="1"/>
<td class="hiliteA-1" nowrap="yes" align="center"> -16.83% </td>
<td class="hiliteA-1" nowrap="yes" align="center"> 11.73% </td>
<td class="hiliteA-1" nowrap="yes" align="center"> 10.72% </td>
<td width="1"/>
<td class="hiliteA-1" nowrap="yes" align="center"> -21.62% </td>
<td class="hiliteA-1" nowrap="yes" align="center"> 10.41% </td>
<td class="hiliteA-1" nowrap="yes" align="center"> 10.02% </td>
</tr>
<tr>
<td class="hiliteA-1" align="right"> Class A </td>
<td class="hiliteA-1" width="1"/>
<td class="hiliteA-1" nowrap="yes" align="center"> 10.34 </td>
<td class="hiliteA-1" nowrap="yes" align="center">
</td>
<td class="hiliteA-1" nowrap="yes" align="center"> -9.85% </td>
<td width="1"/>
<td class="hiliteA-1" nowrap="yes" align="center"> -16.83% </td>
<td class="hiliteA-1" nowrap="yes" align="center"> 11.73% </td>
<td class="hiliteA-1" nowrap="yes" align="center"> 10.72% </td>
<td width="1"/>
<td class="hiliteA-1" nowrap="yes" align="center"> -21.62% </td>
<td class="hiliteA-1" nowrap="yes" align="center"> 10.41% </td>
<td class="hiliteA-1" nowrap="yes" align="center"> 10.02% </td>
</tr>
</table>
<div id="dis_ns" class="dis">Test disclosure. Test disclosure. Test
disclosure. Test disclosure. Test disclosure. Test disclosure. Test
disclosure. Test disclosure. Test disclosure. Test disclosure. Test
disclosure. Test disclosure. Test disclosure. Test disclosure. Test
disclosure. Test disclosure. Test disclosure. Test disclosure. Test
disclosure. Test disclosure. Test disclosure. Test disclosure. Test
disclosure. Test disclosure. Test disclosure. Test disclosure. Test
disclosure. Test disclosure. Test disclosure. Test disclosure. Test
disclosure. Test disclosure. Test disclosure. Test disclosure. Test
disclosure. Test disclosure. Test disclosure. Test disclosure. Test
disclosure. Test disclosure. </div>
<table>
<tr>
<td class="hiliteB-1" height="28" colspan="11">
<b>
<a href="#">Foundation Moderate Allocation</a>
<sup>
        <span id="dis_show_ng" class="dis_show">
        show disclosure
       </span>
        <span id="dis_hide_ng" class="dis_hide">
        hide disclosure
       </span>
</sup>
</b>
</td>
</tr>
<tr>
<td class="hiliteB-1" height="28" colspan="11">
<a href="#">
<b>(Click here for Gross Expense Ratio)</b>
</a>
</td>
</tr>
<tr>
<td class="hiliteA-1" align="right"> Class A </td>
<td class="hiliteA-1" width="1"/>
<td class="hiliteA-1" nowrap="yes" align="center"> 10.34 </td>
<td class="hiliteA-1" nowrap="yes" align="center">
</td>
<td class="hiliteA-1" nowrap="yes" align="center"> -9.85% </td>
<td width="1"/>
<td class="hiliteA-1" nowrap="yes" align="center"> -16.83% </td>
<td class="hiliteA-1" nowrap="yes" align="center"> 11.73% </td>
<td class="hiliteA-1" nowrap="yes" align="center"> 10.72% </td>
<td width="1"/>
<td class="hiliteA-1" nowrap="yes" align="center"> -21.62% </td>
<td class="hiliteA-1" nowrap="yes" align="center"> 10.41% </td>
<td class="hiliteA-1" nowrap="yes" align="center"> 10.02% </td>
</tr>
<tr>
<td class="hiliteA-1" align="right"> Class A </td>
<td class="hiliteA-1" width="1"/>
<td class="hiliteA-1" nowrap="yes" align="center"> 10.34 </td>
<td class="hiliteA-1" nowrap="yes" align="center">
</td>
<td class="hiliteA-1" nowrap="yes" align="center"> -9.85% </td>
<td width="1"/>
<td class="hiliteA-1" nowrap="yes" align="center"> -16.83% </td>
<td class="hiliteA-1" nowrap="yes" align="center"> 11.73% </td>
<td class="hiliteA-1" nowrap="yes" align="center"> 10.72% </td>
<td width="1"/>
<td class="hiliteA-1" nowrap="yes" align="center"> -21.62% </td>
<td class="hiliteA-1" nowrap="yes" align="center"> 10.41% </td>
<td class="hiliteA-1" nowrap="yes" align="center"> 10.02% </td>
</tr>
<tr>
<td class="hiliteA-1" align="right"> Class A </td>
<td class="hiliteA-1" width="1"/>
<td class="hiliteA-1" nowrap="yes" align="center"> 10.34 </td>
<td class="hiliteA-1" nowrap="yes" align="center">
</td>
<td class="hiliteA-1" nowrap="yes" align="center"> -9.85% </td>
<td width="1"/>
<td class="hiliteA-1" nowrap="yes" align="center"> -16.83% </td>
<td class="hiliteA-1" nowrap="yes" align="center"> 11.73% </td>
<td class="hiliteA-1" nowrap="yes" align="center"> 10.72% </td>
<td width="1"/>
<td class="hiliteA-1" nowrap="yes" align="center"> -21.62% </td>
<td class="hiliteA-1" nowrap="yes" align="center"> 10.41% </td>
<td class="hiliteA-1" nowrap="yes" align="center"> 10.02% </td>
</tr>
<tr>
<td class="hiliteA-1" align="right"> Class A </td>
<td class="hiliteA-1" width="1"/>
<td class="hiliteA-1" nowrap="yes" align="center"> 10.34 </td>
<td class="hiliteA-1" nowrap="yes" align="center">
</td>
<td class="hiliteA-1" nowrap="yes" align="center"> -9.85% </td>
<td width="1"/>
<td class="hiliteA-1" nowrap="yes" align="center"> -16.83% </td>
<td class="hiliteA-1" nowrap="yes" align="center"> 11.73% </td>
<td class="hiliteA-1" nowrap="yes" align="center"> 10.72% </td>
<td width="1"/>
<td class="hiliteA-1" nowrap="yes" align="center"> -21.62% </td>
<td class="hiliteA-1" nowrap="yes" align="center"> 10.41% </td>
<td class="hiliteA-1" nowrap="yes" align="center"> 10.02% </td>
</tr>
</table>
<div id="dis_ng" class="dis">Test disclosure. Test disclosure. Test
disclosure. Test disclosure. Test disclosure. Test disclosure. Test
disclosure. Test disclosure. Test disclosure. Test disclosure. Test
disclosure. Test disclosure. Test disclosure. Test disclosure. Test
disclosure. Test disclosure. Test disclosure. Test disclosure. Test
disclosure. Test disclosure. Test disclosure. Test disclosure. Test
disclosure. Test disclosure. Test disclosure. Test disclosure. Test
disclosure. Test disclosure. Test disclosure. Test disclosure. Test
disclosure. Test disclosure. Test disclosure. Test disclosure. Test
disclosure. Test disclosure. Test disclosure. Test disclosure. Test
disclosure. Test disclosure. </div>
</body>
</html>

Any help would be much appreciated!

Thank you!

Reply via email to