You have an id hardcoded to the div inside the loop - ids have to be
unique on the page - I'm assuming you mean to append $count to the id
instead of hardcoding the digit 1

Tom

On Jun 3, 3:37 pm, craig <bagley.cr...@gmail.com> wrote:
> Hey,
>
> I've got some php that's pulling entries from a table, and displaying
> entries as well as giving a toggle effect to some.  I put in some
> static html to confirm that the effect is working inside the file, but
> inside the php code the effect doesn't work... here's a snippet:
> while ($count<=$num_teams)
>     {
>       echo "<tr><td>Player ".$count . "</td><td class='players'><div
> onclick='Effect.toggle('blinddown1', 'slide'); return false;'><span
> class='red'>{click to reserve a player spot}</span></div>
>         <div id='blinddown1'style='display:none; width:175px; height:100px;
> background:#FFF;'>Random Text that doesn't matter</div></td></tr>";
>       $count++;
>     }
>
> Does anyone see something that I'm missing?  I'm assuming its some
> stupid little mistake, but I've messed with it for like 3 hours with
> no progress.
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to