473,394 Members | 1,737 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

How to capture input value while user gives using ctrl+v???

58
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
Aug 20 '09 #1
6 3734
Dormilich
8,658 Expert Mod 8TB
like any other input:
Expand|Select|Wrap|Line Numbers
  1. var text = input_element.value;
Aug 20 '09 #2
gsuns82
58
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
Aug 20 '09 #3
Dormilich
8,658 Expert Mod 8TB
@gsuns82
why trying to get crtl+v if you can get the content from the element, where this content was just pasted much easier?
Aug 20 '09 #4
gsuns82
58
can u give me some sample code???it would be great if it could get the value while the user pastes it.

Regards,
Sundar
Aug 20 '09 #5
Dormilich
8,658 Expert Mod 8TB
@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, …)
Aug 20 '09 #6
gsuns82
58
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
Aug 21 '09 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

1
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...
9
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...
6
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...
17
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...
0
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...
1
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...
4
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) {
0
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...
0
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...
0
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
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
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,...
0
Oralloy
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,...
0
jinu1996
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...
0
tracyyun
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.