Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: Workaround To Add Value To TextArea

Reply
Thread Tools

Re: Workaround To Add Value To TextArea

 
 
Rami Chowdhury
Guest
Posts: n/a
 
      11-25-2009
--------
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 <(E-Mail Removed)> 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
>
>

 
Reply With Quote
 
 
 
 
Jitish
Guest
Posts: n/a
 
      11-25-2009
On Nov 25, 8:27*pm, Rami Chowdhury <(E-Mail Removed)> 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 <(E-Mail Removed)> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Use of freed value in iteration - how to workaround? A. Farber Perl Misc 2 02-28-2010 09:05 PM
How to add </textarea> within <textarea> tags? frank.moens@gmail.com Javascript 1 07-04-2007 04:00 PM
Workaround to pass javascript value to jsp... chichu9 Java 1 02-24-2006 04:13 AM
Textarea Inside of a textarea wperry1@gmail.com ASP General 6 02-05-2006 08:00 AM
Removing carriage returns from <textarea></textarea> input Augustus ASP General 1 09-10-2003 04:55 AM



Advertisments