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);
}
> 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 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 Professional
> >Uhlig Communications
> >10983 Granada Lane
> >Overland Park, KS 66211
> >(913) 754-4272
> >
> > _____
> >
> >From: Tangorre, Michael [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, September 22, 2004 3:58 PM
> >To: CF-Talk
> >Subject: RE: _javascript_ and textarea
> >
> >
> >
> >
> >You handle the keyCode event but not the change (onChange) event
> which
> >you need to check also to ensure that a copy past fires off the
> routine
> >needed to validate the entry into the box.
> >
> >Michael T. Tangorre
> >
> >
_____
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]
- JAVASCRIPT and textarea Asim Manzur
- RE: JAVASCRIPT and textarea Dawson, Michael
- RE: JAVASCRIPT and textarea Tangorre, Michael
- RE: JAVASCRIPT and textarea Ryan Duckworth
- Re: JAVASCRIPT and textarea Asim Manzur
- RE: JAVASCRIPT and textarea Asim Manzur
- RE: JAVASCRIPT and textarea Ryan Duckworth
- RE: JAVASCRIPT and textarea Ryan Duckworth