Opened 15 years ago

Closed 15 years ago

#252 closed defect (invalid)

split BigTextarea

Reported by: gocher Owned by: gogo
Priority: normal Milestone:
Component: Documentation Version:
Severity: normal Keywords: big Textareas
Cc:

Description

PRB: Error "Request Object, ASP 0107 (0x80004005)" When You Post a Form
with HTMLArea!

The size limit of each form field that is retrieved in the Request object is 102,399 bytes. The error occurs when you exceed this limit.

One possible way is to break the textarea up!

Could that be implemented in htmlarea?

function BreakItUp()
{
  //Set the limit for field size.
  var FormLimit = 102399

  //Get the value of the large input object.
  var TempVar = new String
  TempVar = document.theForm.BigTextArea.value

  //If the length of the object is greater than the limit, break it
  //into multiple objects.
  if (TempVar.length > FormLimit)
  {
    document.theForm.BigTextArea.value = TempVar.substr(0, FormLimit)
    TempVar = TempVar.substr(FormLimit)

    while (TempVar.length > 0)
    {
      var objTEXTAREA = document.createElement("TEXTAREA")
      objTEXTAREA.name = "BigTextArea"
      objTEXTAREA.value = TempVar.substr(0, FormLimit)
      document.theForm.appendChild(objTEXTAREA)

      TempVar = TempVar.substr(FormLimit)
    }
  }
}

Change History (2)

comment:1 Changed 15 years ago by niko

i did never hear about this error (probably only a ASP-problem)

but if it is a problem, this would be a nice workaround. (you might add hidden fields instead of textareas?)

but where i see a problem is that the page (script) won't work with other browsers. imho it is important that every browser can access your forms - only moz and ie do have the nice xinha - but opera, safari, konqueror and - not to forget - lynx-uses can still enter html-code in the textarea.

comment:2 Changed 15 years ago by gogo

  • Resolution set to invalid
  • Status changed from new to closed

Heh, personally if you're entering 100k+ of data in Xinha you might end up with a lot more problems than that, I'd be surprised if it was very usable at that size.

That said, I've never heard of the problem before, I guess it must be an IIS/ASP thing. What I would do is just use a normal old onSubmit on the <form> tag which splits the text up (it will be in the textarea ready to go by then) however you want.

Don't think this needs anything from Xinha, closing.

Note: See TracTickets for help on using tickets.