enable

how to disable/enable network connection in c#

Basically I'm running some performance tests and don't wan't external network to be the drag factor. I'm looking into ways of disabling network LAN. What is effective way of doing it programmatically? I'm interested in c#. If anyone has code snippet that can drive the point home that would be cool. ...

Sharepoint Blog: enable/disable comments regarding field value of Posts

Hello! I need to enable/disable post comments regarding the value of a new field in Post list. I don't see how to do this... Any ideas? Why is there an error when converts to XSLT? Is possible to get the querystring to do this? Thanks a lot!!! Xavier ...

Enable Logging Log4j for certain users

Hi, In the log4j.properties file I've set the Level to ERROR. For certain users I need to set Level to DEBUG. I was able to change the Logging Level at run time; but this will be enabled for all the users accessing the application at the same time. Is there any other method by which we can enable logging for selected users? Any help will...

How to enable JMX on Weblogic 10.x

I have an application that is JMX enabled. It has its own JMX Agent and some MBeans. When i launch the application in WebLogic, i am able to connect to the JMX agent via the RMI url and perform the operations on MBeans via "JConsole". But when i get into the Weblogic console, i can not see any JMX consoles! How can i enable the JMX con...

How to programmatically enable GPS in Android Cupcake

I'm currently writing an app in Android that works with the GPS, at the moment I'm able to work out whether the GPS is enabled, my problem is that I want to enable the GPS on app startup if it is disabled, how can I do this programmaticaly? ...

Tomcat failed to shutdown

when i add the following java opts to enable debugging: JAVA_OPTS="$JAVA_OPTS -noverify -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005" i get the following error whenever the try to shutdown the tomcat: ERROR: transport error 202: bind failed: Address already in use ["transport.c",...

webservice enable a component

I have a jar file that is used by several applications - by including the jar file within the application ear as a utility jar. I would like to expose the function provided by this jar file as a webservice. Currently, the APIs in the jar file are called from other components within the application/ear. The API exposes an interface as on...

ASP.NET C#: Enabling / Disabling all ASP Controls in Table / Placeholder

Hello guys, How do I disable for example all button controls in a certain placeholder? The plot: I am coding an application for web that uses some buttons which get disabled after you click them. Now when I click the "New Game" button, all previously disabled buttons should be enabled again. Any help is very appreciated! ...

how to enable or disable anchor tag using jquery

Please Help how to enable or disable the anchor tag using jquery ...

jquery link tag enable disable

I want to disable the link during onloading, for the code given below <span id="addlink">"<%= f.add_associated_link('Add Task', @project.tasks.build, :class=>"add") %></span> please,suggest some answers if you have i tried with the below samples but not working $("#addlink").attr("disabled", "disabled"); and $("a.add").hide(); ...

jquery - Activate and deactivate hyperlink

suggest me some sample codes to activate and deactivate a hyperlink on clicking it. i tried some of these, but no result 1) $("a#click").onclick = function() { return false; } 2) $("a#click").attr ('href', '#'); 3) $(#document).ready(function(){ $("#disabled a").click(function () { $(this).fadeTo("fast", .5).removeAttr(...

iPhone- Can 2-channel audio podcast files output to mono bluetooth earpiece?

iPhone 3G using OS 3.1. Can iPhone be enabled to play audio podcasts via a one-ear bluetooth headset (terminology issue- headsets mean both one-ear and two-ear units.) VoiceMemo audio files can output to a one-ear bluetooth headset (as can phone calls of course.) But audio podcasts files cannot. Is there a setting change that can ac...

JQuery enable button based on select

Hi, I have a page that contains a collection of select's that are used to identify the columns in a text file. Each time a user identifies a column the selected option is removed from the other selects on the page. When the user has identified all columns the "submit" input needs to be activated so the user can move to the next step. I ...

How to enable ribbon menu?

<r:RibbonWindow.Resources> <ResourceDictionary> <!--Ribbon Commands--> <r:RibbonCommand x:Key="cmdPrint" CanExecute="RibbonCommand_CanExecute_Print" LabelTitle="Print" LabelDescription="Print" ToolTipTitle="Help" ToolTipDescription="This is used to Print" SmallImageSource="Images\printIcon.png" LargeImageSource="Imag...

enable ribbon control

Menu Items and all other menus are not enabled` <r:RibbonWindow xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:r="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary" xmlns:Custom="http://schemas.microsoft.com/wpf/20...

Javascript: enable/disable button with mouseover/mouseout help

Ok..this should be pretty straightforward: <input type="button" name="test" id="test" value="roll over me" onmouseover="this.disabled=true;" onmouseout="this.disabled=false;"> if i mouseover this button, it gets disabled..yay! But now when I mouseout, it doesn't get enabled...boo. I understand the concept of disabling it means you can...

VBA disable/enable shortcut key combinations

I need to enable and disable shortcut key for select all "Ctrl + A". FindKey(BuildKeyCode(wdKeyControl, wdKeyA)).Disable FindKey(BuildKeyCode(wdKeyControl, wdKeyA)).Rebind wdKeyCategoryCommand, ?? What is the command parameter for Ctrl + A?? I cannot find this information anywhere! Also I want to apply it only for my templates: Cus...

Javascript to enable/disable asp DropDownList showing funky behaviour?

I am disabling a dropdownlist when a button is clicked function disableDropDown(DropDownID) { document.getElementById(DropDownID).disabled = true; return false; <---------tried with and without this, no luck } and a onClick call to disableDropDown('DropDownID'); I see it disable the dropdown and then immediately there is a post...

Toggle dropdownlist enable and disable with a button click using Javascript?

I have the following JavaScript to disable a dropdownlist in a ASP.NET page , which gets called when I click a button. function disableDropDown(DropDownID) { document.getElementById(DropDownID).disabled = true; return false; } I wanted to use the same button to toggle between enable and disable for that dropdownlist. How do I do ...

Client side javaScript to toggle a dropdownlists effects reversed on postbacks?

I have the following JavaScript to toggle a dropdownlists in a ASP.NET page , which gets called when I click a button. I have like 4-5 dropdownlist/Toggle button pair. Each toggle button toggles the enable/disable property on the associated dropdownlist. function toggleDisableDropDown(dropDownID) { var element = document.getElementByI...