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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
4 views

Expand InputText if Switch button set to Yes in Android Studio Java

I am trying to add line where user can write how many miles he has to travel (if he needs to travel) to next city, when toggled switch button. I am not that experienced in android studio and didn't ...
Minty's user avatar
  • 1
-1 votes
3 answers
49 views

How do I make a div appear when I type something

I want to make a thing so when I type the word "plz" into a input, a div box will appear. But I can't quite figure it out. I think it has something to do with javascript. My code is <html&...
Luke 's user avatar
-1 votes
0 answers
19 views

Movement in pygame with inputs [duplicate]

I am trying to make Tetris, however, I cant figure out how to make the block start by moving one block, then speeding up again. Similar to how the actual tetris works (tetris.com/play-tetris). I have ...
will's user avatar
  • 1
-1 votes
0 answers
39 views

Input of string in method call [duplicate]

I was writing a program to print the word of a string input which contain at least 1 pair of consecutive letters this is my code: class consecutive { public static void main(String x) { ...
Yash Raj Gupta's user avatar
0 votes
1 answer
18 views

Creating a truly reusable react input component using the value attribute

I'm fairly new to react, and while creating my first website, I found myself often needing to reuse an input component. The problem I'm having is balancing reusability and readability of the code. Let ...
Kilan Van Loo's user avatar
-1 votes
0 answers
12 views

Chrome autofill another email address when logged in with another email [duplicate]

I have 3 accounts on a website, all 3 have email-password saved in chrome autofill. I use account A the most. I just discovered that when I log in to account B, at change email screen, the input field ...
Blaziken's user avatar
1 vote
0 answers
7 views

Check if key is just pressed using sdl.GetKeyboardState() in sdl2-go binding

I'm trying to create an isKeyJustPressed() function in go using the sdl2-go binding. I'm doing this by checking if the previous keyboard state is unpressed, and the current one is I.E. ...
Debuholden's user avatar
0 votes
0 answers
16 views

InputSimulator Keyboard.TextEntry is not working

I'm trying to open a notepad instance and write a virtual text entry to it. The notepad opens securely but nothing is written on it. What would be the problem and why? using System; using System....
Oscar RoAh's user avatar
0 votes
0 answers
7 views

Input field using tailwind 2.2.16 in django form

I am using tailwind 2.2.16 in my Django project. I want to style the form, but the input fields are misbehaving and a weird looking border is encircling them. Please help me create a decent looking ...
Prateek Kumar's user avatar
0 votes
0 answers
17 views

React input misses keystrokes on mobile browser

I have an autocomplete input form that works perfectly when used from a desktop browser. Even if I heavily throttle the CPU using Chrome dev-tools. The issue comes when using such input from a mobile ...
moy2010's user avatar
  • 877
1 vote
0 answers
29 views

what is the best way to disable Input Text in Angular 15

I want to disable the Input box in Angular 15. I know I can use [disabled] attribute as below. The issue is, that the user can still right-click the control, view the source and remove the disabled ...
Sid's user avatar
  • 21
0 votes
1 answer
33 views

How to limit Ant InputNumber maxLength

I am using antd InputNumber component. I wanted to set the maxLength but it doesn't work . I also tried to do it with max attribute to limit the charachters at 12. But none of them worked. ...
Konul Memmedova's user avatar
0 votes
0 answers
25 views

Unable to pass inputs to stdin of Python subprocess

Unable to pass inputs to stdin of subprocess. Terminal gets struck while waiting for input. How can I handle stdin properly? def run_command(command: str, out_callback, in_callback): process = ...
Divy X's user avatar
  • 33
0 votes
3 answers
77 views

Number input limiting max length [duplicate]

I have a simple number input in react component. I need to make it not accept more than 4 characters. But it doesn't work with maxLength attribute. What else i can do to prevent it taking more than 4 ...
Konul Memmedova's user avatar
0 votes
1 answer
34 views

Disable JComboBox pop-up item selection on arrow keys

I have a very simple desire - I don't want JComboBox respond to arrow key presses. I don't want to select items in the pop-up on arrow keys, or in fact I don't want to show pop-up on pressing down ...
Vlad Vyatkin's user avatar
0 votes
1 answer
29 views

Keyboard shortcut in console, input - output

I'm learning programming from Stroustrup's book "The programming. Principles and practice using C++" There was a problem with the file not being executed in Visual Studio 22 (checking for ...
Eldar R's user avatar
0 votes
1 answer
36 views

Change hidden input value

I want change hidden input value from other input value. This is code: $(document).ready(function() { $(\'input:text[name="'.$data['name'].'"]\').keyup(function() { $(\'input:hidden[id=&...
VaderStudents's user avatar
0 votes
0 answers
18 views

How to integrate react-dropzone with useFormState?

I'm building a form using useFormState from the react-dom library. One of its fields involves a file input I implemented with react-dropzone. My current code is: Form export default function Form() { ...
Guido Carugati's user avatar
0 votes
1 answer
41 views

VSCode C++ file opens a new temporary terminal prompt window when code contains input [closed]

I wrote the tiny code below to find out what's the deal with inputs. It kept opening a new terminal prompt window to display my output (which is good), but it quickly closes when I inputted the word ...
Ulet Natalius's user avatar
-3 votes
0 answers
53 views

Why is my HTML form input not working with $_POST? [closed]

I am in the process of making a PHP website and have now got stuck on a simple hidden input. I have the problem that my hidden input is causing problems: when I set a name for a certain input, php ...
TechGrief's user avatar
0 votes
0 answers
33 views

Why does hasNext() wait for input? [duplicate]

In this simple code, I'm checking if a Scanner has something in the input buffer or not. So I used hasNext() to check whether it has something or not. But instead of returning "false" (in ...
Rachid's user avatar
  • 23
-10 votes
0 answers
106 views

Hi guys, Im currently a newbie in C programming, how can I write code in C that converts string input into sarcastic case like this: [closed]

Converting lowercase letters into uppercase in C using conditionals and for loops Here is the sample input and output: I was thinking if I could use a for loop and converting lowercase letters into ...
brogodonstoyistogodonstoy's user avatar
0 votes
1 answer
35 views

Write a program that reads an input file and two strings representing the lower and upper bounds. Determine if the strings are in range and output

Write a program that first reads in the name of an input file, followed by two strings representing the lower and upper bounds of a search range. The file should be read using the file.readlines() ...
Aiden Lake's user avatar
0 votes
0 answers
9 views

How do I get input from a keyboard and transfer it to the servo motors in BASYS3 (VHDL)?

I am working on a project such that servo motors will change their position according to the pushed letter on the keyboard, but I do not know how to get input from a keyboard. I examine this page ...
user22996011's user avatar
-2 votes
2 answers
55 views

Is there any tag in html5 to make drop-down button? [closed]

Is there any tag in html5 to make drop-down button? How to make navigation bar like drop-down feature in html5? I tried to make it using flexbox property of CSS and select tag of HTML5, but i did not ...
Priyanshu Sinha's user avatar
0 votes
1 answer
23 views

Addition of list elements without using sum method

Create an integer list with the user given elements. Write a program to find the sum of the elements of the given input list without using the method sum(), and print result. I know about the sum ...
Abhay Singh Yadav's user avatar
1 vote
0 answers
12 views

How to capture the print of the subprocess while polling with subprocess.Popen

I'm creating a small gui under ubuntu which starts a subprocess and prints the log in a text box. In my function, it calls another program using subprocess.POpen and print the log of the subprocess in ...
Ames ISU's user avatar
  • 199
0 votes
0 answers
32 views

How to correctly implement a Tags Input Field with React hook form?

So I have created a Tags input field for my Next.js app and I want to plug it into the react-hook-form. However, The field returns a string instead of an array. Here's how I am registering the input ...
Umair's user avatar
  • 345
-5 votes
0 answers
55 views

In python Discord bot what is input()? [closed]

i made this guessing game and tried to put it into my discord bot but when i run it, it sends everything because of the input(), does anyone know how to replace input so that the bot reads the ...
Wave's user avatar
  • 1
-4 votes
0 answers
35 views

Python Program for Calculating Factorials with Error Handling" or "Recursive Python Factorial Function with Error Resolution" [closed]

The error in the provided Python program is that there's no base case to handle negative numbers. If a negative number is passed to the factorial function, it will result in an infinite recursion, ...
Anirudh Kumar singh's user avatar
0 votes
0 answers
12 views

Troubleshooting Delayed ESC Key Detection and Program Exit in Rust CLI Tool with Crossterm and Tokio

I am writing a CLI tool which allows connecting to a remote server via SSH, dispatching a command, and streaming its result (in case the command is not instantaneous). I want the user to be able to ...
Th0rgal's user avatar
  • 723
0 votes
1 answer
28 views

Date interpretation in tsx is wrong with years like 0022

I've a problem with dates in tsx. The problem is that If I set a date like this 30/11/0022, it interpret the date as 30/11/1922. And that is wrong. I've this input element in tsx: <FormikField name=...
Julián Oviedo's user avatar
0 votes
0 answers
24 views

Need ActionScript 3 coding for input boxes that will determine amount of color fill in a movieclip

If I put a numerical value in an input textbox1 and another value in input textbox2, then the percentage of both these input boxes will determine how much boxA will fill. For example, I put the value ...
user38534's user avatar
0 votes
0 answers
26 views

HTML input validation pattern attribute - regex syntax differs from Javascript contrary to docs [duplicate]

Can someone explain what in the docs I have missed that may account for the following inconsistency? Observed in both Firefox and Chrome. The syntax of character classes for a regex in the HTML form ...
Jonathan Bromley's user avatar
-2 votes
1 answer
20 views

How can I implement an input element, but also with select options in HTML, CSS [closed]

example of needed input I need an input field, which will also open some options when clicked. If I choose from options, the input text has to stay. For example, you can choose an email domain from ...
anya_jeg's user avatar
0 votes
1 answer
55 views

How do I get rid of these side effects arising from my input statements in my python codebase?

Currently, my program is failing some tests because my input statements keeps appearing in the output during testing. However, it doesn't appear when testing with my jupiter notebook. Any hint on how ...
simper's user avatar
  • 21
-1 votes
2 answers
61 views

user input isn't working with greater than in python

I'm trying to create a program in python that will determine which number is bigger from two user inputted numbers. For some reason, python is telling me that the smaller number is greater than the ...
a_004's user avatar
  • 3
0 votes
0 answers
26 views

Assembly x86 Linux Not Reading User Input For One Specific Part

The initial syscall to read user input is working perfectly fine, but for some reason when I call for a second read later in the code, it doesn't work properly. It just terminates the program before ...
Ghosttxii's user avatar
0 votes
6 answers
66 views

how to go to a new line after getting an input in python?

I'm new to python. I just wanna get an input and go to a new line after that This is how my code looks like, name=input("name :\n") print(name) When I run this I get, name : blue blue What ...
pamudu_w's user avatar
-1 votes
0 answers
40 views

The selected text is not updated in the parent div, but the array is filled with text, separated by comma

Clicking, selecting the option value paragraph in the child div I need do fill the parent element content with this selected data, separated by comma. The console shows that the array is updated every ...
Ron's user avatar
  • 1
0 votes
1 answer
24 views

How can i remove the outline from FormControl when the input field is highlighted? (React-bootstrap)

So, I'm trying to make a search bar with some suggestions in dropdown. I'm using React-bootstrap. Now, I want to style it such that it goes from one side of the page to another, but with margins left ...
jameswilson's user avatar
0 votes
0 answers
17 views

Can't able to edit my input when the stayDays is greater than 1

In this input I can't able to edit below the mainRate when the staydays is greater than 1. Ex. if my mainRate is 990 and the Total ADvance came as 2990 and when I edit this total advance I can't able ...
Skelptin's user avatar
0 votes
1 answer
19 views

Set AutoCompleteInput to suggest list of words

In my Vue project I found that setting the id to "autocompleteInput" made it suggest prevously typed words then the input field is focused: <input id=&...
Rasmus's user avatar
  • 45
-1 votes
1 answer
64 views

How to make 5-star rating with CSS

I've edited a version of CSS 5-star rating, and need multiple of these ratings on my one page. However, when I changed the id on the different sets of 5 stars, and now it won't process checking the ...
B___H___'s user avatar
0 votes
0 answers
10 views

dropdown with dynamic options based on api response

I'm using flutter for app development and i'm stuck at a point TextFormField( controller: _streetNameSearchController, focusNode: _streetNameFocusNode, ...
Darkday-coder's user avatar
0 votes
2 answers
69 views

How to check input string is a valid number using jQuery - Backend Wordpress

I have tried to check if an input in a field is a valid number at Wordpress backend (ADD, EDIT post page), and if it is not, it will display a warning message. Here is what I have tried to achieve ...
daro2013's user avatar
0 votes
2 answers
53 views

Get rid of leading zeros in HTML input type="number"

I have a regular input field with input HTML that allows users to enter a time range (minutes and seconds). From 5 seconds to 20 minutes. However, there are error in the field that I would like to ...
Paul's user avatar
  • 93
0 votes
1 answer
43 views

Typescript/Tailwind CSS - Align button to the right of an input in a form

I am trying to set up a form that has a dynamic number of client inputs, and each client input has a button on the right to add a new client below. Using Tailwind CSS, I set up a div for these inputs ...
Skuldakn's user avatar
0 votes
0 answers
3 views

Auto filling a filed from another separate field when a checkbox is checked

function billingFunction (){ if(document.getElementById('same').checked){ document.getElementById('billingName').setAttribute('value') = document.getElementById('shippingName').value document....
Jaypdollar 's user avatar
0 votes
1 answer
40 views

Limit spaces in input HTML field

I'm writing a website using React and I've encountered an interesting problem. I have a simple component in which the user can enter text. This component is implemented using an HTML input field. ...
Paul's user avatar
  • 93

1
2 3 4 5
700