Javascript gurus,
I thought I'd solved the textarea problem, but when I test my 'solution' in Netscape
6.1 and Netscape 4, the Javascript is completely ignored!! I don't get it.
Here's what works well in IE 5.5:
<script language="JavaScript" type="text/javascript"><!--
function replaceTA() {
myform.ta.value = myform.ta.value.replace(/[\r\n][\r\n]/g, "<br>");
}
//-->
</script>
.
.
.
<form....name="myform" onSubmit="return replaceTA()">
Conrad, I tried to implement your solution, but replacing \r\n with chr(10) via the
textarea onChange event produced the string "chr(10)" not the character and if I leave
out the quotes, I get a 'not an object' error. What's the correct syntax to do this?
Also replacing /\\n/g with \n with the form onSubmit event doesn't seem to have an
effect.
I'm sure I'm probably overlooking something basic...any help would be appreciated.
Dina
______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists