How can i disable a link/button after clicked while content active

hello all
i am building a website all on one page and am using the
spry framework so that it displays when clicked fades in
the issue is i dont want the link to work again after its been
clicked ie when the link is active then
when another link is clicked it is re activated and
can be used again!?
i am using the behaviours panel in dreamweaver?
cant seem to find an option to
toggle this function
i am not great at js or html
but any help would be appreciated!
many thanks
]p

Because we are not privy to your code I shall answer this in general.
You can use the Spry Element Selector to target your link and to disable that link. When clicking another link you could cycle through your links and enable them before disabling the newly clicked link.
More info on the Spry Element Selector can be found here http://labs.adobe.com/technologies/spry/articles/element_selector/index.html and here http://labs.adobe.com/technologies/spry/articles/element_selector/selector_examples.html

Similar Messages

  • How can i disable a submit button and execute submit_action method on click

    Good Day,
    On my page I have a submit button that execute the submit_action method of the page backing bean that submit data captured on the page into a database and activate another class that send mail at the same time on a click of the submit button,the mail process takes a while before returning back to the page.I was able to disable the submit button to prevent the user from keep click while the process is running but the issue is on clicking the submit button it only disable the submit button without executing the submit_action method of the page backing bean.How can i disable the submit button and execute submit_method of the backing bean at the same time.
    Thanks in advance.

    I tried this out on one of my pages to see if it works.
    First, I added the following JavaScript to my submit button's onClick event:
    this.disabled=true; return true;When I clicked the submit button, it was disabled but the form was not submitted.
    I deleted the JavaScript from the onClick event and added the following JavaScript to the form's onSubmit event:
    var button = document.getElementById("form1:submitButton"); button.disabled=true; return true;When I click the submit button, it was disabled and the form was submitted but the button's action method was not called.
    The next thing I tried was to change the onSubmit event code:
    var button = document.getElementById("form1:submitButton"); setTimeout("button.disabled=true", 500); return true;This seemed to work. The difference was that I added a 1/2 second delay before disabling the button.
    See if that works for you. If not then I'm fresh out of ideas.

  • How can I disable the Voicemail button on an iPhone 4

    How can I disable the Voicemail button on an iPhone 4 or
    if that is not possible can i programme it to dial my own phone rather than my carrier's Voicemail box?

    No, it's not possible to disable that button and no, it's not possible to reprogram it to anything else.

  • How can we disable/Hide the buttons at items tab in header level Gen tab?

    Hi,
    How can i disable/Hide the buttons(Delete,insert...) in item details of general tab of Order Header?
    I am not able to do it with screen varients.
    Please let me know your views.
    Points will be given.
    Thanks,
    Adi.

    Hi,
    How can i disable/Hide the buttons(Delete,insert...) in item details of general tab of Order Header?
    I am not able to do it with screen varients.
    Please let me know your views.
    Points will be given.
    Thanks,
    Adi.

  • Can I disable the LINK button at the top of the toolbar.

    I don't know how many times I've accidentally clicked the link button when I went to select the pointer tool and been taken away from indesign and into my browser. Frustrating and adding up to lots of loss of productivity.
    Is there a way this button can be disabled? The wide button above the select and direct select tools at the very top of the tools palette that when clicked links to: http://www.adobe.com/products/indesign/ --- anyway to disable this?
    Thanks

    >I don't know how many times I've accidentally clicked the link button when I went to select the pointer tool.
    I would suggest use a more accurate curser moving device than you have now. I use a Wacom and have never accidently hit the link.

  • How can I retain my counter button after editing page?

    How can I retain the numberon my counter button after I have change information on my welcome page?

    Since MobileMe will be discontinued on June 12, 2012, and with it the following features:
    Features Unavailable When Publishing to a Non-Mac Server:
    ◼ Password protection
    ◼ Blog and photo comments
    ◼ Blog search
    ◼ Hit counter
    ◼ RSS Feed Widget
    you might get ahead of the curve and use a 3rd party counter.  There are many counters that will give you much more than just the number of visitors and can be setup to not count your visits. I use  StatCounter which gives the following info on visitors:
    Click to view full size
    This tutorial describes how to add the counter using an HTML snippet: #13 - Adding a StatCounter as an HTML Snippet. 
    OT

  • How can I disable the previous button in the first page and the next button in the last page?

    Hi all,
    I have created a new skin for a webhelp by modifying the layout and the buttons. However, I am not able to find a way where in we can
    disable the previous button ini the first page of the webhelp and hte the next page in the last page of the webhelp. If both the next and previous button is visibile in the first and last page, it is sort of misguiding the user.
    I am using Robohelp 9.
    Please advice.
    Thanks,
    Parag

    I think you are mixing Previous and Next in a browse sequence and the Previous and Next that you get in the browser itself.
    In a browse sequence, they are automatically disabled at the start and finish. When in the first topic in the sequence only Next will be enabled, when in the last topic only previous will be enabled.
    Previous and Next in the browser are working on the topics your user has viewed which is not the same thing.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How can I disable display/Change Button on transaction code VL03N

    Dear Guru,
      I found problem about transaction code vl03n because I define authorize for a user that can only display delivery document by transaction code VL03N. But this transaction have display/change button that when user click this button they can change delivery document. Please help me how can I solve this problem?
    Best regard,
    wipaporn

    Wipaporn,
    This should be done authorizations only. Although the button is displayed, is the user able to change and save the Delivery document?
    Regards,
    Ravi

  • How can I disable the "Pause" button to not show up when I am in a phone call?

    I want to disable the pause button as it got pressed every time my cheek touches the screen while in a phone call.
    Any tip will be very much appreciated!
    Martin

    http://www.applevis.com/guides/voiceover-keyboard-shortcuts-mac-os-x
    You should be able to copy them from there.

  • Touch Events: How can I check for a button being pressed while another button is being held down?

    Hello,
    I'm trying to check for a button being pressed while another is down through Touch.  In my case, I' m making a game and I need for a button to make the character jump.  However, when I hold down right, I notice that the jump button becomes somewhat unresponsive and I have to press it twice or more to get it to trigger, as opposed to just pressing the jump button by itself with nothing held down which works fine.  I'm testing this on my Motorola Droid 2.
    Here is some of my code that demonstrates text instead of my character moving around:
    package  {
         import flash.events.TouchEvent;
         import flash.ui.Multitouch;
         import flash.ui.MultitouchInputMode;
         public class Document extends MovieClip {
               Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
               private var controls:BottomBar;
               private var debugText:String;
               public function Document() {
                    addIngameGUI();
               private function addIngameGUI(){
                    controls = new BottomBar();
                    controls.y = stage.stageHeight - controls.height;
                    addChild(controls);
                    controls.aBtn.addEventListener(TouchEvent.TOUCH_BEGIN, testBtns);
                    controls.bBtn.addEventListener(TouchEvent.TOUCH_BEGIN, testBtns);
                    controls.leftArrow.addEventListener(TouchEvent.TOUCH_BEGIN, testBtns);
                    controls.rightArrow.addEventListener(TouchEvent.TOUCH_BEGIN, testBtns);
             private function testBtns(event:TouchEvent){
                   debugText.text = event.target.name;
    What am I doing wrong?  Is there a better approach?
    Thank you in advance.

    Hello,
    I'm trying to check for a button being pressed while another is down through Touch.  In my case, I' m making a game and I need for a button to make the character jump.  However, when I hold down right, I notice that the jump button becomes somewhat unresponsive and I have to press it twice or more to get it to trigger, as opposed to just pressing the jump button by itself with nothing held down which works fine.  I'm testing this on my Motorola Droid 2.
    Here is some of my code that demonstrates text instead of my character moving around:
    package  {
         import flash.events.TouchEvent;
         import flash.ui.Multitouch;
         import flash.ui.MultitouchInputMode;
         public class Document extends MovieClip {
               Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
               private var controls:BottomBar;
               private var debugText:String;
               public function Document() {
                    addIngameGUI();
               private function addIngameGUI(){
                    controls = new BottomBar();
                    controls.y = stage.stageHeight - controls.height;
                    addChild(controls);
                    controls.aBtn.addEventListener(TouchEvent.TOUCH_BEGIN, testBtns);
                    controls.bBtn.addEventListener(TouchEvent.TOUCH_BEGIN, testBtns);
                    controls.leftArrow.addEventListener(TouchEvent.TOUCH_BEGIN, testBtns);
                    controls.rightArrow.addEventListener(TouchEvent.TOUCH_BEGIN, testBtns);
             private function testBtns(event:TouchEvent){
                   debugText.text = event.target.name;
    What am I doing wrong?  Is there a better approach?
    Thank you in advance.

  • How can I disable the mouse button 4 and 5 "forward" and "back" functions through firefox?

    I've seen this problem come up on forums before but was unable to find a good solution.
    When using Ventrilo, I have my speak button bound to the mouse button 4 of my logitech mouse. This button is conveniently placed for gaming because it makes use of my otherwise unused right thumb, and I have been using it for years and probably couldn't adjust if i tried to change it.
    Firefox uses mouse button 4 for the "back" function, meaning that if i'm on ventrilo while browsing the web with firefox, i have to remember to move the cursor to the menu bar at the bottom of my screen or go back a page. it's infuriating if i forgot, especially if i'm playing some sort of browser game at the time, as i basically have to restart whatever i'm doing.
    The only solutions i've found for this involve binding mouse button 4 to some other (rarely used) key, which is an annoying solution at best, or changing some vital computer files, which I dont have the expertise to do myself and dont trust anyone else to do for me. It's an absolutely unacceptable solution anyway: why should i have to change my computer's files to disable a function which should be editable through firefox?
    does anyone know how this can be fixed? or know how we can get mozilla to put this feature into some future patch, as other people have been asking them to do for YEARS?

    This can be a highly frustrating problem. I just spent 45 minutes working on an email. Nearing the end I go to grab my mouse after typing and accidentally hit mouse 4 and lose everything. This isn't the first time I have lost work or an email. I would say the ONLY reason why there currently lacks a strong feedback against this is because the majority of people do not have mouse 4+5 buttons on their mice. Please add the option to just disable this "feature". It's just far to easy to accidentally hit these buttons accidentally and potentially lose a lot. I don't know anyone who actually uses these buttons anyways.

  • How can i disable checkbox/radio button/popup/butt...

    In Xhtml, to disable a form element we use disabled="disabled". but how to disable form elements in mobile?.

    It actually does work. What you have to do is drag another icon down to the bottom left where the radio is defaulted. It will automatically kick up one of the other icons that is highlighted. For example, I dragged the Songs icon down and the Genius icon popped up to the top. Then I dragged the genius back down to the second spot and the Radio one goes to the right until it pops up. You just have to do it four times.
    It's kind of a pain, but it does work. Give it a try. This is what it ends up looking like.

  • How can I disable the link preview pop-up in Firefox 4? (Without installing the old status bar add-on?)

    Thanks in advance.

    There is an addon that solves this problem. It restores the "original" status bar like on 3.6 and the pop-up is GONE!!
    Go to get addons, in the searchbox type without quotes "status-4-evar".

  • How can i disable "browser-auto-load" for different iframe-contents in a composite widget?

    Hey there,
    i´ve got a lil topic going on with a Website (One-Site-Layout with anchors), created with muse
    i putted 20 iframes (each one routed to its own trigger) in a composite widget. Everything is working perfect for me and the users, but :
    The deliverer of the iframe-contents (pretty big picture galeries) told me, his server crashes, because every single time, someome enter the Website, the browser i loading every single iframe-content in this widget automatically > so the traffic is way to large, and i need a solution that simply load every single content after a click on the right trigger, not before.
    thank you so much!
    Werner
    Gonna let you see the the "trouble-area" http://werner-ag.com/#produkte

    That is not possible.
    You can look at this extension:
    *https://addons.mozilla.org/firefox/addon/toggle-mixed-active-content/
    *https://developer.mozilla.org/Security/MixedContent

  • How can I disable a button ?

    Hi!
    How can I disable the a button ?
    There is a if statement. If it returns a false the button must be disabled.
    Regards
    sas
    Edited by: erdem sas on Jan 15, 2008 3:06 PM
    Edited by: erdem sas on Jan 15, 2008 3:16 PM

    Do it thru its action:
    //Deactivate a button disabling its action
    //You can see it but clicking it does nothing
    wdGetACTION_NAMEAction().setEnabled(false);
    //Get it's funcionality back
    wdGetACTION_NAMEAction().setEnabled(true);
    Or you could hide it using an attribute of type WDVisibility binded to its visible property.
    //Hide it
    wdContext.currentContextElement.setATTRIBUTE(WDVisibility.NONE);
    //and Show it
    wdContext.currentContextElement.setATTRIBUTE(WDVisibility.VISIBLE);
    Regards.
    Julio Herrera.

Maybe you are looking for

  • Testing if an image is null

    Hi guys, Was wondering if you could help me out. I have a data block based on a table, and this table contains an image of type blob. Now, I have some items on my form that I only want to display if the image is not null and was wondering how I could

  • Questions about old movies

    I have a lot of movies that I had downloaded on my external hard drive all of which are in regular dvd format, my question is how would I go about streaming and watching those movies or for that matter converting to movies to any Apple format? Please

  • HP ProtectTools software

    Hi, I recently purchased a HP Compaq nc6220 P/N PV139PA#ABG. It came with no HDD or caddy & was BIOS protected, which I cleared after disassembling the notebook to get to the battery. Grr I have since purchased a new HDD & caddy for it & after numero

  • Date class

    Hi, I am writing a code and i need to use dates in it, how can i get the details of the classes that deal i dates. I mean there must be some date class with some attributes and methods, which i can use, so can anybody help me out on this. points will

  • OS X Mavericks &  CS3 compatible?

    I have a MacBook with 2.53 GHz Intel Core 2 Duo processor, running Mac OS X, version 10.6.8. I am considering upgrading the operating system to OS X Mavericks. I do not have Creative Cloud. I have CS3 InDesign (version 5.0.4), Illustrator (version 13