randall2nd
Programmer
I am trying to build some dynamic drop down menus, I load the javascript arrays first. Then when a user makes a selection the next ones in line are populated.
In IE 6.0 everything works fine, but in Netscape 7.0 the error "Error: too many literals" appears in the JavaScript console. I have narrowed the problem down to a piece of code that is loading a list of strings into a 5 dimension Array.
The code looks like this
Book_Name[j][k][x]= new Array("element1","element2","element3","element4","element5","element6","element7","element8",etc...);
Book_Number[j][k][x]= new Array("1","2","3","4","5","6","7","8",etc...);
When I hardcode the array elements, it works fine. But when I load them through ColdFusion(CF) I get the error above. I am 90% sure the code from CF is functioning properly. Is there a maximum number of elements a document can have?
I have tested the CF code from every angle I can think of, and no one record will break it. I can get it to break consistantly by limiting the number of loops over the array, but it will load passed that point if I start it later or comment out one of the arrays, then it breaks consitantly at a later point. (Plus like I said it works great in IE)
Any Ideas on:
What is causing Netsacpe to break when I go to load the arrays?
What the error means?
How to fix it?
Randall2nd
In IE 6.0 everything works fine, but in Netscape 7.0 the error "Error: too many literals" appears in the JavaScript console. I have narrowed the problem down to a piece of code that is loading a list of strings into a 5 dimension Array.
The code looks like this
Book_Name[j][k][x]= new Array("element1","element2","element3","element4","element5","element6","element7","element8",etc...);
Book_Number[j][k][x]= new Array("1","2","3","4","5","6","7","8",etc...);
When I hardcode the array elements, it works fine. But when I load them through ColdFusion(CF) I get the error above. I am 90% sure the code from CF is functioning properly. Is there a maximum number of elements a document can have?
I have tested the CF code from every angle I can think of, and no one record will break it. I can get it to break consistantly by limiting the number of loops over the array, but it will load passed that point if I start it later or comment out one of the arrays, then it breaks consitantly at a later point. (Plus like I said it works great in IE)
Any Ideas on:
What is causing Netsacpe to break when I go to load the arrays?
What the error means?
How to fix it?
Randall2nd