THanks so much for the help Jeff! I'll give this a go later today!
><SCRIPT type="text/javascript">
>function htmltotext(){
>document.myform.plaintext.value = mycontent.innerHTML;
>}
>
>function text2HTML(){
>mycontent.innerHTML = document.myform.plaintext.value;
>}
></SCRIPT>
>
><div id="mycontent" style="overflow: scroll" CONTENTEDITABLE></div>
><input type="button" value="copy to text box"
>onclick="htmltotext();"></button>
><form name="myform">
><textarea id="plaintext" name="plaintext" cols="80" rows="6"></textarea>
><input type="button" name="txt2html" value="copy to HTML box"
>onclick="text2HTML();">
></form>
>
>HTH,
>
>Jeff Garza
>Manager, Phoenix CFUG
>Certified ColdFusion MX Developer
>[EMAIL PROTECTED]
>
>
>
>-----Original Message-----
>From: Rafael Alan Bleiweiss [mailto:[EMAIL PROTECTED]
>Sent: Friday, August 01, 2003 11:27 AM
>To: CF-Talk
>Subject: RE: CF tag for highlighting text in a textfield?
>
>
>At 11:47 AM 8/1/03, you wrote:
> >editable DIV to hold the formatted text, and then when you go to
>submit,
> >copy the innerHTML or innerText value from the div to a hidden field...
>
>Just a pointer please - how to copy the innertext to a hidden field?
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community.
http://www.fusionauthority.com/ads.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4