Javascript/Jquery to change class onclick??

I want to change a class onclick. What I have at the moment: <script> function changeclass() { var NAME = do...

Trigger a button click with JavaScript on the Enter key in a text box?

I have one text input and one button (see below). How can I use JavaScript to trigger the button's click event when ...

How to use the 'scroll' and 'max' options in Autocomplete?

I need help with aucomplete of the jquery. jQuery("#PeopleName").autocomplete( ...

how to play video using java??

I want to play a video in media player using java i used JMF to display the video however it gives me an error in on...

Post Increment in while loop in C?

Here is a very simple C program: int main() { int i = 0; while(i++ < 10) printf("%d\n", i); ...

Adding images to an HTML document with javascript?

I've tried some HTML DOM code from several sites, but it isn't working. It isn't adding anything. Does anyone have a...

How to let an ASMX file output JSON?

I created an ASMX file with a code behind file. It's working fine, but it is outputting XML. However, I need it to ...

Decoding a WAV File Header?

I'm trying to understand the header of a WAV file. I've opened an example file and got this: 5249 4646 e857 1400 57...

Is there a form of “type safe” casting in Java??

Suppose I have two classes deriving from a third abstract class: public abstract class Parent{ public Parent(){...

What is IPV6 for localhost and 0.0.0.0??

As we all know the IPv4 address for localhost is 127.0.0.1 (loopback address). What is the IPv6 address for localhos...

How can VBA connect to MySQL database in Excel??

Dim oConn As ADODB.Connection Private Sub ConnectDB() Set oConn = New ADODB.Connection Dim str As String str = "DRIV...

Sine Wave Sound Generator in Java?

What's the simplest way to generate a sine wave sound at any frequency in Java? A sample size more than 2 bytes woul...

How to make a <div> or <a href=“#”> to align center?

I'm using the following code in body section. &lt;center&gt;&lt;a href="contact.html" class="button large hpbottom"...

Shuffle DataFrame rows?

I have the following DataFrame: Col1 Col2 Col3 Type 0 1 2 3 1 1 4 5 6 1 .....

How do I get a diagram of the dependencies between my C# projects?

I have a fairly complex application which has been broken up into multiple components. Each component has a solution...