Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Max length of characters? 1

Status
Not open for further replies.

logius

Programmer
Joined
Aug 30, 2001
Messages
175
Location
US
Does anyone know if IE (5.x and above) has a limit to the max length a line of javascript code can be? Thing is that I have a line of code that's being generated via a CF statement that's over 200 or so characters long in a single line, and I think this is causing an error in IE. Oddly, it works in Netscape. ----------------------------------------
If you are reading this, then you have read too far... :-P

lightwarrior@hotmail.com
 
I don't think there's a limit. I have some javascript code that writes almost a full page of html, using writeln, to a popup and some of the literals in that code are >200 characters (so the lines of javascript code are also >200 characters). It works fine. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
How about >800? ----------------------------------------
If you are reading this, then you have read too far... :-P

lightwarrior@hotmail.com
 
I have one statement that is 1584 characters long. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Thanks, guess that's not the problem then. ----------------------------------------
If you are reading this, then you have read too far... :-P

lightwarrior@hotmail.com
 
If your statements have quotes in them, make sure they're all escaped or converted to apostrophes (but also beware of embedded apostrophes when you do this). That's a common problem with long javascript statements.

If you still can't figure it out, post some code here and we'll take a look. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top