<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>What's <FONT face=Arial size=2>the extension on the
page</FONT>? That's going to determine what language </FONT></DIV>
<DIV><FONT face=Arial size=2>is used on the server-side. </FONT><FONT
face=Arial size=2>ASP's replace statement would be something like:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>REPLACE(Variable, vbCRLF, "<br
/>")</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>So say if I was retrieving something from the
database (text in your example) </FONT></DIV>
<DIV><FONT face=Arial size=2>and I wanted to write it out with line-breaks, I
would first have to have it defined </FONT></DIV>
<DIV><FONT face=Arial size=2>as a variable.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>DIM strText</FONT></DIV>
<DIV><FONT face=Arial size=2>strText = "Some text that might have a line
break"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>strText = REPLACE(strText, vbCRLF, "<br
/>")</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Response.Write strText</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I would assume though that your program would have
something built in </FONT></DIV>
<DIV><FONT face=Arial size=2>allowing you to insert line breaks.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Chris Tifer</FONT></DIV>
<DIV><FONT face=Arial size=2><A
href="http://www.emailajoke.com">http://www.emailajoke.com</A></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=bill.marriott@agric.nsw.gov.au
href="mailto:bill.marriott@agric.nsw.gov.au">bill.marriott@agric.nsw.gov.au</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=javascript@LaTech.edu
href="mailto:javascript@LaTech.edu">javascript@LaTech.edu</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, March 12, 2003 3:51
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Javascript] coding for the
<enter> key</DIV>
<DIV><BR></DIV><BR><FONT face=sans-serif size=2>Hi Chris,</FONT> <BR><BR><FONT
face=sans-serif size=2>I'm using an Informix product called App Page
Builder</FONT> <BR><FONT face=sans-serif size=2>and I guess this is not
strictly a javascript question.</FONT> <BR><BR><FONT face=sans-serif size=2>I
would be interested to see a example of the full ASP replace statement because
it may work with Informix as well.</FONT> <BR><BR><FONT face=sans-serif
size=2>It seems strange to me that the form element can read the format but
the page can't.</FONT> <BR><BR><BR><BR><FONT face=sans-serif size=2>Bill
Marriott<BR>Analyst/Programmer<BR>Information Technology<BR>NSW
Agriculture<BR>Orange<BR><BR>Ph. 02 6391 3657<BR>Fax. 02 6391
3290<BR></FONT><BR><BR><BR>
<TABLE width="100%">
<TBODY>
<TR vAlign=top>
<TD>
<TD><FONT face=sans-serif size=1><B>"Chris Tifer"
<christ@saeweb.com></B></FONT> <BR><FONT face=sans-serif
size=1>Sent by: javascript-admin@LaTech.edu</FONT>
<P><FONT face=sans-serif size=1>13/03/2003 07:35 AM</FONT> <BR><FONT
face=sans-serif size=1>Please respond to javascript</FONT> <BR></P>
<TD><FONT face=Arial size=1> </FONT><BR><FONT
face=sans-serif size=1> To:
<javascript@LaTech.edu></FONT> <BR><FONT
face=sans-serif size=1> cc:
</FONT> <BR><FONT face=sans-serif size=1>
Subject: Re: [Javascript]
coding for the <enter> key</FONT></TR></TBODY></TABLE><BR><BR><BR><FONT
face=Arial size=2>What do you mean by "written directly from the server"? What
language </FONT><BR><FONT face=Arial size=2>are you using? With ASP you could
use REPLACE on vbCRLF... Or is </FONT><BR><FONT face=Arial size=2>this
stricly through JavaScript where a form is submitted and you are parsing
</FONT><BR><FONT face=Arial size=2>the QueryString using JavaScript?</FONT>
<BR><FONT face="Times New Roman" size=3> </FONT> <BR><FONT face=Arial
size=2>Chris Tifer</FONT> <BR><A href="http://www.emailajoke.com/"><FONT
face=Arial color=blue size=2><U>http://www.emailajoke.com</U></FONT></A>
<BR><FONT face="Times New Roman" size=3> </FONT> <BR><FONT
face="Times New Roman" size=3>----- Original Message ----- </FONT><BR><FONT
face="Times New Roman" size=3><B>From:</B> </FONT><A
href="mailto:bill.marriott@agric.nsw.gov.au"><FONT face="Times New Roman"
color=blue size=3><U>bill.marriott@agric.nsw.gov.au</U></FONT></A><FONT
face="Times New Roman" size=3> </FONT><BR><FONT face="Times New Roman"
size=3><B>To:</B> </FONT><A href="mailto:javascript@LaTech.edu"><FONT
face="Times New Roman" color=blue
size=3><U>javascript@LaTech.edu</U></FONT></A><FONT face="Times New Roman"
size=3> </FONT><BR><FONT face="Times New Roman" size=3><B>Sent:</B> Wednesday,
March 12, 2003 3:20 PM</FONT> <BR><FONT face="Times New Roman"
size=3><B>Subject:</B> [Javascript] coding for the <enter> key</FONT>
<BR><BR><FONT face=sans-serif size=2><BR>Hi Everyone,</FONT><FONT
face="Times New Roman" size=3> <BR></FONT><FONT face=sans-serif
size=2><BR>Does anyone know how to get HTML to format an embedded carriage
return.</FONT><FONT face="Times New Roman" size=3> <BR></FONT><FONT
face=sans-serif size=2><BR>eg. 1. something</FONT><FONT face="Times New Roman"
size=3> </FONT><FONT face=sans-serif size=2><BR> 2.
something else</FONT><FONT face="Times New Roman" size=3> </FONT><FONT
face=sans-serif size=2><BR> 3. something
different</FONT><FONT face="Times New Roman" size=3> <BR></FONT><FONT
face=sans-serif size=2><BR>ends up as </FONT><FONT face="Times New Roman"
size=3><BR></FONT><FONT face=sans-serif size=2><BR> 1.
something</FONT><FONT face="Times New Roman" size=3> </FONT><FONT
face=sans-serif size=2><BR> 2. something else</FONT><FONT
face="Times New Roman" size=3> </FONT><FONT face=sans-serif size=2><BR>
3. something different</FONT><FONT face="Times New Roman"
size=3> <BR></FONT><FONT face=sans-serif size=2><BR>if it is loaded from
server data into a text area form element , but if it is just written to
the page directly from the server it ends up as </FONT><FONT
face="Times New Roman" size=3><BR></FONT><FONT face=sans-serif
size=2><BR> 1. something 2. something else 3.
something different</FONT><FONT face="Times New Roman" size=3>
<BR></FONT><FONT face=sans-serif size=2><BR>which is not as pretty</FONT><FONT
face="Times New Roman" size=3> <BR></FONT><FONT face=sans-serif
size=2><BR>thanks</FONT><FONT face="Times New Roman" size=3> <BR></FONT><FONT
face=sans-serif size=2><BR>Bill Marriott<BR>Analyst/Programmer<BR>Information
Technology<BR>NSW Agriculture<BR>Orange<BR><BR>Ph. 02 6391 3657<BR>Fax.
02 6391 3290<BR><BR><BR>This message is intended for the addressee named and
may contain confidential information. If you are not the intended recipient or
received it in error, please delete the message and notify sender. Views
expressed are those of the individual sender and are not necessarily the views
of their organisation.</FONT> <BR><BR><FONT face=sans-serif
size=2><BR><BR>This message is intended for the addressee named and may
contain confidential information. If you are not the intended recipient or
received it in error, please delete the message and notify sender. Views
expressed are those of the individual sender and are not necessarily the views
of their organisation.</FONT></BLOCKQUOTE></BODY></HTML>