input

Getting data from iframe with JavaScript

Greetings, js masters. I have a simple page with iframe. In this frame there are a three input fields, which user fill in. How to get this data in every input field with js? Here is js: <script type="text/javascript"> var ticket = window.frames[0].document.getElementById('ticket').ticket; alert(ticket); </script> And i have inside f...

Getting input if the window is not active (Windows)

Hi, Short version: How can I receive input messages in Windows with C++/C when the window is not active? Background information: I'm currently working on an Input System that should not depend on any window, so it can e.g. be used in the console as well. My idea is to create an invisible window only receiving messages, which is poss...

how many characters are possible in an input field in html?

What is the "natural" number of allowed characters in an input field in html? thanks a lot addition due to the comments i don't need to send it to the server via post or get. i am going to parse the string via JS. So if the input is unlimited like @sAc says brings me to two further questions: What is the longest String JS can hand...

Focus on TextBox when UserControl change Visibility

I have a usercontrol loaded inside a canvas; this usercontrol on default have visibility collapsed. When a specific textbox of my window is focused the usercontrol become visible. When usercontrol become visible I want set focus to another textbox inside usercontrol. I try to do that: private void UserControl_IsVisibleChanged(object s...

jquery search custom

Hello friends, See this site http://g1.globo.com/ has a custom search field that uses jquery for any of the bottom also if placed a value in less than 2 appears a custom alert. I am hours here trying to find a solution to copy me and I can not, I am totally a layman and not getting to. If a friend i know and can get me the code I am g...

How to get a large integer as input and store it in memory

I know that performing arithmetic on large integers in brainfuck, while perhaps quite tedious at times, is entirely possible. However what I'm wondering about is what the generally acceptd best-practices are for taking in large integers (or even strings, I suppose) as input. Most compilers/interpreters allow you to provide full strings...

How do I get console input in javascript?

I'm currently using spidermonkey to run my javascript code. I'm wondering if there's a function to get input from the console similar to how python does this: var = raw_input() Or in C++: cin >> var; I've looked around and all I've found so far is how to get input from the browser using the prompt() and confirm() functions. ...

Is there a way to style part of an input field's value?

I'm working with an <input> field and I'd like to style part of the field as the user's typing in a different color. For example, let's say the <input> has a style declaration of color: red; and I want to change part of it to color: blue;. Is there any way this is possible? If there isn't (as I suspect), any creative ideas on how I can ...

auto calculate the sum of input values with javascript

I've an html page which has many dynamically created input boxes. The number of text boxes vary each time. I want to calculate the sum of the numbers the user has entered, and disply it. When the user delete one number the sum should auto calculate. How can i do it with javascript? Thanks ...

Input Button Sliding Doors CSS Issue

I have a sliding doors technique working great on my input buttons with the exception of one last piece I can't resolve. When I mouse over the right side tip of the button it will highlight a different shade of my button style. The right side is the "sliding door" and it appears to function independent of the left side of the button. H...

How do I detect touch input on the Android

Right now all I am trying to do is detect when the screen is pressed and then display a log message to confirm it happened. My code so far is modified off of the CameraPreview sample code (it will eventually take a picture) so the bulk of the code is in a class that extends SurfaceView. API for the example code from the SDK is 7. ...

HTML: why isn't the input field SIZE deprecated? we have style="width:xx"!

simply put, i think that the input 'size' field is now obsolete (like the rest of html styling outside of css), and most of the sizing attributes have been deprecated, so why not input.size? ...

Input value problem when to fast typing

$("#input").keyup(function(){ console.log($(this).val()); }) Problem is when one is typing slowly "a" & "b" the above code will result in "a","b" in console log. But when somebody does it quickly the result is "ab","ab". It's easier to do with letters which are near on a keyboard eg. "e"&"r". How to avoid it? Events keydown and keypr...

html input field options

Hi, I have a input field and on clicking that I will show a date picker to select the date. I would like to always make this field select using from that picker and not by typing. the reason is, i am just modifying this one field and don't want to touch the whole code to validate this field. i have given enough drop down options for th...

C++ getline or cin not accepting a string with spaces, I've searched Google and I'm still stumped!

First of all, thanks to everyone who helps me, it is much appreciated! I am trying to store a string with spaces and special characters intact into MessageToAdd. I am using getline (cin,MessageToAdd); and I have also tried cin >> MessageToAdd;. I am so stumped! When I enter the sample input Test Everything works as intended. Ho...

Help text for asp:FileUpload or input:file

Hi Guys, I would like to know whether this is possible with input:file URL: http://www.kryogenix.org/code/browser/labelify/ Regards, naveenj ...

jquery input select all on focus

Hey all. I'm using this code to try and select all of the text in the field when a user focuses on the field. What happens is, it selects all for a second, then its unselected and the typing cursor is left where I clicked... $("input[type=text]").focus(function() { $(this).select(); }); I want it all to remain selected. Any ideas? ...

C++ User Input When Initializing Values

Hello. I'm a student in an introductory C++ course. For one of our past assignments we have had to create a simple program to add fractions. Each new lab is just an application of new skills learned to making the same program. Now I need to make one using objects from a class definition. After tooling with a multiplying example my pro...

Drupal - how to disable "Input Format" fieldset in node edit form

Hi! I am using hook_form_alter to disable some publishing options whet authors adds or edits the nodes: /** * hook_form_alter () */ function mymodule_form_alter(&$form, $form_state, $form_id) { global $user; if ($form['#id'] == 'node-form') { unset($form['comment_settings']); unset($form['path']); unset($form['revision...

Webkit won't let me set marker in input field

I have a input field for signing up to a newsletter. When I have entered some text and try to click between some of the letters webkit (Safari and Chrome) won't set the cursor there. I can only highlight the text. I'm running a couple of javascripts on it (overlabel and validation), which I'm assuming is fault. That, or it's the absolut...