here's how it displays in the web browser after I save it and re-access 
it:

Work order 169 notes**test

* = blank box

Shane Cessna  
Senior iSeries Programmer
iSeries WebSphere & Tomcat Administrator
North American Lighting, Inc.
2275 S. Main St.
Suite A
Paris, IL 61944
Flora Office - 618.662.4483 x2776
Paris Office - 217.465.6600 x7776
Cell - 618.554.4352
shane_cessna@xxxxxxx 



"Raul A. Jager W." <raul@xxxxxxxxxx> 
Sent by: web400-bounces@xxxxxxxxxxxx
08/03/2006 10:41 AM
Please respond to
Web Enabling the AS400 / iSeries <web400@xxxxxxxxxxxx>


To
Web Enabling the AS400 / iSeries <web400@xxxxxxxxxxxx>
cc

Subject
Re: [WEB400] CGIDEV2 question...






%scan for the hex character  "0D"

something like this:
do until end..
endofline = %scan( x'0d': textarea)
line = %subst( textarea: 1: endofline)
textarea = %subst(textarea: endofline)
...  make sure to include conditions to process the last line and no to 
copy the "0d"
When you display the textarea from several fields, you need to "build 
it" ; line1 + x'0d' + line2.....
_________________________________________________________________________________________
Mike Cunningham wrote:

I'm not sure you can display it to a green screen. I have done some
scan/replace of textarea data and stripped off and non-displayable
characters before I saved it so green-screen worked OK. I suppose you
could store it with the hard return and strip it off before displaying
it



Shane_Cessna@xxxxxxx 8/3/2006 10:37:02 AM >>>


Hey list,

How does anyone handle a hard return in a textarea field on a web form?
I 
can save it in a PF, but how do I detect it through an RPG read and 
display it properly?

Shane Cessna 
Senior iSeries Programmer
North American Lighting, Inc.
2275 S. Main St.
Suite A
Paris, IL 61944
Flora Office - 618.662.4483 x2776
Paris Office - 217.465.6600 x7776




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.