|
Subject: RE: [xsl] Problem Replacing the value of a text area using RegX. From: "Michael Kay" <mhk@xxxxxxxxx> Date: Wed, 25 Aug 2004 09:33:02 +0100 |
> Sample code in xsl:
Sorry, but I see no code in XSL.
Michael Kay
>
> function replaceStringDemo() {
> //Detail demo
> regX = new RegExp("\@@@","g") ;
>
> document.form1.Detail.value=document.form1.Detail.value.replac
> e(regX,"\n");
> regX = new RegExp('@lt;',"g");
> document.form1.Detail.value.replace(regX,'<');
> regX = new RegExp('@gt;',"g");
> document.form1.Detail.value.replace(regX,'>');
>
> //pager demo
> regX = new RegExp("\@@@","g") ;
>
> document.form1.Outline.value=document.form1.Outline.value.repl
> ace(regX,"\n");
> regX = new RegExp('@lt;',"g");
> document.form1.Outline.value.replace(regX,'<');
> regX = new RegExp('@gt;',"g");
> document.form1.Outline.value.replace(regX,'>');
> }
>
>
>
> -------------------------------------------------------------
> In text Area the text looks something like this..
>
> .blank2 ( each time I replace the changed text in the text
> area I get an additional blank space added to it)
>
> .insert Info
> .insert restofdata
>
> ---------------------------------------------
>
>
> I have checked my code, Looks like it behaving okay except for this..
>
> Your help is highly appreciated.
>
> Thanks
> Ashfaq
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] Problem Replacing the value o, Mohammed Ashfaq S | Thread | [xsl] XSLT 2.0 book in print, David . Pawson |
| [xsl] XSLT 2.0 book in print, David . Pawson | Date | Re: [xsl] 2 way conversion between , Oleg Tkachenko |
| Month |