Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python

Workaround To Add Value To TextArea

 

 

Python python RSS feed   Index | Next | Previous | View Threaded


victorsubervi at gmail

Nov 25, 2009, 7:19 AM

Post #1 of 4 (211 views)
Permalink
Workaround To Add Value To TextArea

Hi;
I've noticed that html doesn't support a "value" attribute for textarea. I
have a form in which I enable users to edit data they've entered into my
database, and one of the data is a textarea. How do I fill the textarea with
the value, or what kind of workaround can I create?
TIA,
Victor


rami.chowdhury at gmail

Nov 25, 2009, 7:27 AM

Post #2 of 4 (205 views)
Permalink
Re: Workaround To Add Value To TextArea [In reply to]

--------
Rami Chowdhury
"Never assume malice when stupidity will suffice." -- Hanlon's Razor
408-597-7068 (US) / 07875-841-046 (UK) / 0189-245544 (BD)



On Wed, Nov 25, 2009 at 07:19, Victor Subervi <victorsubervi [at] gmail> wrote:
> Hi;
> I've noticed that html doesn't support a "value" attribute for textarea. I
> have a form in which I enable users to edit data they've entered into my
> database, and one of the data is a textarea. How do I fill the textarea with
> the value, or what kind of workaround can I create?

Hi Victor,

You'll find the textarea and input tags differ significantly, even
though they're both typically used in HTML forms. The W3C page has a
fair overview of how various parts of HTML forms work in HTML 4.01,
and it's roughly accurate for XHTML up to 1.1 as well:
http://www.w3.org/TR/html401/interact/forms.html

HTH,
Rami

> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
--
http://mail.python.org/mailman/listinfo/python-list


victorsubervi at gmail

Nov 25, 2009, 7:41 AM

Post #3 of 4 (205 views)
Permalink
Re: Workaround To Add Value To TextArea [In reply to]

On Wed, Nov 25, 2009 at 10:27 AM, Rami Chowdhury
<rami.chowdhury [at] gmail>wrote:

> You'll find the textarea and input tags differ significantly, even
> though they're both typically used in HTML forms. The W3C page has a
> fair overview of how various parts of HTML forms work in HTML 4.01,
> and it's roughly accurate for XHTML up to 1.1 as well:
> http://www.w3.org/TR/html401/interact/forms.html
>

Oops. Silly mistake. Thought I had to put the value inside the tag like the
other tags. Thanks,
V


jitish.p at gmail

Nov 25, 2009, 7:46 AM

Post #4 of 4 (203 views)
Permalink
Re: Workaround To Add Value To TextArea [In reply to]

On Nov 25, 8:27 pm, Rami Chowdhury <rami.chowdh...@gmail.com> wrote:
> --------
> Rami Chowdhury
> "Never assume malice when stupidity will suffice." -- Hanlon's Razor
> 408-597-7068 (US) / 07875-841-046 (UK) / 0189-245544 (BD)
>
> On Wed, Nov 25, 2009 at 07:19, Victor Subervi <victorsube...@gmail.com> wrote:
> > Hi;
> > I've noticed that html doesn't support a "value" attribute for textarea. I
> > have a form in which I enable users to edit data they've entered into my
> > database, and one of the data is a textarea. How do I fill the textarea with
> > the value, or what kind of workaround can I create?
>
> Hi Victor,
>
> You'll find the textarea and input tags differ significantly, even
> though they're both typically used in HTML forms. The W3C page has a
> fair overview of how various parts of HTML forms work in HTML 4.01,
> and it's roughly accurate for XHTML up to 1.1 as well:http://www.w3.org/TR/html401/interact/forms.html
>
> HTH,
> Rami
>
> > --
> >http://mail.python.org/mailman/listinfo/python-list
>
>

HI,
Ok the simplest solution for this is <textarea id="someid"
name="somename">Anything you type between this will be treated as the
value for textarea. </textarea>

Regards
Jitish
--
http://mail.python.org/mailman/listinfo/python-list

Python python RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.