Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
|
****, I was sure I had replied this morning...
Chris, the "copy to clipboard" is IE only anyway, so don't bother too much on css compliance
As for RiverAce, try this:
HTML Code:
<html>
<body>
<script language='Javascript'>
function doact(elm){
cp = elm.createTextRange();
cp.execCommand("Copy");
}
</script>
<form name="frm" method="post">
<textarea id="text1" name="text1" cols="100" rows="100" style="display:none">Some Text lala</TEXTAREA>
<input onclick="doact(document.getElementById('text1'))" type="button" value="Host Headers">
</form>
</body>
</html>
My guess would be that you cannot focus() a hidden element, and that the script stops there.
But, as it's IE, it's almost impossible to debug (I mean, real debug, with breakpoints, stack trace, watches and such!).
__________________
Only a biker knows why a dog sticks his head out the window.
Last edited by tripy; 11-18-2009 at 08:04 AM..
|