seeing Ricks reply... it is better to go with his method ... Obviously 
sometimes it is not allways viable to go with non-inline handlers but it is 
best to go with them when you dont need to get anymore information from an 
element that its ID or perhaps its next sibling etc etc

also in PHP i would recommend using single quotes for echoing to reduce the 
load on the php ... (as Rick suggested!!)

----- Original Message ----- 
From: "Alex McAuley" <webmas...@thecarmarketplace.com>
To: <prototype-scriptaculous@googlegroups.com>
Sent: Thursday, June 04, 2009 7:38 AM
Subject: [Proto-Scripty] Re: Working outside loop, but not inside


>
> you have at least one syntax error here
> <div id='blinddown".$count."'style='display:none; width:175px;
> height:
> 100px; background:#FFF;'>Random Text that doesn't matter</div></td></
> tr>";
> .... There is no space between id='' and style=''..... put a space in and
> try it again!
>
>
> ----- Original Message ----- 
> From: "craig" <bagley.cr...@gmail.com>
> To: "Prototype & script.aculo.us" 
> <prototype-scriptaculous@googlegroups.com>
> Sent: Thursday, June 04, 2009 12:13 AM
> Subject: [Proto-Scripty] Re: Working outside loop, but not inside
>
>
>>
>> That's right, yes.  I tried that at one point:
>>
>> $count=$count+2;
>>  while ($count<=$num_teams)
>>    {
>>      echo "<tr><td>Player ".$count . "</td><td class='players'><div
>> onclick='Effect.toggle('blinddown".$count."', 'slide'); return
>> false;'><span class='red'>{click to reserve a player spot}</span></
>> div>
>>        <div id='blinddown".$count."'style='display:none; width:175px;
>> height:
>> 100px; background:#FFF;'>Random Text that doesn't matter</div></td></
>> tr>";
>>      $count++;
>>    }
>>
>> However, it still wasn't working, so I decided to mess around with it
>> and just hard-code 1 in there.  In my previous experience it will
>> toggle the first occurrence of the div id, so I was just trying to
>> avoid potential syntax errors until I figured it out...but I still
>> have not
>> >
>>
>
>
> >
> 


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