Solved

maximum length of javascript string variables

Posted on 2006-10-25
2
2,546 Views
Last Modified: 2012-08-14
what is the maximum length of javascript string variables? im tryign to use the prototype ajax.request object to get over 400k of HTML from a url, but it seems that only part of the document is being retrieved, so im guessing the variable ran out of space or something?

thanks
0
Comment
Question by:wrynn
2 Comments
 
LVL 26

Accepted Solution

by:
DireOrbAnt earned 500 total points
ID: 17804904
It's platform/browser dependant. In IE, I think it's 2^31 characters. Also, the client machine will have it's own limitation, memory, speed...
All of that to say that I don't think it's a good use of AJAX to have a 400K output. So, what are you doing with the HTML? Outputing somewhere or parsing it?
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question