disabled

How do I know if Javascript has been turned off inside browser?

I assume that you can't use a javascript code snippet to validate if the browser user has turned off javascript. So what can i use instead? Can someone offer a code sample? I'm looking to wrap an if/then statement around it. I often code in CFML, if that helps. ...

ASP.NET Combo Box value seems to change when I disable it in Javascript

I have a form in which the user can choose a component type from a combo box, and depending on that component they they may or may not be able to choose a data type from another combo box. When the user selects a component type, client-side javascript fires on the change and sets the value of the data type combo box if required and disa...

Font color of disabled listbox

Hi everybody! I want to draw some listview items disabled and would like to mimic the appearance of a disabled standard Windows listbox. Which colors does it use? I can't find anything in my reference chart :-) or with Google. Edit: Shortly after posting the obvious occurred to me - it seems to be COLOR_GRAYTEXT. ...

How can you tell if a trigger is enabled in PostgreSQL?

My googling-fu is failing me. How to know if a PostgreSQL trigger is disabled or not? ...

Ruby on Rails, Javascript detection

Hello I am creating a web app that uses Rails built in helper functions to add ajax functionality to the site. I do not want the user to be able to use the app without JS as it will not function properly. I need to be able to prevent this. How can I go about stopping the user from loading any of my pages without JS? I have tried to us...

How to programatically re-enable documents in the MS Office list of disabled files

MS Office programs keep a list of disabled files that have caused errors when previously opened. A user can remove documents from this list by accessing the list through the program menu and selecting a document to be re-enabled. (http://support.microsoft.com/kb/286017) The question is: How can this re-enabling of documents be accompl...

Disable Save button in WPF if Validation fails

I've adopted what appears to be the standard way of validating textboxes in WPF using the IDataErrorInfo interface and styles as shown below. However, how can I disable the Save button when the page becomes invalid? Is this done somehow through triggers? Default Public ReadOnly Property Item(ByVal propertyName As String) As String Imple...

Why can't I disable this XUL menuitem?

I'm at my wits end, and it's probably something really simple.. But I've got basically this code: var menuitem = document.getElementById('mymenuitem'); alert(menuitem); alert(varImChecking == null); menuitem.setAttribute('disabled', (varImChecking == null) ? 'true' : 'false'); It should be disabling the 'mymenuitem' menu item, but has...

disable value in s:select

Hi, if I have a for example this struts tag: <s:select name="country.id" list="countries" listValue="name" listKey="id" headerValue="Select Country" headerKey="" label="Country" /> output is the following html code: <select name="country.id" tabindex="12" id="registration_country"> <option value="">Select Country</option> <opt...

Rename a class in Xcode: Refactor... is grayed out (disabled). Why?

Why is Refactor... grayed out (disabled) in Xcode? I'd like to rename a class. ...

WPF: Read only say TextBox and binding.

Say I have a grid and I click an object and it displays in a detail screen,And I don't want the user to edit some data so I set the TextBox as disabled? then will binding work.Basically what I want is the TextBox to be greyed or disabled ya know? Well how about it in WPF? Can someone explain? ...

(Ruby,Rails,Javascript) Redirecting/Rendering a different page when Javascript is disabled...?

Hi All, I'm having severe issues with Rails, Javascript, and redirects. Basically I have the "simple" issue of redirecting to a different page if JS is disabled. If JS is enabled, then I add a new item inline immediately -- this works like a charm. However, if JS is disabled I want to redirect to the NEW page of a different controlle...

Flex : Disabled canvas look and feel

Is there a way in Flex by which a disabled canvas looks exactly the same as an enabled canvas? I haven't been able to make sense of disabledOverLayAlpha and disabledColor properties for a Canvas component. ...

How to set CSS for disabled checkboxes?

I'd like change the CSS for disabled checkboxes in a grid (they are too hard to see, per the users). What is a simple way to do this? My preference in technologies used (in descending order): CSS JavaScript jQuery Other ...

Is there away to monitor when a elements disabled attribute is set with jquery?

Hey I'm trying to fire a new event I created for when a button is set to disabled state (By another method etc...) how can I achieve this? i want to listen for when the disabled state changes. ...

Android text view color don't change when disabled

When I call setEnabled(false) for a TextView object the text color don't change, I expected it will be changed to gray. If I remove the line of "android:textColor" in my XML file, it backs to normal. any ideas ? ...

GWT DnD: Is it possible to drag disabled widgets?

I have a composite widget that contains a disabled TextArea on an AbsotutePanel. Now I want to be able to drag the composite widget, starting from anywhere on it, including the disabled text area. Is that possible? ...

HTML attribute disabled="disabled" doesn't work with IE8

I have a ASP.NET MVC application. The code in the aspx is like that <input '<%= ViewData["Disabled"] %>' class="Text1" type="text" name='test' value='0'/> ViewData["Disabled"] contains at this state a string = 'disabled="disabled"' the result in firefox: <input class="Text1" type="text" value="0" name="test" disabled="disabled"...

How to change the look of a disabled JButton in java

I am making a game and when I disable a button with setEnabled(false); the buttons turn grey which clashes with the other colors in the game. Is their a way to change the color of the button when it is disabled? ...

jquery radio button group problem

Hi, I have a radio group which is validated for required. It works fine except when in certain cases I need to disabled first radio button leaving user to select one from remaining. Even in this case radios are validated but error message is not displayed. I believe its due to error message's association with first radio. Disabling othe...