Re: Moving a string from VBScript to JScript

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Martin Honnen (mahotrash_at_yahoo.de)
Date: 06/15/04


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/