This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes document.write limit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "document.write limit" Watch "document.write limit" New topic
Author

document.write limit

Kevin Tysen
Ranch Hand

Joined: Oct 12, 2005
Posts: 255
I've read in some books that there is a limit to how much text you can write to a document using the document.write() command. So I try not to use that command much. But I have no idea about the limit. Is it 100 characters? 1000 characters? 10000 characters? I assume it depends on the browser, too. Do recent browsers let you write more text that way?
How about Ajax? When you put text in a document with Ajax, is there a limit?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15385
    
    6
In this day in age, only in rare cases you use document.write.

The limit really depends on the user's computer and how complicated the data is.

Eric
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63208
    
  69

document.write() is a dinosaur. There are always better modern alternatives.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: document.write limit
 
It's not a secret anymore!