On 7/10/06, Michael Peters <[EMAIL PROTECTED]> wrote:


Eskil Kvalnes wrote:
[snip]
> <table>
>  <tr>
>   <td>headline</td><td>summary</td>
>  </tr>
>
>  <tr>
>   <td><a
> 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');

Oh, nice tip. Thanks.

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

Of course! However, this presented a new problem. Still using SlideDown/Up, but it doesn't "slide"
at all. On SlideDown it just appears instantly and on SlideUp is takes 0.5s/1s before it disappears.
No sliding/fading/movement whatsoever. Seems strange to me... I had the desired effect when using
<div id="info-container"><div>text</div></div>

--
Michael Peters
Developer
Plus Three, LP

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



--

Mvh,
Eskil Kvalnes
[EMAIL PROTECTED]
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to