search for: toggle

Displaying 20 results from an estimated 1292 matches for "toggle".

2009 Aug 11
5
Hiding views before using toggle
Hi, I want to hide some of my html in my view before toggling. In my css I tried setting the display:none; but then when I would run my toggle function it wouldn''t toggle. Is there an easy solution out there besides having to render javascript everytime to hide this html before toggling it? -- Posted via http://www.ruby-forum.com/.
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 MATT...
2006 May 25
7
Hide content before page load
...JavaScript is enabled. It works pretty well and fires before onload to avoid the flash of visible content. Now i''m wondering if there is a Prototype way of doing this. [1] http://www.bobbyvandersluis.com/articles/dynamicCSS.php My main problem is that Prototype functions like Element.toggle() do not work on elements that were used together with the dynamically created styles. Best Regards, Dirk Eschler -- Dirk Eschler <mailto:dirk.eschler-hi6Y0CQ0nG0@public.gmane.org> http://www.krusader.org
2006 Aug 14
2
Change Button Text - Ajax
Hi, I have the following code <%= button_to_function "Hide", "Element.toggle(''mytext'');"%> which does toggle the invisiblity of the text just fine, But want I want via ajax magic, is to also toggle the button text, so it will now display "Show" when I have toggled the invisiblity of the Div. Thanks for any help. John -- Posted via...
2006 May 30
0
problem with effect toggle - please help
Hello, I''m having the following code below - when I click on the button in order to toggle a div, it is working when the div is visible - after it is toggled once, the beforeStart stuff isn''t executed anymore! interestingly, when I change this Effect.toggle(this.bContentWrap, ''blind'', { to this: Effect.toggle(this.bContentWrap, ''slide'',...
2006 Sep 19
0
Effect.Highlight interferes with Effect.toggle
...imilar effect, and then mouse over an element starting an Effect.Highlight, the highlight cancels the SlideUp. Or, if the Effect.Highlight is in the middle of its fade out then clicking the button to trigger the SlideUp/Down has no effect. Any idea how to fix this problem so that a click of the toggle button will always trigger a non-interruptable SlideUp/Down? Thanks, Colin Code: $A($(''container'').getElementsByTagName(''fieldset'')).each(function(el){ new ToggleButton(el.getElementsByTagName(''div'')[0],{ handle:el.fir...
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 mak...
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 pro...
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''...
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 workin...
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 only one <div> is present at one time, and clicking o...
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 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 t...
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...
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...
2006 Jul 18
2
Turn element hidden by default (ajax question)
(this is my first post on the ruby forum. If this is not the right place for this type of question please let me know). Ajax question I have a checkbox that toggles the visibility of another element (a text field) with the code: --- <p><label for="checkbox">Appear!</label> <%= check_box :object_name, :method, :onClick => "Element.toggle(''text_field_to_toggle'')" %> <%= text_field :object_na...
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.visibl...
2012 Sep 19
2
Unable to disable beeper on Powercom Imperial IMP-525AP
Hi ALL, Powercom Imperial IMP-525AP seems to be fully compatible with NUT. Unfortunately, I can not disable beeper. upscmd -u {NUT_USER} -p {NUT_PASSWORD} powercom beeper.toggle returns *OK*, however, ups.beeper.status=enabled Thank you, Sergey ========== Additional info: 1) $ upsc powercom battery.charge: 100 battery.charge.low: 10 battery.charge.warning: 30 battery.date: 2010/01/01 battery.runtime: 2432 battery.type: PbAc device.mfr: POWERCOM Co.,LTD device.model: UP...
2010 Mar 26
2
dnd not working correctly
...from-internal:5] Set("SIP/117-000001f6", "DB(DND/117)=YES") in new stack -- Executing [*76 at from-internal:6] Set("SIP/117-000001f6", "STATE=BUSY") in new stack -- Executing [*76 at from-internal:7] Gosub("SIP/117-000001f6", "app-dnd-toggle,sstate,1") in new stack -- Executing [sstate at app-dnd-toggle:1] Set("SIP/117-000001f6", "DEVICE_STATE(Custom:DND117)=BUSY") in new stack -- Executing [sstate at app-dnd-toggle:2] Set("SIP/117-000001f6", "DEVICES=117") in new stack -- Exe...