CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 New Line/Line Break on TextArea Fields

Print topic Send  topic

Author Message
phantom
Posted: 02/14/2001, 2:28 AM

Hi there,

Is there any ways of of making a line break when entering text/data in
TEXTAREA field (using the enter/return key to seperate the lines) and to
have it viewed with LABEL field without squezing all into a single continous
line. I know there is a limitation because of HTML, but is there any easy
way around it using CodeCharge with ASP?.

See the example below.

This how I would like it:

Technical Specifications.
Pentium III 800
Intel 815 motherboard
128MB Memory
Onboard Creative Sound


Rather then this, when viewed with label field;
Technical SpecificationsPentium III 800Intel 815 motherboard128MB
MemoryOnboard Creative Sound


Thanks.

Phantom

Alexey Alexapolsky
Posted: 02/14/2001, 4:48 AM

Yes, you can do this form with label. You will simple need to use
events mechanism to replace newline symbols with <br> tags.
Please see our forum example : viewthread page , form MessageText, "Form
properties" events tab , "Show event"
--
Regards,
Alexey
CodeCharge Support

phantom <pahntom@phantom.com> wrote in message
news:96dmkn$m4h$1@news.codecharge.com...
> Hi there,
>
> Is there any ways of of making a line break when entering text/data in
> TEXTAREA field (using the enter/return key to seperate the lines) and to
> have it viewed with LABEL field without squezing all into a single
continous
> line. I know there is a limitation because of HTML, but is there any easy
> way around it using CodeCharge with ASP?.
>
> See the example below.
>
> This how I would like it:
>
> Technical Specifications.
> Pentium III 800
> Intel 815 motherboard
> 128MB Memory
> Onboard Creative Sound
>
>
> Rather then this, when viewed with label field;
> Technical SpecificationsPentium III 800Intel 815 motherboard128MB
> MemoryOnboard Creative Sound
>
>
> Thanks.
>
> Phantom
>
>

phantom
Posted: 02/14/2001, 2:47 PM

Thanks for you help,
It works great.. but I have another issue regarding this matter. If I have
multiple codes for several fields with in the same form, the additional
fields don't work. They either show up with the same problem or nothing at
all... is there another way out of this problem?

BTW. Your support is excelllllllent! - quick and relilable.

Cheers
phantom

Eg.
fldmessage1=replace(fldmessage1,vbCRLF,"<br>")
fldmessage2=replace(fldmessage2,vbCRLF,"<br>")
fldmessage3=replace(fldmessage3,vbCRLF,"<br>")



"Alexey Alexapolsky" <alexa@codecharge.com> wrote in message
news:96duqb$lqa$1@news.codecharge.com...
> Yes, you can do this form with label. You will simple need to use
> events mechanism to replace newline symbols with <br> tags.
> Please see our forum example : viewthread page , form MessageText, "Form
> properties" events tab , "Show event"
> --
> Regards,
> Alexey
> CodeCharge Support
>
> phantom <pahntom@phantom.com> wrote in message
>news:96dmkn$m4h$1@news.codecharge.com...
> > Hi there,
> >
> > Is there any ways of of making a line break when entering text/data in
> > TEXTAREA field (using the enter/return key to seperate the lines) and to
> > have it viewed with LABEL field without squezing all into a single
> continous
> > line. I know there is a limitation because of HTML, but is there any
easy
> > way around it using CodeCharge with ASP?.
> >
> > See the example below.
> >
> > This how I would like it:
> >
> > Technical Specifications.
> > Pentium III 800
> > Intel 815 motherboard
> > 128MB Memory
> > Onboard Creative Sound
> >
> >
> > Rather then this, when viewed with label field;
> > Technical SpecificationsPentium III 800Intel 815 motherboard128MB
> > MemoryOnboard Creative Sound
> >
> >
> > Thanks.
> >
> > Phantom
> >
> >
>
>

Alexey Alexapolsky
Posted: 02/15/2001, 7:59 AM

The only problem that I see know is that besides adding code
to your events , you shouldn't forget to strip tohtml()
function from appropriate code , like
setvar "message2",tohtml(fldmessage2)
should be stripped to
setvar "message2",fldmessage2



--
Regards,
Alexey
CodeCharge Support

phantom <pahntom@phantom.com> wrote in message
news:96f1t6$odg$1@news.codecharge.com...
> Thanks for you help,
> It works great.. but I have another issue regarding this matter. If I have
> multiple codes for several fields with in the same form, the additional
> fields don't work. They either show up with the same problem or nothing at
> all... is there another way out of this problem?
>
> BTW. Your support is excelllllllent! - quick and relilable.
>
> Cheers
> phantom
>
> Eg.
> fldmessage1=replace(fldmessage1,vbCRLF,"<br>")
> fldmessage2=replace(fldmessage2,vbCRLF,"<br>")
> fldmessage3=replace(fldmessage3,vbCRLF,"<br>")
>
>
>
> "Alexey Alexapolsky" <alexa@codecharge.com> wrote in message
>news:96duqb$lqa$1@news.codecharge.com...
> > Yes, you can do this form with label. You will simple need to use
> > events mechanism to replace newline symbols with <br> tags.
> > Please see our forum example : viewthread page , form MessageText, "Form
> > properties" events tab , "Show event"
> > --
> > Regards,
> > Alexey
> > CodeCharge Support
> >
> > phantom <pahntom@phantom.com> wrote in message
> >news:96dmkn$m4h$1@news.codecharge.com...
> > > Hi there,
> > >
> > > Is there any ways of of making a line break when entering text/data in
> > > TEXTAREA field (using the enter/return key to seperate the lines) and
to
> > > have it viewed with LABEL field without squezing all into a single
> > continous
> > > line. I know there is a limitation because of HTML, but is there any
> easy
> > > way around it using CodeCharge with ASP?.
> > >
> > > See the example below.
> > >
> > > This how I would like it:
> > >
> > > Technical Specifications.
> > > Pentium III 800
> > > Intel 815 motherboard
> > > 128MB Memory
> > > Onboard Creative Sound
> > >
> > >
> > > Rather then this, when viewed with label field;
> > > Technical SpecificationsPentium III 800Intel 815 motherboard128MB
> > > MemoryOnboard Creative Sound
> > >
> > >
> > > Thanks.
> > >
> > > Phantom
> > >
> > >
> >
> >
>
>


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.