Questions tagged [input]

Input is usually related to user input, i.e., to the data that user supplies to a running application. In many systems this input is considered to be potentially dangerous and needs to be sanitized to ensure that the user has not injected runnable code into the application.

For questions pertaining to the HTML <input> tag, please use instead.

Input is any form of information that is provided to an application or process. In interactive graphical user interface (GUI) applications, input is often taken from the user via input controls such as textboxes and drop-down lists. In non-interactive services, input is often taken from local or remote resources, or service requests.

34931 questions
6
votes
2 answers

Python3 best way to read unknown multi line input

What is the best way in Python 3 to read in multi-line user input when the amount of input is unknown? The multi-line input will be separated by Enter when I try using while True: line = input() if line: print(line) else: …
Mazzone
  • 401
  • 1
  • 6
  • 21
6
votes
1 answer

Why are my examples and labels in the wrong order?

I'm trying trying to read some data in tensorflow, and then match it up with its labels. My setup is as follows: I have an array of english letters, "a", "b", "c", "d", "e", ... I have an array of "cyrillic" letters, "a", "b", "w, "g", "d", ..., I…
416E64726577
  • 2,214
  • 2
  • 23
  • 47
6
votes
2 answers

How to fire "focusout" event when focus lost of input placed in table?

I have a table where inputis placed:
StepUp
  • 36,391
  • 15
  • 88
  • 148
6
votes
1 answer

In OS X, how do I enter a second-plane Unicode character with the standard input method editor?

I want to test that my Cocoa app properly handles input outside the basic multilingual plane, and copy-pasting it is out of the question. I don't know how to key in a character outside BMP! I have set up Japanese as an input source and am able to…
George
  • 4,189
  • 2
  • 24
  • 23
6
votes
4 answers

How to allow input number type to have space and comma

How can you allow input type="number" to accept something like 1, 2, 3, 55 rather than just regular number with decimal. I tried using pattern but it didn't seems to work its magic as its still only accepting number and decimal. Example:
MrNew
  • 1,384
  • 4
  • 21
  • 43
6
votes
2 answers

Auto select text in HTML input

I have an HTML input as follows: I am trying to make the text inside the input to be auto highlighted at the point the input is displayed on the page. I have found lots of questions that show…
Alex
  • 3,730
  • 9
  • 43
  • 94
6
votes
1 answer

Android WebView HTML input keypress doesn't fire

On some devices (mostly Samsung, but others too) and combinations of: Android version, WebView version (even with the evergreen WebView in Android 7) and keyboard, there are a number of issues: keypress isn't fired keydown and keyup always contain…
gabrielmaldi
  • 2,157
  • 2
  • 23
  • 39
6
votes
1 answer

Unzip or inflate php://input stream?

I'm trying to unzip a zip file directly from the php://input stream. I'm running Laravel Homestead, PHP 7.1.3-3+deb.sury.org~xenial+1, with an endpoint at myproject.app/upload, here is the curl command: curl --request POST \ --url…
Zack Morris
  • 4,727
  • 2
  • 55
  • 83
6
votes
4 answers

Copying to clipboard textbox value using jQuery/JavaScript

I have a textbox & button which looks like this:
User987
  • 3,663
  • 15
  • 54
  • 115
6
votes
2 answers

Angular2 @Input and lifecycle hook

I have following component: export class AddressListComponent implements AfterViewInit{ @Input() districts: District[] = []; constructor() { } ngAfterViewInit() { console.log(this.districts); } } So it console logs districts as…
mondayguy
  • 973
  • 2
  • 12
  • 34
6
votes
3 answers

Html Css change Date input highlight color

I have an input of type date in my page and I want to change the color of the highlight inside of it and I don't know if there are css selector for that. Here's an image of what i'm talking about : Thank you for your concerned! :) EDIT here's what…
alexandre
  • 297
  • 4
  • 16
6
votes
3 answers

how to use laravel's validation rule in custom validation rule?

I have input $data =['identifier' = 'xxxxxxxxxx'];, and want to save the encrypt($data['identifier']) to the table info primary id column. I've to validate before save it. Rule unique:info, id isn't suitable here, so I want to write a custom…
LF00
  • 27,015
  • 29
  • 156
  • 295
6
votes
4 answers

How to I set min and max value for Input with type='datetime-local'?

SOLVED Hi, i have an input field which should send a value to mysql and I want to set max and min value to predict a date range the user can select from. This input is a datetime-local field, because i want him to select the time as well. I know…
Cyber
  • 2,194
  • 4
  • 22
  • 41
6
votes
1 answer

Ionic 2 ion-input no browser autofill?

I'm working on a login form, with two fields: email and password, using the ionic2 framework. Email
sTx
  • 1,213
  • 13
  • 32
6
votes
0 answers

Non-blocking input in python 3

I would like a cross platform way to read input from stdin in a non blocking way. Something like this (which is how non-blocking sockets do it): while True try: string = input("> ") except BlockingIOError: pass else: …
nickeb96
  • 789
  • 1
  • 10
  • 16