This is a discussion on "Disable button" within the JavaScript Forum section. This forum, and the thread "Disable button are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Disable button
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Yeah dito.
And now I see Mr. KuleGamr profusely apologising in the Free For All forum, so I must have missed out on some serious fun. I hope you guys haven't permanently deleted that thread... |
|
|
|
#2
|
||||
|
||||
|
I believe it got deleted... I am looking into the matter and will keep you informed.
Rob
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#3
|
|||
|
|||
|
Part of the fun of forums is having barneys with people you don't know, or reading other people having them.
I do hope it wasn't deleted permanently. |
|
#4
|
||||
|
||||
|
It appears it was permenently deleted by a moderator who shall remain nameless.
He has been ticked off, and I assure all, it wont happen again. Sorry guys.
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#5
|
|||
|
|||
|
Boo!
u2o |
|
#6
|
|||
|
|||
|
<blockquote id="quote"><font size="1" face="geneva, verdana, arial" id="quote">quote:<hr height="1" noshade id="quote">Originally posted by Rob
It appears it was permenently deleted by a moderator who shall remain nameless. He has been ticked off, and I assure all, it wont happen again. Sorry guys. <hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote"> Name him please! Can we now have a thread to kick his arse instead? |
|
#7
|
|||
|
|||
|
<blockquote id="quote"><font size="1" face="geneva, verdana, arial" id="quote">quote:<hr height="1" noshade id="quote">Originally posted by GillBates
Part of the fun of forums is having barneys with people you don't know, or reading other people having them. I do hope it wasn't deleted permanently. <hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote"> Next thing you know they'll be wanted us to talk about web development. Sheesh. |
|
#8
|
|||
|
|||
|
Disable button
I want to make button that can be hide or shown depending the value of the textbox inside my form!
If the text box contain no value, then display the button else, hide it! anyone can help me
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#9
|
|||
|
|||
|
this javascript will be put inside the updata page, where the user can update their information.
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#10
|
||||
|
||||
|
add an ID to your text box and your button, then add this code:
|
|
#11
|
||||
|
||||
|
I should point out that the above code, although correct, would need to be contained inside a function. The function would need to be called by the textbox's onchange event.
Post back here if you have problems achieving this modification.
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#12
|
|||
|
|||
|
well thanx benbacardi, and thanx rob for reminding me
let me try it out first!
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#13
|
|||
|
|||
|
hai rob and benbacardi...
i have a hard day trying to run the code. actually i dont know how to use it. can you show me how to do it,please can you show me the <HEAD> script as well this is the code page that will contain two textbox (subject,section) and two button(update record,delete)--<u>delete will empty the textbox value =''</u> this is my update page(dbUpdate.asp) disable the two button if both the textbox contain value inside it!
Else if the textbox "Subject" and "Section" contain a value/ data, then disable the "Update Record" and "Delete" button and display a "BACK" button to go back to previous page! <span style="color:maroon">can you show me step by step
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#14
|
||||
|
||||
|
ok.... first you need to add an id to the two buttons:
i wasn't too sure about what you meant by the back button.... |
|
#15
|
||||
|
||||
|
Monie.... please can you use forum code when posting script. You need to surround any pasted code with these tags:
[*code] script here [*/code] (remove asterisks)
__________________
Click the 'Thanks!' button if this post has helped you Rob - Webforumz Founder
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
#16
|
|||
|
|||
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#17
|
|||
|
|||
|
hey guys....
i am wondering, if I can disable a button, can i disable a text as well? what changes i must do in the code if i want to disable a text?
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#18
|
|||
|
|||
|
You don't need to change anything other than use the id for the text field in the disabling code.
|
|
#19
|
|||
|
|||
|
hey benbacardi, i am having a big problem here!
could you help me please the code that you gave me is to check if the "subject" and "section" field contain a value! if it contain a value, disable the book button, and if it does not contain any value enable all the button.i have done that successfully...thanx to you i have modify the code to check a field called "type", if the field contain value equal to "FIXED" and "BOOKED", disable the book button! this field is entered by the admin! but if the field contain the value "AVAILABLE"(set by admin), enable the book botton! can you help me! i have been trying to modify the code but i dont know how to do the checking part this is the unfinished code that i have done...
if field "type" contain "FIXED" or "BOOKED"---> disable book button else if field "type" contain "AVAILABLE"---> enable all button</span id="red"> please help me
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
|
|
#20
|
||||
|
||||