Questions tagged [input]

1

votes
1

answer
1.7k

Views

jQuery: Replace attr value placeholder with user input from text input

Using .replaceWith() and .val() I was able to replace the title but when trying to access the placeholder .attr() of the input, I am unable to replace it. Here is what I have: Title $("input.button").click(function(){ var newText = $("input.newText").val(); $("p.title").replaceWith(newText); var new...
pn03
1

votes
2

answer
1.6k

Views

Unity3d Input field text cut off when getting from script?

When [email protected] is entered into the input field, I am able to get the value "[email protected]" from MonoDevelop. However, when [email protected] is entered into the input field, I am only able to get the value "[email protected]". In this case, the characters "extra" seem to be cut...
Ama Mos
1

votes
0

answer
15

Views

Multiple Datepicker on form

My question may be repetitive but please go through once and guide. I just need multiple input datepicker for the user. I did change my class to datepicker and call .datepicker in jquery function. But when I use other class form-control it didn't work. I am unable to call different ids to the datepi...
himanshoo
1

votes
1

answer
22

Views

Assign a integer value to character

what is the best method to take a user input of a character and convert this to a specific number? Then store this number to an array. I have a bit of code that I have re-written multiple times and so far have not been able to get it to work. printf("Row: "); scanf("%d",&fire[0]); fire[0]--; I would...
John Lucey
1

votes
2

answer
3.5k

Views

Catching Keyboard Interrupt with Raw Input

I have a bit of python code to to try and make raw_input catch keyboard interrupts. If I run the code in this function it works perfectly fine. But if I run it in my program, the print statement is never made, indicating that the keyboard interrupt is not caught. The program attempts to exit and fa...
David
0

votes
1

answer
17

Views

Input for range

Not quite sure what is wrong with my code but it is not printing in one straight column. It works when you say cells(i,j).copy range(i,j).pastespecial But throws out values in cells which are completely random when you request a range of values, like set rng=Application.inputbox(" Please select rang...
Tech Tutors
1

votes
1

answer
982

Views

Get the full number using intlTelInput

I am using the demo code for intlTelInput provided here I am able to get the dial code using following var intlNumber = $("#phone").intlTelInput("getSelectedCountryData"); But i am not able to get the full number i.e. "dialcode + number entered by user" from the #phone text box.
Sachin Pakale
0

votes
0

answer
3

Views

how do i make it so that it takes the variable input and create a text file when it is done

i'm trying to make a program that lets you write something like a book or a todo list this i an idea i just had SET /P line1="" SET /P adlne=[add another line? Y or N?] IF "adlne"=="Y" GOTO :a IF "adlne"=="N" GOTO :b :a SET /P line2="" SET /P adlne=[add another line? Y or N?] IF "adlne"=="Y" GOTO...
kill griff
1

votes
1

answer
8

Views

padding Soft input resize adjust in xamarin android

I'm Trying to resize my screen on xamarin android when soft input appears. but my problem is i want to set padding for my view in resize mode. for example i want my view has 10 padding from top when soft input appears. but it fill my screen. I'm using this code after by loadApplication method Xamari...
mohammad kamali
1

votes
2

answer
51

Views

Storing user input in array not starting from 0

My problem is that in my code below, in OPTION 2, if the user Store = 1 and the item details overwrites the item[0] with the new details. I want it to store in item[7] and not to overwrite the current information. The Item is found in constructor method in another class. Please see how i can fix thi...
Rohan
1

votes
5

answer
40

Views

Prevent pasting wrong values into Input number type

I have an Input element with type = "number", which is supposed to only accept 0,1,..,9 and "." Per default you can also wrie +, - ans soem other characters which I prevent with EventListener "keydown" and keyCodes. It works fine. But how can I prevent the user from pasting or drag and dropping some...
MichaelK
1

votes
3

answer
27

Views

How do I safely scan in an integer in a while loop? [duplicate]

This question already has an answer here: How to handle infinite loop caused by invalid input (InputMismatchException) using Scanner 5 answers I want to scan in an integer and put it in a while loop so that if an invalid entry is entered the program will ask to enter another integer but when I run...
Dawson Chung
0

votes
0

answer
4

Views

Unity - How to update input fields via loop in script

I'm new at Unity and wants to make a Sudoku Solver. I've designed the input grid using input fields in the canvas. These input fields can display the numbers I generate in my grid script which will held the solving logic. My problem is that I want to update the input fields inside the loop to displa...
Hannes Kruger
-2

votes
2

answer
19

Views

Why does this for loop not detect if the word entered by a user is sorted alphabetically?

I am trying to write a program such that it accepts a word as input and determine if its letters are in alphabetical order. My code: words = str(input("Enter a word")) #Coal for i in words: if not sorted: print("Letters not in alphabetical order") else: print("Letters are in alphabetical order") How...
Joey Tribhuvan
0

votes
1

answer
13

Views

writing variables to the sheet PHP [duplicate]

This question already has an answer here: Html form posting, no data passed on [duplicate] 2 answers Does form data still transfer if the input tag has no name? 3 answers Iam staring with PHP. I'm trying to enter data into the website, make some calculations, and write it on website Typa A value...
BigBadSheep
0

votes
1

answer
13

Views

Displaying list dynamically in react when user click on input filed

I am trying to display list dynamically when user click on input box. for that I took onChange event handle on input box and setting state to new data when user click on input box. but it is not giving me desired result. can anyone help me to solve the issue ? When user click on input box then only...
pooja gajera
2

votes
4

answer
106

Views

Why doesn't my layout move up enough with “adjustPan”?

I had some issues using adjustPan in my app, as it is not working as it is supposed to do. Some other users also experienced this problem, so I think it's important to share this issue (Layout doesn't move up enough when clicking EditText). Note: I am using Android Studio and I'm using an "Instant...
Devealte
2

votes
2

answer
16

Views

How to Write User Input to a List Prolog

I am trying to write the user input into a list but am running into two problems. Using this code getInput([Symptom|List]):- writeln('Enter Element:'), read(Symptom), dif(Symptom,stop), getInput(List). getInput([]). I am able to get symptoms from the user but the output shows the first user input as...
user10876930
1

votes
0

answer
4

Views

WordPress User Registration with Custom Fields

I am currently working on a WordPress website in which it is optional for a user to create an account and save their information via Gravity Forms. (Address, billing address, phone number, email, and name.) This information is then supposed to be used to "dynamically populate" any forms, where that...
user11058173
1

votes
1

answer
11.6k

Views

Angular 5 file upload: Failed to set the 'value' property on 'HTMLInputElement'

I have a form for uploading a file in an angular 5 app, and as I have copied it exactly from a code I had written a while ago, I can swear it had worked before. Here is my HTML code: File: Please provide a photo. The file is too big and won't uploaded. Maximum allowed size is 500kb. Notes Submit Ca...
behrooz dalvandi
1

votes
2

answer
32

Views

How to disable input fields per row if its checkbox is checked?

I couldn't find a solution to my particular problem, although there were a lot of topics about similar issues. My code disables all the fields my table contains instead of disabling only a row per checked checkbox. -- Select -- ... -- Select -- ... My jQuery code: $("input:checkbox[name^='disableRow...
Jurgen
-1

votes
1

answer
17

Views

Why do I get “TypeError: cannot concatenate 'str' and 'int' objects”? [duplicate]

This question already has an answer here: How can I concatenate str and int objects? 3 answers When I enter my variable into the line I get the TypeError. num = int(input("Enter a number")) print("You are " + num * 7 + " dog years old") I expect it to just take the input then multiply it by 7 and...
Foster Bailey
0

votes
1

answer
25

Views

how to call the python function by passing the output of the function as input to the function

I need to write a python function call logic that calls the python function multiple times. let's say for example I have a script test.py I'm running the script like python test.py val val=sys.argv[1] def check(param, val): . . . if val == valid.text: print '{:10s}:{:10}'.format(param, all.text) val...
dubru
0

votes
0

answer
25

Views

Change user console input as they type in C

I am writing a C program which takes user input. The user input requires some special characters which I want the reserve special keys on the keyboard for. To keep it simple, suppose I want any occurrence of the symbol \ to be replaced with λ. So that if the user types \x.x, they see λx.x. To clar...
Luke Collins
1

votes
0

answer
46

Views

Input Rangeslider update progress keeps triggering input event on Howler js seek()

A: I want to update the progress bar & handle of my audio player as the audio plays. B: I also want to drag the handle to different positions of the audio. I'm using Howler.js for my audio, and rangeslider.js for my input range slider. Currently i can get both functions A&B to work, but not tog...
Luna
1

votes
2

answer
118

Views

Do nothing on empty input - combinate with dynamic action on form

What i want is when you type something in input, depending what button you click, he will change path of action in form. I am at half way to achieve this (i think)....check out what i make till now function OnSubmitForm() { if(document.pressed == 'Log As') { document.myform.action ="log-as.html"...
Stefan
1

votes
4

answer
2.1k

Views

html5 input type date format to mm/dd/yyyy causing issue in chrome

I am using following input type in my form, but in chrom it shows datepicker format with d-m-Y, How can I solve this problem
Shahid Rafiq
1

votes
2

answer
2k

Views

Input an array of unknown size in java

How do I input an array whose length may vary? The input is space delimited and ends when I press enter public class ArrayInput { public static void main(String args[]){ ArrayList al = new ArrayList(); Scanner sc = new Scanner(System.in); while(){//what condition to use here? al.add(sc.nextInt()); }...
Tanvi
1

votes
1

answer
778

Views

How to compose syllable blocks with Hangul Jamo

I'm working on a project that would require the input of old Hangul syllable blocks (i.e. Hangul syllable blocks that would utilize obsolete characters such as ㆅ and ㅿ, located in the Hangul Compatibility Jamo unicode block), but I've been having quite a difficult time displaying the blocks as w...
yasmine-chanel
0

votes
0

answer
10

Views

C++ program not inputting into a file

This is what I currently have: #include #include #include using namespace std; int main(){ fstream bookings("Schedule.txt"); fstream magicians("Magicians.txt"); fstream holidays("Holidays.txt"); //already tested to make sure these are open & they are string test; string holiday; bookings >> test;...
david
0

votes
0

answer
27

Views

How can I read from a file a specific string based on user input

I have a text file that lists disk drive details. I want to be able to input a string (e.g. 0:1:7) and have all the lines below that (up to 25 lines) printed to the screen (or to another file). The problem is that there are 2 lines in the file that contain 0:1:7 (one line contains 0:1:7 only, the o...
1

votes
1

answer
6k

Views

how do I Compare 2 dates in html5?

This is my code. I want startdate does not exceed endDate, is there a way to compare dates without using jquery ? like in asp CompareValidator
anthony levano
1

votes
2

answer
389

Views

Input placeholder that changes every few seconds

I'm looking for a solution that allows the placeholder to change every 2 seconds to predetermined other placeholders. Such as "John" "Sally"
kyleskelly
1

votes
3

answer
1k

Views

How to Use sendkeys when input type is number with Chrome

HTML PROTRACTOR TEST CODE let usern: ElementFinder = element.all(by.css('.text-input')).get(0); usern.sendKeys('error'); expect(usern.getAttribute("value")).toEqual("error"); browser.sleep(500); usern.clear(); browser.sleep(1000); usern.sendKeys('12345'); The element is found but no text is entered...
Mengxi Wang
1

votes
2

answer
35

Views

Program goes berserk after bad input (C)

I have a function that is supposed to get a number from stdin. It's supposed to check whether it's a valid number and optionally set it between a specific range. If the input is reasonably long (say 10 chars), then the function prints the error message and resets the loop, everything works as intend...
Mark Ceitlin
0

votes
1

answer
19

Views

How to constantly monitor user input in a WinForm application

In my WinForm application I need a login system to enable/disable some functionality. This login is made using a magnetic card readed by a USB card reader that works in Keyboard emulation. If I force the user to select a textbox and then swipe the card I can receive the code in the textbox and then...
Andrea
1

votes
2

answer
124

Views

Is there something like the “TeX input method” in vim?

Emacs has a feature called the TeX input method: you can input unicode symbols by typing the associated (La)TeX macro. For example, typing \lambda gives λ. Is there a package that gives a similar functionality in vim?
chrbr
1

votes
2

answer
650

Views

How to read a list of numbers into an Array in Go

I want to read a list of numbers given by the user into an array and perform operations on them. package main import "fmt" func main() { var n,c,i int var a []int fmt.Println("Enter the number of inputs") fmt.Scanln(&n) fmt.Println("Enter the inputs") for i=0 ; i
Manu
1

votes
5

answer
1.9k

Views

html check if input is greater than other input after submit

I have two input fields and want to check if one field is greater than the other. I want to check this before the submit-Button is clicked. Let´s Go Do I need jquery? I want to do this check before checking the submt button.
Alex
1

votes
3

answer
31

Views

Input iterator can be read repeatedly while Output Iterator can only be written once?

I was reading The C++ Programming Language 4th edition by Bjarne Stroustrup. In the iterator chapter (Chapter 31.1.2), it says: Input iterator: We can iterate forward using ++ and read each element (repeatedly) using *. Output iterator: We can iterate forward using ++ and write an element once only...
user9607441

View additional questions