similar to: Hiding views before using toggle

Displaying 20 results from an estimated 8000 matches similar to: "Hiding views before using toggle"

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/.
2009 Jul 24
5
padawan seeks advice from jedi masters to create toggle box via ajax/rjs before slitting wrists with ruby powered light-saber.
I AM TRYING TO MAKE A DAMN TOGGLE BOX, BUT USING MY OWN GRAPHIC AND HAVING THE MOUSECLICK TRIGGER BOTH SWITCHING THE GRAPHIC (via AJAX) AND SAVING THE STATE IN THE DATABASE. I GOT IT ALL WORKING WITH NORMAL HTML GET CALLS TO THE SERVER, BUT I NEED IT TO BE AJAXIFIED SO THAT THE PAGE DOESN''T RELOAD. AND TO COMPLICATE MATTERS, IT HAS TO WORK IN A TABLE WITH AN ARBITRARY NUMBER OF ENTRIES,
2006 Apr 05
7
Conditional toggle button
I have a link_to_remote that updates the content of a hidden div and makes it appear.. But I want it to hide the div and not execute the link_to_remote function on the second click. What''s the best way to do this? I''m thinking I can do it in RJS maybe, but I''m not sure if there''s a nice Rails-y way to tell if a div is hidden or not.. I''d also
2006 Dec 26
1
One content at a time - Effect.toggle
Hi everyone, I am creating a web page which has many links to hidden <div> content, which on clicking reveals the <div> through "Effect.toggle Blind". When i click one link the corresponding <div> blinds down, but when i click some other link the first <div> still persists and won''t blind up. Can anyone please tell me how should i get to work such that
2006 Mar 18
3
Weird stylesheet_link_tag issue after moving servers
Dear experts, I am in the process of switching servers for my application. Before the move everything was working properly. After the move <%= stylesheet_link_tag ''/stylesheets/styles.css'' %> generates <link href="//stylesheets/styles.css" media="screen" rel="Stylesheet" type="text/css" />
2009 Feb 26
7
javascript using jQuery.js and prototype.js doesnt work 2get
Hi........ M hving javascript "scripts.js" which uses jQuery.js in rails application. bt when it is used along with prototype.js, one of the javascripts which hs been included first in my application.rhtml fails... Do some1 hv any solution how to make both the scripts work 2gether... I tried using <script> jQuery.noConflict(); </script> bt of no use. problem
2008 Mar 25
4
Prototype: toggle() not supported on TD in IE?
The following line causes trouble both with IE 6&7: cels[i].toggle(); It tells me that this element does not support the property or method. The element is a cell (TD) which I checked by outputting the tagName and it works with FF, Opera and Safari. The IE script debugger stops at this line but I didn''t find a single posting on the net with a similar problem which is kind of strange.
2006 Apr 26
8
Newbie: Hide div I''ve just show using link_to_remote?
I''m using link_to_remote to show details for an item that''s clicked. I''d like to hide the div with the next click, or alternatively have a "Hide" link within my div. What is the best way to accomplish this? Here''s my existing code: <% for task in @mytasks %> <div class="rowFormat"> <%= link_to_remote(
2006 May 03
4
Simple Toggle Question
I''m having trouble with the toggle() function from prototype. Basically I want the element hidden by default, and I can''t seem to do it. My code: The CSS: #furtherinfo { dislplay: none; } The View: <%= link_to_function(''Further Information'', "Element.toggle(''furtherinfo'')") %> <div id="furtherinfo">
2005 Jun 24
1
Blind Toggle "effect"
I wrote a simple toggle function similar to Element.toggle that will toggle a section between being up and down using the Blind effect. I''m relatively new to the code, so I''m not sure if it''s implemented 100% correctly or if it can be done better. I am using it though and it seems to be working fine. Anyway, here''s the code and if you think it''s
2006 Mar 28
2
JS Toggle graphics on action / click
I''ve got a simple toggle option (On/Off) in my admin GUI list action. I would like to click on this graphic and change the status of the option. I got the whole thing working in the controller & db through this beautiful one-liner @item = Item.find(params[:id]).toggle!(''display_status'') The thing I can''t achieve - even after several hours of labouring
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/.
2006 Apr 07
4
Effect.toggle error in 1.6.1
I have this line of code: new Effect.toggle(document.getElementsByClassName(''modarea'', Event.findElement(ev,''li'')), ''blind''); I''ve confirmed that the Effect.toggle is indeed getting the proper element, however, I''m getting this in my javascript console: element.visible is not a function (effects.js: line 153) I
2009 Nov 29
3
Views/index to views/show loses javascript functionality
I am testing a local copy of my website using Mongrel trying to introduce a scriptaculous multi-level drop down menu. the menu is a partial that is loaded into every layout I have many pages with their individual layout file. When I jump from page to page(index to index) all works OK. When I jump from any "view/index" to "view/show" I lose the javascript and the drop down menu
2006 Jun 06
2
Toggle css for display on page load?
In my layout I have a navigation bar with a few elements in it. The elements can be toggled on or off and thereby reveal or conceal some subtopics. I store the state of the toggle for the navigation elements in the session. When the page is reloaded, the navigation items are collapsed because the css for display: none is set by default in the html for the navigation elements. Is there a
2004 May 12
3
Cisco 7960 SIP - DND soft key toggle?
Running the latest * CVS and Cisco 7960G and 7940G phones with SIP 6.3 image. I have figured out how to turn on the DND feature through the Settings>Call Preferences>Do Not Disturb - Yes then Save. This puts the phone into DND On and shows a DND image above the far right soft key which you use to turn off DND. There should be a better way. An on/off toggle of the soft key that it
2014 Nov 27
3
day night service toggle
Hi, I need dialplan to set INCOMING call forwarding during lunch break to my secretary. I want that I can set call forwarding by dialing an extension number to turn it ON or OFF. I am using asterisk 11. Thanks Abdullah Faheem -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Aug 14
4
Updating a table with Ajax
I''ve been banging my head against the wall trying to update a table (add/delete rows) using Ajax. It seems simple enough but just doesn''t work for me. I can get it to work using DIVs instead of a table, but doing the layout with DIVs is much more cumbersome and I know it works for others with a table (though I haven''t been able to find an exact example code anywhere).
2006 Sep 14
10
scriptaculous Toggle Appear rate
I have the following code to toggle a basic appear of a div: <a href="#" onclick="Effect.toggle(''d3'',''appear''); return false;">Toggle appear</a> I want to edit the rate in which the effect runs. I can''t for the life of me figure it out. I would like to make the effect complete faster, like .5 seconds. I''ve
2007 Feb 13
1
Passing Arrays in recursive functions.
ok, I''m still new to ruby and new to rails. what I have is a task database that acts_as_tree a task can have a children an those children are full tasks so they can have children of their own, Tasks can only be completed if they have no children, a task with children is only completed if all its children are done. this much I have working, I''m trying to add some Ajax support for