Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Jun 2007
    Location
    Los Angeles
    Posts
    545
    Thanks
    81
    Thanked 5 Times in 5 Posts

    HTML <input> tag Max Size?

    Is there a text limit on the HTML <input> tag?

    I have an hidden input tag and my browser (FF) stops working when I enter in about 8K of textual data in my Textarea object and then use JS to assign it's data to a hidden input tag object.

    Thanks...
    RalphF
    Business Text Messaging Services
    https://www.MobileTextingService.com

  • #2
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    Not that I'm aware of…but it's most likely the Javascript choking on the size of the content—versus a HTML restriction—that's causing your issues.

    If you already have a textarea element, couldn't you use that content in the backend versus transferring it to a hidden element?

  • #3
    Regular Coder
    Join Date
    Jun 2007
    Location
    Los Angeles
    Posts
    545
    Thanks
    81
    Thanked 5 Times in 5 Posts
    I'm using a textarea object as my main text field. I need to store its data into another object when I make my ajax call. I'm using a hidden <input> object since textarea doesn't support a hidden attribute. I'm thinking the input object is bumping up against a data size limit.

    I don't know of any other html object that can be used to store the data as a secondary object that is hidden?
    RalphF
    Business Text Messaging Services
    https://www.MobileTextingService.com

  • #4
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    I'm reading mixed things on the web. But theoretically, the W3C says inputs are by default allowed unlimited characters.

    I guess I'm still confused: you have two objects being sent as variables with the same content. So why not send it once?

    Either way, this really looks to be more of an issue with your AJAX rather than an HTML issue. Let me know if you'd like this moved to the AJAX forum.

  • #5
    New to the CF scene
    Join Date
    Mar 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Just add style="DISPLAY:none;" to your text area. It will be hidden and still accesible via javascript


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •