Thanks fichtre.diantre and Toby for your help. I don't get any error
now but, the feature still doesn't work. Here is everything I'm doing
with respect to the table (all contained within "results.php"):
<HTML>
<HEAD>
<script type="text/javascript" src="../scripts/jquery-
ui-1.7.2.custom/js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="../scripts/jquery-
ui-1.7.2.custom/js/jquery-ui-1.7.2.custom.min.js"></script>
<script language="javascript" type="text/javascript">
function hideRepeats(){
var thisHtml = $(this).find('.noRepeat').html();
var prevHtml = $(this).parent().prev().find('.noRepeat').html();
if(thisHtml == prevHtml){ $(this).find('.noRepeat').html(''); }
}
</script>
</HEAD>
<BODY>
<TABLE ID='TestTable' BORDER='0' BGCOLOR='#55AAFF'>
<TR>
<TD><h4>Store</h4></TD>
<TD><h4>City</h4></TD>
<TD><h4>State</h4></TD>
<TD><h4>Zip Code</h4></TD>
</TR>
<?php
While ($row = mysql_fetch_assoc($result))
{
echo "<TR onMouseOver=\"this.bgColor='#FFFF00'\" onMouseOut=
\"this.bgColor='#55AAFF'\">";
echo "<TD><h1>";
echo $row["UserName"];
echo "</h1></TD>";
echo "<TD><h1>";
echo $row["City"];
echo "</h1></TD>";
echo "<TD><h1>";
echo $row["State"];
echo "</h1></TD>";
echo "<TD><h1>";
echo $row["ZipCode"];
echo "</h1></TD>";
echo "</TR>";
}
echo "</table>";
?>
<script language='javascript' type='text/javascript'>
$('#tableWrapper').load("results.php?vars=TestTable", hideRepeats());
</script>
</BODY>
</HTML>
I've also tried moving the hideRepeats function call inside the PHP
(as "echo" statements), but still no luck. I will keep trying other
things. Thanks again for all you help!
On Sep 8, 2:42 am, "fichtre.diantre" <[email protected]>
wrote:
> Hi,
>
> you missed the '$' before your expression :
>
> ('#tableWrapper').load(...
>
> =>
>
> $('#tableWrapper').load(...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---