RE: JAVASCRIPT and textarea

2004-09-23 Thread Ryan Duckworth
Yes.  This is possible.   1.  Create 2 hidden s on the page. 2.  Use code similar to this to copy to temp area, fix, then copy back to original area. fullCleanWorkSpace.innerHTML =  '' + aeObject.DOM.body.innerHTML + ''; removeAllTags(fullCleanWorkSpace,fullCleanWorkSpace2); aeObject.DOM.bod

RE: JAVASCRIPT and textarea

2004-09-23 Thread Ryan Duckworth
Yes.  This is possible.   1.  Create 2 hidden s on the page. 2.  Use code similar to this to copy to temp area, fix, then copy back to original area. fullCleanWorkSpace.innerHTML =  '' + aeObject.DOM.body.innerHTML + ''; removeAllTags(fullCleanWorkSpace,fullCleanWorkSpace2); aeObject.DOM.bod

Re: JAVASCRIPT and textarea

2004-09-23 Thread Asim Manzur
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 n

Re: JAVASCRIPT and textarea

2004-09-23 Thread Asim Manzur
Micheal will you please give me an example how to replace i.e. you mean to do the server side validation??? I need the client side validation. Ryan, does DOM works in mac as well?? thanks >I agree.  Simply replace after the submit. > >Also, you can strip complicated things out using DOM. > >We u

RE: JAVASCRIPT and textarea

2004-09-22 Thread Ryan Duckworth
I agree.  Simply replace after the submit. Also, you can strip complicated things out using DOM. We use the DOM to strip out HTML tags such as: Removing FONT tag. if(child.tagName.toUpperCase() == 'FONT'){ child.removeNode(); } Good luck. Ryan Duckworth Macromedia ColdFusion Certified Profe

RE: JAVASCRIPT and textarea

2004-09-22 Thread Tangorre, Michael
> From: Asim Manzur [mailto:[EMAIL PROTECTED] > I have form with TextArea  and _javascript_, which doesn't > allow user to hit enter key and "|". > > The below code is working fine, but if user cut/paster from > word or notepad then textbox accept the enter key and pipe. > > Can someone advise

RE: JAVASCRIPT and textarea

2004-09-22 Thread Dawson, Michael
Instead of checking for these characters while they are typing or pasting, why not just replace them with nothing when they submit the form? From: Asim Manzur [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 22, 2004 3:16 PM To: CF-Talk Subject: _javascri

JAVASCRIPT and textarea

2004-09-22 Thread Asim Manzur
I have form with TextArea  and _javascript_, which doesn't allow user to hit enter key and "|". The below code is working fine, but if user cut/paster from word or notepad then textbox accept the enter key and pipe. Can someone advise anyway to prevent that??
function kH(e) {
var pK = d