Re: Moving a string from VBScript to JScript
From: Martin Honnen (mahotrash_at_yahoo.de)
Date: 06/15/04
- Next message: Martin Honnen: "Re: webservice.htc, no WSDL"
- Previous message: Viatcheslav V. Vassiliev: "Re: Moving a string from VBScript to JScript"
- In reply to: Roger Withnell: "Moving a string from VBScript to JScript"
- Next in thread: Dave Methvin: "Re: Moving a string from VBScript to JScript"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 15 Jun 2004 13:17:22 +0200
Roger Withnell wrote:
> I'm using:
>
> document.Form1.Text.value = '<%= SurveyUpdateRS("IntraText") %>';
>
> to set a form value from a recordset.
>
> This works fine unless "IntraText" includes a carrier return. Then the
> whole jscript routine fails.
You need to escape cr and lf as '\r' respectively '\n'.
-- Martin Honnen http://JavaScript.FAQTs.com/
- Next message: Martin Honnen: "Re: webservice.htc, no WSDL"
- Previous message: Viatcheslav V. Vassiliev: "Re: Moving a string from VBScript to JScript"
- In reply to: Roger Withnell: "Moving a string from VBScript to JScript"
- Next in thread: Dave Methvin: "Re: Moving a string from VBScript to JScript"
- Messages sorted by: [ date ] [ thread ]