Re: "style" attribute within "TEXTAREA" tag with large contents

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: David C. Holley (DavidCHolley_at_netscape.net)
Date: 06/06/04

  • Next message: David C. Holley: "Re: opening link as read-only"
    Date: Sat, 05 Jun 2004 20:42:32 -0400
    
    

    Well, I would ask wether or not there's a specific reason to display the
    information in a <TEXTAREA> if you're not going to be doing anything
    with the information. Why not just display the information as regular text

    David C. Holley
    www.gatewayorlando.com

    ohaya wrote:

    > Hi,
    >
    > I'm trying to diagnose a problem with a page that we're serving. This
    > problem only occurs when IE6 is used as the browser.
    >
    > The page is a kind of log display, and the log output is displayed
    > within a TEXTAREA. When the contents of the TEXTAREA is very large
    > (~7MB), it seems like IE just hangs. Actually, I'm not sure if IE is
    > hanging, or just taking a long time (I've waited overnight), but CPU
    > Utilization under Task Manager goes to 100%.
    >
    > The original markup looks like:
    >
    > <TEXTAREA id="whatever" name="whatever" rows="16" cols="100"
    > style="position: absolute; left: 2px; top: 2px; width: 0px; height:
    > 0px;">
    >
    > ... large text content generated dynamically ...
    >
    > </TEXTAREA>
    >
    >
    > Just out of desparation while testing, I removed the 'style' attribute
    > from the TEXTAREA tag:
    >
    > <TEXTAREA id="whatever" name="whatever" rows="16" cols="100">
    >
    > ... large text content generated dynamically ...
    >
    > </TEXTAREA>
    >
    > and after doing this, and going to the page with IE, the output appeared
    > within seconds!!!
    >
    >
    > My conclusion thus far is that having the 'style' attribute in the
    > TEXTAREA tag is the cause of the hang/slowdown.
    >
    > FYI, this page was made by another person, who's no longer here, so I
    > don't know exactly what he/she was trying to accomplish by having the
    > 'style' attribute in the TEXTAREA tag :(, so I'm wondering if anyone
    > here might have any insight into this before I simply delete the 'style'
    > attribute?
    >
    > BTW, the page does display in Netscape. It's only a problem with IE.
    >
    > Thanks,
    > Jim


  • Next message: David C. Holley: "Re: opening link as read-only"

    Relevant Pages

    • Re: Display multiple lines
      ... The data is collected in a ASP form "textarea" ... The data is then displayed in an HTML form. ... or line feed characters in the text, ... Data display process: ...
      (microsoft.public.inetserver.asp.general)
    • "style" attribute within "TEXTAREA" tag with large contents
      ... The page is a kind of log display, and the log output is displayed ... TEXTAREA tag is the cause of the hang/slowdown. ... the page does display in Netscape. ...
      (microsoft.public.inetsdk.html_authoring)
    • Re: JavaScript on Demand
      ... - The problem is it does not initialize the TXT even though it is ... tinyMCE initializes some functionality, so I see the editor appended ... to my textarea field. ... user can select what content to display. ...
      (comp.lang.javascript)
    • Re: How to display styleed text in a textaea or... ???
      ... But somehow the HTML tags in textarea look messy... ... Since text in 'textarea' can not display HTML effects(maybe I was ... WYSIWYG editor of my own. ...
      (comp.lang.javascript)
    • Re: How to display styleed text in a textaea or... ???
      ... movies) in the same box... ... But somehow the HTML tags in textarea look messy... ... Since text in 'textarea' can not display HTML effects(maybe I was ...
      (comp.lang.javascript)