Hi all,
Is it possible to read the input value given by the user by ctrl+v,how do we use java script to read the input?
example: If the user selects a value using ctrl+c from some where and enters the value in my form's text field using ctrl+v ,how to fetch this value using javascript?
Thanks in Advance,
Sundar
6 3734
like any other input: - var text = input_element.value;
nope,it cant help me,i want to capture the user input when he/she uses ctrl+v,i have given an example
Regards,
Sundar
@gsuns82
why trying to get crtl+v if you can get the content from the element, where this content was just pasted much easier?
can u give me some sample code???it would be great if it could get the value while the user pastes it.
Regards,
Sundar
@gsuns82
I don’t think it’s necessary to get the value while it is pasted. once it was pasted it’s just as if it were typed in, so you can coose your favourite event (change, blur, submit, keyup, …)
This is the requirement,if i let the white space along with the input that will be taken in account for the maxlength,so thr is no any other goes....anyway i have fixed it using clipboard
Regards,
Sundar
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Scott Shaw |
last post by:
Hi all,
I was wondering if you could help out with this problem that I am having.
What I am trying to do is detect keyboard input in a while loop without
halting/pausing the loop until the key is...
|
by: lkrubner |
last post by:
I've got a function, you can see it below, that is being called
onmouseup in the textarea on my main form. The idea is to find a
selection if possible and store that text in a global variable. I...
|
by: Kobu |
last post by:
Do the "larger" input functions like scanf, gets, fgets use fgetc to
take input or an operating system call function like read() (I know it
could be any "way", but I'm trying to find out how it's...
|
by: Martin Jørgensen |
last post by:
Hi,
Since I'm a newbie I have some small but quick (probably) stupid
questions also :-)
This is my "get_double" function which takes a default argument also of
type double. The function...
|
by: Anonieko |
last post by:
Are there any javascript codes there?
Answer: Yes
On the PageLoad event call InitialClientControsl as follows
/// <summary>
/// This will add client-side event handlers for most of the...
|
by: savithriarul |
last post by:
Hi,
I am trying to capture the CTRL + c event and then get the selected value and then capture the CTRL + V event and paste the selected value in the selected range in the fp webform 2.5. any...
|
by: Newbie |
last post by:
Hello I need to enter a string of the form abc (a string of
characters followed by EOF)
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define MAX 100
int main(void)
{
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |