Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Javascript: What's the Max Length of a var?

 
Pat Flickner
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've just encountered something interesting that is causing me no end of headaches. I have discovered the the maximum length of my variables appears to be 999 bytes (anything longer is cut off at byte 1000). Is that normal or should I be looking for a parameter or feature that I or someone else set?
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what browser are you using?

Also some info: http://www.thescripts.com/forum/thread92088.html

Eric
 
Pat Flickner
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
MSIE 7, but I also test in firefox. And it just occurred to me. I'm using the ancient Visual Studio InterDev Studio to debug my javascript. That could be causing a worse problem for me. Waddaya think? Thanks for the link -- that's what clued me in.
[ August 03, 2007: Message edited by: Pat Flickner ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64708
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, clearly there is no real 999 limit.
[ August 03, 2007: Message edited by: Bear Bibeault ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic