Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Enable and disable button
Message
 
 
À
30/10/2013 14:37:24
Information générale
Forum:
Javascript
Catégorie:
JQuery
Divers
Thread ID:
01586844
Message ID:
01586856
Vues:
22
The only way I know of (from Googling and looking at other sites) of how to disable the post back of a button is to set value of property OnClientClick='return false;'. And it works; but only if the button is enabled to begin with. If the button is disabled (Enabled='false') then once you enable it in the jQuery, it posts back. I will keep Googling for a solution. Thank you.

>Well, beats me. I have never done an ASP.Net site. Is there a property you can set in the designer that says, "Don't post back on this button"?
>
>
>>The first button is Start which (in jQuery) sets value for event.timeStamp to a variable. The second button gets new value of event.timeStamp and calculates the difference. Basically times how much time elapsed. When the first one is enabled the second should be disabled and the other way around. The calculations work but the post back messes things.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform