maximum length of javascript string variables

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?

Who is Participating?

Improve company productivity with a Business Account.Sign Up

DireOrbAntConnect With a Mentor Commented:
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?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.