Displaying 5 results from an estimated 5 matches for "toggle_blind".
2008 Aug 24
11
link_to_function check javascript attribute
How could I check the value of an javascript object''s attribute?
<div id="new_item_details" style="display:none"></div>
<%= link_to_function("Show details...", nil, :id => "show_details") do
|page|
page.visual_effect(:toggle_blind, :new_item_details)
if (page[:new_item_details].style.visibility == "none")
<----------------------------------------?????
page[:show_details].replace_html "Hide details"
else
page[:show_details].replace_html "Show details&quo...
2006 Apr 07
5
RJS support "toggle" effect?
Does RJS inherently support the Element.toggle effect? I haven''t been
able to call it the way you call "appear", "fade", etc...
Jeff
--
Posted via http://www.ruby-forum.com/.
2007 May 11
2
Ajax, buttons, and firefox
I created a button_to_remote function that I use to call :toggle_blind
visual_effect :toggle_blind, ''div_id''
It works great on Safari, Opera, IE, but in firefox the button does
nothing. Is there a problem with firefox. I can''t seem to find much
online about this issue.
--
Amos King
Ramped Media
USPS
Programmer/Analyst
St. Louis, MO
Loo...
2006 Jun 26
1
RJS visual_effect toggle?
Is there a way to toggle an effect in an RJS? If not, anyone have
recommendations for how to manually make it toggle? I guess I would
assume some boolean that the rjs checks everytime it''s called and
depending on whether it''s true or false it will do page.visual_effect
:appear or page.visual_effect :hide
-Ben Lisbakken
--
Posted via http://www.ruby-forum.com/.
2009 Aug 06
13
Redirect after login
Hi,
I''m new to Ruby/RoR so please bare with me!
I''m trying to adapt a ruby setup where someone logs in to a bonjour
service via a web browser. I have the login screen which asks for host
and password. There is only one user per host and i can log in fine.
It''s suppose to redirect me to /list in my browser but
doesn''t. Once i''ve entered the correct