Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: HowTo : implement Textarea with wrapping text

Re: HowTo : implement Textarea with wrapping text

From: Jochen Liekens <jochen.liekens_at_vlaamsparlement.be>
Date: Tue, 15 Sep 1998 12:42:53 +0200
Message-ID: <35FE44AD.F6DD0FA@vlaamsparlement.be>

Brian Richardson schreef:

> Hello,
>
> I am trying to create a text region (using htp.formTextarea cmds) that,
> when displayed on a web page will force text to wrap around to the
> next line when the user types in their text. I have created a form
> which includes a number of other user data entry fields in addition
> to this text region, and I would like to keep everything in one
> 'page' so to speak.
>
> Using Oracle Web Server, Oracle v7.3.x database, PC/Netscape
> client, PL/SQL, and packages (Sun hardware and OS); I have
> done the following:
>
> htp.formTextareaOpen('text_name',',5,'32',NULL,NULL);
> == more code snipped ===
> htp.formTextareaClose;
>

Apparently, htp.textareaopen is an overloaded function. You are using the version which takes 5 parameters. Instead, you could use the version which takes 6 parameters; the first 4 being the same, the 5th generates the WRAP parameter (the one you need) and the 6th being the same as the 5th of version1 (ATTRIBUTES).

So, the instruction should look something like:

htp.formTextareaOpen('text_name',',5,'32',NULL,'VIRTUAL',NULL);

According to my HTML-book, the WRAP parameter can take these values:

    OFF : no wrapping (standard)
    VIRTUAL : wrapping, data is still sequentially sent to the server     PHYSICAL : wrapping, data is cut up in pieces all of the same length

I didn't try it myself, but I think it's worth a shot.

HTH Jochen

> When the web page comes up; I can enter text into the region;
> but instead of wrapping around to the next line, it continues on
> to the right, forcing the displayed page to scroll to the right. I'm
> hoping there is a flag or attribute that I can set which will invoke
> text wrapping.
>
> Thanks in advance for any suggestions.
>
> Brian Richardson
Received on Tue Sep 15 1998 - 05:42:53 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US