Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Message Inbox input element

by epoptai (Curate)
on Jan 20, 2001 at 03:40 UTC ( [id://53138]=monkdiscuss: print w/replies, xml ) Need Help??

The Message Inbox rules! But i still use the textarea at the bottom of my homenode for composing long messages, so more than one line can be seen at once. How about using a textarea in the Message Inbox?

The only problem i can see is that textarea doesn't have a maxlength attribute and so allows you to enter more than the 255 chr limit, so long messages truncate. But this could be addressed by counting the chrs in a submitted message, and returning the textarea with the truncated text so it can be resent.

Replies are listed 'Best First'.
(Ovid) Re: Message Inbox input element
by Ovid (Cardinal) on Jan 20, 2001 at 04:40 UTC
    As of this posting, the input tag for the "text" that you can reply with is as follows:
    <INPUT TYPE="text" NAME="replytotext" SIZE=60 MAXSIZE="255">
    That should, amongst other things, be MAXLENGTH and not MAXSIZE. There's nothing to prevent someone from entering more than 255 characters and having a reply truncated (as I have learned the hard way).

    Is MAXSIZE a browser specific attribute that I don't know about?

    Cheers,
    Ovid

    Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.

      I looked at the HTML 4.01 specification, but was unable to find anything relating to MAXSIZE there, that was related to the <TEXTAREA> tag.

      TStanley
      In the end, there can be only one!

      Nope, just a common mistake. I used to do that often, so know I watch for it and catch myself. It *should* be MAXSIZE, or it *should* be simply LENGTH, but alas, that's the way it was originally done, so, like HTTP_REFERER, we are stuck with it. :)

Re: Message Inbox input element
by john1987 (Acolyte) on Jan 26, 2001 at 03:27 UTC
    try sending it in 2 parts or more, that'll work

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: monkdiscuss [id://53138]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2024-04-25 21:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found