Hi Grace, Now when I think of it, I can imagine users going mad if they find a button that is so dumb. I didn't think from the design angle, just from the technical side. Probably a Javascript Alert saying "You are not allowed to do this" onClick of the 'disabled' button would ease the pain a little bit. Well, in that case the button could stay of type SUBMIT and return false to avoid submit. In the HTML world I haven't seen any disabled button that appears a little pale, and didn't know it existed. If that is not supported by Netscape, your suggestion #1 seems to be a nice idea. Aby > -----Original Message----- > From: Grace Frederick [SMTP:[EMAIL PROTECTED]] > Sent: Friday, June 25, 1999 10:44 AM > To: Mathew, Aby; 'LadyNaureen'; > [EMAIL PROTECTED] > Subject: Re: [ND] Visual Components -- How to create a shortcut key & > How to disable a button without Script? > > Is that really such a good idea? You'll drive your users absolutely > insane > by showing them a button that _appears_ like it should be functional but > isn't. > > Here are a couple more things you could do that might be better: > > > 1. Create an image button that will generate the HTML for the enabled > button. Customize the onBeforeHtmlOutputEvent for the field so that, > based > on the business logic, it sets the HTML to that for an image of a > disabled > button. That way, it looks like a button but isn't. > > > 2. Depending on your target browser requirements, customize the display > field to use HTML 4 standards. > > HTML 4 includes the BUTTON tag that looks something like this: > > <BUTTON type="submit" name="Type" value="infoOnly">Find Info</BUTTON> > <BUTTON type="submit" name="Type" value="infoOnly" DISABLED>Find > Info</BUTTON> > > It also allows you to set a DISABLED attribute for the INPUT tag so it > looks > like: > > <INPUT TYPE="BUTTON" NAME="Type" value="infoOnly" DISABLED> > > Unfortunately, only IE 4 and above handle this at this point, but it's > definitely cool. > > -- Grace > > > > > > > > ----- Original Message ----- > From: Mathew, Aby <[EMAIL PROTECTED]> > To: 'LadyNaureen' <[EMAIL PROTECTED]>; > <[EMAIL PROTECTED]> > Sent: Friday, June 25, 1999 9:08 AM > Subject: Re: [ND] Visual Components -- How to create a shortcut key & How > to > disable a button without Script? > > > > Hi, > > > > I remember seeing somebody else also wanting to Diable a button rather > than > > getting rid of the button altogether. > > > > In the Internet applications world we survive with all kinds of tricks. > So > > here is a simple one: > > > > In the button_onBeforeHtmlOutputEvent, change the TYPE=SUBMIT to > TYPE=BUTTON > > using CSpUtil.replaceSubstring or so. The button will not submit the > form > > anymore, disabled in effect. > > > > Aby > > > > > -----Original Message----- > > > From: LadyNaureen [SMTP:[EMAIL PROTECTED]] > > > Sent: Friday, June 25, 1999 2:48 AM > > > To: [EMAIL PROTECTED] > > > Subject: [ND] Visual Components -- How to create a shortcut key & How > > > to disable a button without Script? > > > > > > > > > Hello All, > > > > > > Is there any way I can disable a button during runtime without using > > > script? since I want to disable a button for some users instead of > hiding > > > it. > > > > > > It is very common to have short cut keys for buttons like for "Exit" > we > > > have "Alt + x" as a short cut key. Is there any method to achieve > this? > > > > > > Thanks. > > > > > > Regards, > > > LadyNaureen > > > > _________________________________________________________________________ > > > > > > For help in using, subscribing, and unsubscribing to the discussion > > > forums, please go to: > http://www.netdynamics.com/support/visitdevfor.html > > > > > > For dire need help, email: [EMAIL PROTECTED] > > > _________________________________________________________________________ > > > > For help in using, subscribing, and unsubscribing to the discussion > > forums, please go to: > http://www.netdynamics.com/support/visitdevfor.html > > > > For dire need help, email: [EMAIL PROTECTED] > > _________________________________________________________________________ For help in using, subscribing, and unsubscribing to the discussion forums, please go to: http://www.netdynamics.com/support/visitdevfor.html For dire need help, email: [EMAIL PROTECTED]
