Thanks again Toby!

I have added the following in the html "head" section of the results
page (called "results.php"):

<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>

And in the "results.php" page where I create my table (using a While
loop to fetch rows from a MySQL database), I have placed the following
code after my PHP code:

<script language='javascript' type='text/javascript'>
('#tableWrapper').load("results.php?vars=UserName", hideRepeats());
</script>

Firebug is saying that "#tableWrapper".load is not a function. I know
I'm doing something stupid. The variable "UserName" is the name of the
column where I want to apply the "hideRepeats" function. Sorry to keep
bugging you. Thanks.

On Sep 7, 6:06 am, Toby <[email protected]> wrote:
> Yes it should be no problem to apply this to a dynamic table to all...
>
> As soon as you load the table you need to call the script to apply the
> hiderepeat cell values..
>
> make a function of what i wrote earlier:
>
> function hideRepeats(){ ... }
>
> and then create a php script or something similar to generate the
> table..
>
> ('#tableWrapper').load("thescript.php?vars=youchoose", hideRepeats());
>
> that should work like a charm..
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to