Eskil Kvalnes wrote:
[snip]
> <table>
>  <tr>
>   <td>headline</td><td>summary</td>
>  </tr>
> 
>  <tr>
>   <td><a onclick="new
> Effect.SlideDown(document.getElementById('info-container'))">problems</a></td><td>having
> problems with script.aculo.us <http://script.aculo.us></td>
>  </tr>

You can just make that
  Effect.SlideDown('info-container');

> this is where I'm facing difficulties. I want another table row to
> appear "onclick", like this:
> 
>  <tr id="info-container">
>   <td colspan="2">full story here <a onclick="new
> Effect.SlideUp(document.getElementById('info-container'))">hide me</a></td>
>  </tr>
> </table>
> 
> but I don't want it to be visible at all except for when the user
> actually clicks "problems". I've tried various solutions, but to no avail.
> Perhaps a pair of fresh eyes could shed some light on the situation?

Just add a style="display:none" attribute to it.

-- 
Michael Peters
Developer
Plus Three, LP

_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to