I use these two functions for Copy & Paste with buttons in some text area
into a form:
<SCRIPT LANGUAGE="Javas cript">
function copy(area){
var temp = eval("document. " + area);
aa=temp;
window.clipboar dData.setData(' Text',aa);
}
function paste(area2){
var temp2 = eval("document. " + area2);
bb=window.clipb oardData.getDat a('Text');
temp2 = bb;
}
</SCRIPT>
</head>
If i call the Copy function (dinamically with php) with a parameter like:
form1.text1.val ue 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="Javas cript">
function copy(area){
var temp = eval("document. " + area);
aa=temp;
window.clipboar dData.setData(' Text',aa);
}
function paste(area2){
var temp2 = eval("document. " + area2);
bb=window.clipb oardData.getDat a('Text');
temp2 = bb;
}
</SCRIPT>
</head>
If i call the Copy function (dinamically with php) with a parameter like:
form1.text1.val ue 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
Comment