hi all,
i am new bee to script and some how i find code to clear data of clipboard it is working fine for IE browser not for Firefox can any one help me out what all we need to change in order to work it for Firefox it is preety urgent.................
function fnClearData(){
var content = clipboardData.getData("Text");
window.clipboardData.clearData('HTML');
document.onmousedown = fnDisable
}
Thanks in advance
11 18240
hi all
the below statement is working well for IE but not for Firefox how to use it for Firefox pls any one help on this issue it is urgent...............
window.clipboardData.clearData();
thnks in advance,
rakesh
but can any one suggest which is the alternative method i need to use for that method in order to work it for Firefox browser
hi all i have two text boxes here
Enter Email:
Confirm Email:
i have a requirement stating that i should not enable user to copy the email from first text box and paste it in other.
so i have used a technique of clearing a clipboard that has worked fine until i have tested for IE when i tested with Firefox it is not working i used the code to clear clipboard is
window.clipboardData.clearData();
now wht should i do to work it for Firefox..............................
and one more ?? is did i used the correct way for my reqiurement..................
pls suggest me and also suggest me wht is the technique i have to use this is very urgent pls help me out in this issue........................
thanks in advance,
rakesh
I have merged all your threads because they were on the same topic.
Please do not double/triple post.
What is clipboardData? Is that the actual clipboard on the OS?
If so, you can't touch that with Firefox and rightly so. Are you using ActiveX to get the clipboard data?
Think of an alternative, e.g. detect key presses on the text field. If it automatically reached the same as the first text box, they must have copied the data. If it is incrementing then you know that they haven't simply copied. Use the onkeyup event handler.
The reason why your approach is wrong is that the user may not have copied the email, but some other important data.
What is clipboardData? Is that the actual clipboard on the OS?
If so, you can't touch that with Firefox and rightly so. Are you using ActiveX to get the clipboard data?
Think of an alternative, e.g. detect key presses on the text field. If it automatically reached the same as the first text box, they must have copied the data. If it is incrementing then you know that they haven't simply copied. Use the onkeyup event handler.
The reason why your approach is wrong is that the user may not have copied the email, but some other important data.
thankyou sir,
but it is not that much clear to me if i use onkeyup handler i have to handle lot of things with respect to copying, because user may use his tab key to come to other text box then it is also one of the key up event and can u send me the code how to handle this situation hoping for reply thank u in advance
On your element, call a function onkeyup:
[HTML]<input type="text" name="email2" onkeyup="checkEmail()">[/HTML] Then in checkEmail check that they are not the same. Use a global variable for this. If they are the same in one go, that means the user has copied and pasted. If they are not the same, but the first few characters are the same, then you know that they are typing the email again.
On your element, call a function onkeyup:
[HTML]<input type="text" name="email2" onkeyup="checkEmail()">[/HTML] Then in checkEmail check that they are not the same. Use a global variable for this. If they are the same in one go, that means the user has copied and pasted. If they are not the same, but the first few characters are the same, then you know that they are typing the email again.
thank u but i have implemented it in a different way
thanks for u r guidance
thank u but i have implemented it in a different way
thanks for u r guidance
Oh well, at least you got it working.
thank u but i have implemented it in a different way
thanks for u r guidance
Can you please let us know in which way you implemeted this? Now I am facing the same problem & would like to hear from you in resolving this issue.
Thank you,
Murthy.
Welcome to TSDN!
Can you please let us know in which way you implemeted this? Now I am facing the same problem & would like to hear from you in resolving this issue.
Can you explain what you're trying to do? As explained earlier, you can't clear the clipboard in Firefox or any other non-IE browser.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: LG |
last post by:
Just have a question with regards to the clipboard, and how to read what
other applications (Adobe InDesignCS) place in the clipboard.
I am currently in the process of creating a booklet from a...
|
by: Du Dang |
last post by:
I use this in ie and it works just fine. Hoever when i use it in opera, the
browser have a problem with the "createTextRange" bit.
=============================
var txtHandler =...
|
by: Tim Frawley |
last post by:
I have converted a VB6 application to VB.NET. The old application
made extensive use of the Clipboard for copying an Image Name so that
it could be pasted into the image capture app when the user...
|
by: PMA |
last post by:
Hi all,
I am porting a web application from IE 6.0 to FireFox 1.5. I have
solved almost all compatibility issues (quite a lot but not too bad)
except two of them :
1) Clipboard access thru'...
|
by: Dave Booker |
last post by:
My Clipboard is getting into some very confused state where I can't even
clear it. No applications can access the clipboard in this state, and if I
run Clipboard.Clear() I get:
...
|
by: jen |
last post by:
this works fine it i operate on one .doc file; however, if i process
multiple files, i get the following error: Requested Clipboard
operation did not succeed.
i suspect i need to clear my...
|
by: Steve Richter |
last post by:
I am using the window.clipboardData.getData javascript method to copy
from the clipboard.
<SCRIPT LANGUAGE="JavaScript">
function ShowClipBoard()
{
var data =...
|
by: JohnW-Mpls |
last post by:
I'm new to JS.
I have some scripts that include a variable that I'd like to have js
copy to the Window's Clipboard. Is there a way to do this?
FWIW, I have the big O'Reilly book on JS but...
|
by: Vighneswar |
last post by:
Hi All
Please let me know is there any way to clear the address bar history ( Typed
URLs) of Firefox browser programmatically. Deleting 'index.dat' under
profiles folder of firefox will delete...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
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: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |