This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP 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: 65115
89
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