Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

maximum length of javascript string variables

Posted on 2006-10-25
2
Medium Priority
?
2,550 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
1 Comment
 
LVL 26

Accepted Solution

by:
DireOrbAnt earned 1500 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
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…

877 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