S
Simo
I use these two functions for Copy & Paste with buttons in some text area
into a form:
<SCRIPT LANGUAGE="Javascript">
function copy(area){
var temp = eval("document." + area);
aa=temp;
window.clipboardData.setData('Text',aa);
}
function paste(area2){
var temp2 = eval("document." + area2);
bb=window.clipboardData.getData('Text');
temp2 = bb;
}
</SCRIPT>
</head>
If i call the Copy function (dinamically with php) with a parameter like:
form1.text1.value it works fine, but with the Paste function doesn't work.
I think the problem is in the evaluate statement of the parameter area2.
Anyone can help me ?? Thanks
Simone
into a form:
<SCRIPT LANGUAGE="Javascript">
function copy(area){
var temp = eval("document." + area);
aa=temp;
window.clipboardData.setData('Text',aa);
}
function paste(area2){
var temp2 = eval("document." + area2);
bb=window.clipboardData.getData('Text');
temp2 = bb;
}
</SCRIPT>
</head>
If i call the Copy function (dinamically with php) with a parameter like:
form1.text1.value it works fine, but with the Paste function doesn't work.
I think the problem is in the evaluate statement of the parameter area2.
Anyone can help me ?? Thanks
Simone