toggle

How can I toggle the main menu visibility using the Alt key in WPF?

I'd like the main menu in my WPF app to behave like the main menu in IE8: it's not visible when the app starts pressing and releasing Alt makes it visible pressing and releasing Alt again makes it invisible again repeat until bored How can I do this? Does it have to be code? Added in response to answers submitted, because I'm stil...

slideToggle flickering in Firefox

Hello guys, I'm slidetoggling two divs in my page : the first one is in the top of the page and it works OK in both directions. But the second, located at the end of the page after some scrolling, suffers a flickering effect (in the divs around it) in Firefox when is clicked to be closed again. Here's a demo : http://paragraphe.org/sl...

JQuery closest() help

So I have several containers with this markup on a page: <div class="box w400"> <div class="box-header"> <span class="expand-collapse">expand/collapse</span> <h3>Heading</h3> </div> <div class="box-content"> <p>Some content here...</p> ...

Showing and hiding a menu on button click, and hiding it with outside clicks

I have the following code that just has controls relating to an item. <ul class="controls"> <li><button type="button" class="button1" value="somevalue">&nbsp;</button></li> <li><button type="button" class="optionsbutton" value="somevalue">&nbsp;</button></li> <li class="options"> <ul> <li>Option 1 link</l...

Attach (show/hide text) dynamically and when clicked show/hide a fieldset below

Hi All, I want to attach (show/hide text) dynamically to a span and when clicked on that particular text, i want to have show/hide effect on a fieldset below. I acheived the task of having show/hide text appended to span. But the problem arises when i click on that text. Nothing happens except the text beside span gets changed. HTML: ...

jQuery translate + toggle, how to link the two?

I'm currently working on a jQuery script that will translate the site's text into a foreign language . I'm utilizing Google Translate API for this. I would like the page to include a link that says En Espanol and when the user clicks on En Espanol, the body of the page gets translated into Spanish with the exception of that link which sa...

How do I reference the Toggle Button Circle and override vertical alignment of the Aero theme Expander?

Currently, I am referencing the Aero theme in my App.xml file. In the main.xml file, I am using expanders to display the content in a resizable width app. (For this example, I limited the width to 500) The expander header content generally will be short, but it allows for up to 500 chars. Depending on the window size (600 pixels by defa...

Toggling a blog post loop excerpts with jQuery

I'd like to reveal only post titles on my blog posts loop, and when the title is clicked -- the excerpt will appear below. So far I got this: $("#postTitle").click(function () { $("#postExcerpt").toggle(); Which works one the first result only. This, however: $("#postTitle").click(function () { $("#postExcerpt").next().toggle(); ...

Jquery Slider and Toggle

I have a slide show located at staging.asla.org/sustainablesites/secondary.html that uses the easySlider plug-in plus also uses the jQuery Toggle function. Currently when you navigate through the slide show the description stays either shown or hidden. I would like for the navigation of the slide show to control the toggle function in ...

Jquery toggle function breaks on pages that include mootools or slimbox script.

My friend is asked me to look over her site where there is an error on pages that use slimbox-- an unrelated Jquery toggle function breaks— here's the code: $(function() { $(".cat_nav dd").hide(); $(".cat_nav dt").click(function() { $(this).next().toggle(); return false; }); }); This code works fine when slimbox ...

Disable/Enable buttons. Flash AS2

Flash CS4, AS2 I am making a Flash tour. I have 3 sections: About, Rentals, Neighborhood. All the sections are within MCs on the same Frame. I am using conditonal statements on the Nav buttons to turn the visibility on/off in order to navigate the tour. However, now when the same button is pressed, the MC toggles on/off. I want to dis...

jQuery .toggle() works in FF but not IE

I have a simple vertical menu and I'm using the .toggle() function to expand/collapse the submenu. It works in FF and Safari, but not in IE. (none of the IE's) I also have a very simple "slideshow" function also using jquery, and it seems to be working in all browsers. Website is live: http://www.fastpartsauto.com Code: <script type=...

Changing the name of the element after toggling

I have done a hide and show of a div element, on clicking a element with class toggleIt by using the toggle() function. But how to change the name of the p tag after clicking it? For eg, I have the name as 'Hide' for the p tag. On clicking this I hide a div. Now, I also want the name to change to 'Show'. How do I do that? <p class="to...

C# - Toggle hidden files system wide?

What would be the best way to be able to toggle hidden folder and files system wide? I would prefer to do it in C#. I know I would use the global keyboard hook but I am not sure how I would toggle folders/files to be hidden and then visible when the shortcut key is pressed. Any help is appreciated. Thanks. ...

how to prevent click queue build up, using toggle in jquery? tried using bind/unbind('click')

i want to disable the click handler when the toggle animation is showing so the animation won't build up because of multiple fast click. thanks jquery script: $("#button").click({ $(this).unbind('click').next().toggle("slow",function(){$('#button').bind('click')}); }); html code <div <a href='#' id='button'>Toggle</a> <div...

Click Toggle with jQuery

I've used hover function where you do x on mouseover and y and mouseout, so I'm trying the same for click but it doesn't seem to work: $('.offer').click(function(){ $(this).find(':checkbox').attr('checked', true ); },function(){ $(this).find(':checkbox').attr('checked', false ); }); I want the checkbox to be checked when clicke...

Stopping a jquery function from acting multiple times

I have a toggle fade effect but when you click the button multiple times it fades in and out more than once. (So if i click the fade id 20 times fast it will fade in and out multiple times) How would I stop this and make it so that you can only toggle the fade when the animation was done? I tried getting the current value and making a if...

Toggle divs for open/close with Derek Perez PageSlide

Hi, I'm trying to use Derek Perez PageSlide Plugin for jQuery in a Wordpress site. Default beahaviour is a link to open it, and click anywhere else on the page to close it. I would like to toggle images saying "open" when it's closed and "close" when it's open. So I have played around with jquery toggle() and enclosing the links in div...

Simple Toggle with Mootools: What am I doing wrong?

<script type="text/javascript"> $(document).ready(function(){ $("#trigger").click(function () { $("#trigger-banner").toggle(); }); </script> Help? Thanks! ...

Textmate toggle collapse/expand CSS rule command?

Does anyone know of a command (not a macro) for Textmate / E Text Editor / Redcar / etc. that will collapse a multi-line CSS rule down to one line OR, if the rule is already on one line, expand it out to multi-line? I already know about code folding and that's not what I require - I need to be able to toggle the rules between single and ...