Tag Archives: input

(jQuery) jQuery input value text toggle

This is a jQuery custom function used for clearing the default input values of input fields without having to add a class or inline javascript like onclick or onblur. Just write your input and give it a value like you normally would and then add this function and you’re good to go.

Posted in JavaScript | Also tagged , , , , , , , | Leave a comment

(PHP) Clean Input

code below can be used to clean any input, submitted by any form etc.

Posted in PHP | Also tagged , , , , | Leave a comment

(PHP) FizzBuzz with input from user

  Posted by on January 1st, 1970

Posted in PHP | Also tagged , , , , , | Leave a comment

HTML5 speech-based input

HTML5 supports speech-based input via your microphone. Append the following line to your input tags. x-webkit-speech speech <input id=”search” name=”search” type=”text” x-webkit-speech speech> On a side note, it is currently only supported by Google Chrome.

Posted in Uncategorized | Also tagged , , , , , , , | Leave a comment

Console input and output in F#

Console input and output in F# is demonstrated with the following console application. // Program.fs module Program open System // Declare the main function let main() = // Ask the user for input Console.Write(“Enter your input: “) // Read user input let input = Console.ReadLine() // Print the entered input Console.Write(“You entered: {0}”, input) // [...]

Posted in F# | Also tagged , , , , | Leave a comment

Detecting keyboard input in XNA

Keyboard input is essential in most games. The user might use it for moving a character, mario style enemy killing and many other things. XNA supports so called keyboard states to detect keyboard input.

Posted in C# | Also tagged , , , , , , , , , | Leave a comment

Console input and output in Perl

These snippets demonstrate console input and output in Perl. The first snippet simply asks for input and outputs it back to you and the second snippet interprets commands and displays the results.

Posted in Perl | Also tagged , , , , , , | Leave a comment