<br><font size=2 face="sans-serif">Thanks for that Chris.</font>
<br><font size=2 face="sans-serif">I'll see if it will work with Informix and let you know.</font>
<br>
<br>
<br><font size=2 face="sans-serif">Bill Marriott<br>
Analyst/Programmer<br>
Information Technology<br>
NSW Agriculture<br>
Orange<br>
<br>
Ph. &nbsp;02 6391 3657<br>
Fax. 02 6391 3290<br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>&quot;Chris Tifer&quot; &lt;christ@saeweb.com&gt;</b></font>
<br><font size=1 face="sans-serif">Sent by: javascript-admin@LaTech.edu</font>
<p><font size=1 face="sans-serif">13/03/2003 08:04 AM</font>
<br><font size=1 face="sans-serif">Please respond to javascript</font>
<br>
<td><font size=1 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; </font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; To: &nbsp; &nbsp; &nbsp; &nbsp;&lt;javascript@LaTech.edu&gt;</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; cc: &nbsp; &nbsp; &nbsp; &nbsp;</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; Subject: &nbsp; &nbsp; &nbsp; &nbsp;Re: [Javascript] coding for the &lt;enter&gt; key</font></table>
<br>
<br>
<br><font size=2 face="Arial">What's the extension on the page? That's going to determine what language </font>
<br><font size=2 face="Arial">is used on the server-side. &nbsp;ASP's replace statement would be something like:</font>
<br><font size=3 face="Times New Roman">&nbsp;</font>
<br><font size=2 face="Arial">REPLACE(Variable, vbCRLF, &quot;&lt;br /&gt;&quot;)</font>
<br><font size=3 face="Times New Roman">&nbsp;</font>
<br><font size=2 face="Arial">So say if I was retrieving something from the database (text in your example) </font>
<br><font size=2 face="Arial">and I wanted to write it out with line-breaks, I would first have to have it defined </font>
<br><font size=2 face="Arial">as a variable.</font>
<br><font size=3 face="Times New Roman">&nbsp;</font>
<br><font size=2 face="Arial">DIM strText</font>
<br><font size=2 face="Arial">strText = &quot;Some text that might have a line break&quot;</font>
<br><font size=3 face="Times New Roman">&nbsp;</font>
<br><font size=2 face="Arial">strText = REPLACE(strText, vbCRLF, &quot;&lt;br /&gt;&quot;)</font>
<br><font size=3 face="Times New Roman">&nbsp;</font>
<br><font size=2 face="Arial">Response.Write strText</font>
<br><font size=3 face="Times New Roman">&nbsp;</font>
<br><font size=2 face="Arial">I would assume though that your program would have something built in </font>
<br><font size=2 face="Arial">allowing you to insert line breaks.</font>
<br><font size=3 face="Times New Roman">&nbsp;</font>
<br><font size=2 face="Arial">Chris Tifer</font>
<br><a href=http://www.emailajoke.com/><font size=2 color=blue face="Arial"><u>http://www.emailajoke.com</u></font></a>
<br><font size=3 face="Times New Roman">&nbsp;</font>
<br><font size=3 face="Times New Roman">&nbsp;</font>
<br><font size=3 face="Times New Roman">----- Original Message ----- </font>
<br><font size=3 face="Times New Roman"><b>From:</b> </font><a href=mailto:bill.marriott@agric.nsw.gov.au><font size=3 color=blue face="Times New Roman"><u>bill.marriott@agric.nsw.gov.au</u></font></a><font size=3 face="Times New Roman"> </font>
<br><font size=3 face="Times New Roman"><b>To:</b> </font><a href=mailto:javascript@LaTech.edu><font size=3 color=blue face="Times New Roman"><u>javascript@LaTech.edu</u></font></a><font size=3 face="Times New Roman"> </font>
<br><font size=3 face="Times New Roman"><b>Sent:</b> Wednesday, March 12, 2003 3:51 PM</font>
<br><font size=3 face="Times New Roman"><b>Subject:</b> Re: [Javascript] coding for the &lt;enter&gt; key</font>
<br>
<br><font size=2 face="sans-serif"><br>
Hi Chris,</font><font size=3 face="Times New Roman"> <br>
</font><font size=2 face="sans-serif"><br>
I'm using an Informix product called App Page Builder</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
and I guess this is not strictly a javascript question.</font><font size=3 face="Times New Roman"> <br>
</font><font size=2 face="sans-serif"><br>
I would be interested to see a example of the full ASP replace statement because it may work with Informix as well.</font><font size=3 face="Times New Roman"> <br>
</font><font size=2 face="sans-serif"><br>
It seems strange to me that the form element can read the format but the page can't.</font><font size=3 face="Times New Roman"> <br>
<br>
<br>
</font><font size=2 face="sans-serif"><br>
Bill Marriott<br>
Analyst/Programmer<br>
Information Technology<br>
NSW Agriculture<br>
Orange<br>
<br>
Ph. &nbsp;02 6391 3657<br>
Fax. 02 6391 3290</font><font size=3 face="Times New Roman"><br>
<br>
<br>
</font>
<table width=100%>
<tr valign=top>
<td width=2%>
<td width=40%><font size=1 face="sans-serif"><b>&quot;Chris Tifer&quot; &lt;christ@saeweb.com&gt;</b></font><font size=3 face="Times New Roman"> </font><font size=1 face="sans-serif"><br>
Sent by: javascript-admin@LaTech.edu</font><font size=3 face="Times New Roman"> </font>
<p><font size=1 face="sans-serif">13/03/2003 07:35 AM</font><font size=3 face="Times New Roman"> </font><font size=1 face="sans-serif"><br>
Please respond to javascript</font><font size=3 face="Times New Roman"> </font>
<td width=56%><font size=1 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; </font><font size=1 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;To: &nbsp; &nbsp; &nbsp; &nbsp;&lt;javascript@LaTech.edu&gt;</font><font size=3 face="Times New Roman"> </font><font size=1 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;cc: &nbsp; &nbsp; &nbsp; &nbsp;</font><font size=3 face="Times New Roman"> </font><font size=1 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;Subject: &nbsp; &nbsp; &nbsp; &nbsp;Re: [Javascript] coding for the &lt;enter&gt; key</font></table>
<br><font size=3 face="Times New Roman"><br>
<br>
</font><font size=2 face="Arial"><br>
What do you mean by &quot;written directly from the server&quot;? What language <br>
are you using? With ASP you could use REPLACE on vbCRLF... &nbsp;Or is <br>
this stricly through JavaScript where a form is submitted and you are parsing <br>
the QueryString using JavaScript?</font><font size=3 face="Times New Roman"> <br>
 &nbsp;</font><font size=2 face="Arial"><br>
Chris Tifer</font><font size=3 face="Times New Roman"> </font><font size=3 color=blue face="Times New Roman"><u><br>
</u></font><a href=http://www.emailajoke.com/><font size=2 color=blue face="Arial"><u>http://www.emailajoke.com</u></font></a><font size=3 face="Times New Roman"> <br>
 &nbsp;</font>
<br><font size=3 face="Times New Roman">----- Original Message ----- <b><br>
From:</b> </font><a href=mailto:bill.marriott@agric.nsw.gov.au><font size=3 color=blue face="Times New Roman"><u>bill.marriott@agric.nsw.gov.au</u></font></a><font size=3 face="Times New Roman"> <b><br>
To:</b> </font><a href=mailto:javascript@LaTech.edu><font size=3 color=blue face="Times New Roman"><u>javascript@LaTech.edu</u></font></a><font size=3 face="Times New Roman"> <b><br>
Sent:</b> Wednesday, March 12, 2003 3:20 PM <b><br>
Subject:</b> [Javascript] coding for the &lt;enter&gt; key <br>
</font><font size=2 face="sans-serif"><br>
<br>
Hi Everyone,</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
<br>
Does anyone know how to get HTML to format an embedded carriage return.</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
<br>
eg. 1. something</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp;2. something else</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp;3. something different</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
<br>
ends up as <br>
<br>
 &nbsp; &nbsp; &nbsp;1. something</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp;2. something else</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp;3. something different</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
<br>
if it is loaded from server data &nbsp;into a text area form element , but if it is just written to the page directly from the server it ends up as <br>
<br>
 &nbsp; &nbsp; &nbsp;1. something 2. something else &nbsp;3. something different</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
<br>
which is not as pretty</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
<br>
thanks</font><font size=3 face="Times New Roman"> </font><font size=2 face="sans-serif"><br>
<br>
Bill Marriott<br>
Analyst/Programmer<br>
Information Technology<br>
NSW Agriculture<br>
Orange<br>
<br>
Ph. &nbsp;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><font size=3 face="Times New Roman"> <br>
</font><font size=2 face="sans-serif"><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 size=2 face="sans-serif"><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>