Jordan, searches for “JavaScript Clipboard” produce a lot of results that use 
code like the following:

 

<textarea id="holdtext" style="display:none"></textarea>

 

<script type="text/javascript">

    function toClipboard(message) {

        holdtext.innerText = message;

        var copied = holdtext.createTextRange();

        copied.execCommand("Copy");

    }

</script>

 

In my IE8 dev machine this ugly code actually works, but I seriously doubt it 
will be browser neutral. Anyway, it will be suitable for the upcoming demo. One 
of the C++ guys reckons he’s crash hot with JavaScript, so I’ll tell him this 
works and I’ll leave it to him to do magic with the script and the XML I’ve 
placed on the Clipboard.

 

I’ll let you know if I find anything more generally useful on the subject.

 

Greg

_______________________________________________
ozsilverlight mailing list
[email protected]
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight

Reply via email to