Forum: Ruby on Rails Ajax Effect problem

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
334ae822566107a2ea2b7a7cb88bd1d6?d=identicon&s=25 brutyn_nick (Guest)
on 2005-11-29 17:18
(Received via mailing list)
hey,

i want to have an effect on my search that the user can fold it open and
close
it again


<a href="#" class="show_link" onClick="show_search_area();"
id="search_area_open_url" >Open</a>
<a href="#" class="noshow_link" onClick="hide_search_area();"
id="search_area_close_url" >Close</a>

.show_link {
	visibility: visible;
}
.noshow_link {
	visibility: hidden;
	display: none;
}

function show_search_area() {
	changeSty('search_area_table','show_link');
	changeSty('search_area_open_url','noshow_link');
	new Effect.SlideDown('search_area_table');
	changeSty('search_area_table','show_link');
	changeSty('search_area_close_url','show_link');
}

function hide_search_area() {
	changeSty('search_area_close_url','noshow_link');
	new Effect.SlideUp('search_area_table');
	changeSty('search_area_open_url','show_link');
}

in firefox it works perfect, but in IE i get an error:
this action is not supported by this object.

any can help me?
Fb7969e2a8d52a98728e834668f91738?d=identicon&s=25 tobias.witek (Guest)
on 2005-11-29 17:34
(Received via mailing list)
> function show_search_area() {
> 	changeSty('search_area_table','show_link');
> 	changeSty('search_area_open_url','noshow_link');
> 	new Effect.SlideDown('search_area_table');
> 	changeSty('search_area_table','show_link');
> 	changeSty('search_area_close_url','show_link');
> }

according to script.aculo.us docs, the area has to be in 2
cascaded-block elements... is this the case for you? (e.g. <div
id="slide_me"><div>content</div></div>)

which kind of element is your "search_area_table"? (if i assume that it
is a table: maybe ie doesn't treat it as an ordinary block element, is
that possible, anyone?)

regards,

t
This topic is locked and can not be replied to.