1. Create 2 hidden <DIV>s on the page.
2. Use code similar to this to copy to temp area, fix, then copy back
to original area.
fullCleanWorkSpace.innerHTML = '<div>' + aeObject.DOM.body.innerHTML +
'</div>';
removeAllTags(fullCleanWorkSpace,fullCleanWorkSpace2);
aeObject.DOM.body.innerHTML = fullCleanWorkSpace2.innerHTML;
More DOM information can be found here:
http://msdn.microsoft.com/library/default.asp?url=""> /reference/methods/removenode.asp
Good luck!
Ryan Duckworth
Macromedia ColdFusion Certified Professional
Uhlig Communications
10983 Granada Lane
Overland Park, KS 66211
(913) 754-4272
_____
From: Asim Manzur [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 23, 2004 11:08 AM
To: CF-Talk
Subject: Re: _javascript_ and textarea
here is the function.
It like that fuction is working, but only problem I am having that I
need to change the value in the textarea as well so user can see that
what his output will be.
And those textarea(s) are dynamic.
so I am passing two values to the function. rcv=what ever they typed and
nm = the name of the textarea
now when I do dest = removebr that should be
document.theForm.story1.value = removebr
and its not working. is there anyother way to do the same????
function Remove(rcv, nm){
dest = "document.theForm." + nm + ".value";
removebr = rcv.replace(/[\n\r]/g," ");
dest = removebr;
alert("this is dest\n" + dest);
}
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

