Subj : Re: "Code of a method longer than 65535 bytes" To : netscape.public.mozilla.jseng From : Cameron McCormack Date : Thu Apr 01 2004 10:00 am Igor Bukanov wrote: > The web server returns Not Found for [2] Hmm, forgot to copy it. It is there now. > The simplest solution would be to split your arrays into few smaller > data structures defined in different JS functions so each of them would > fit the limit. So does each JS function map to a Java method? And my array creations are all at the file level so I suppose that would count as one function. > Another solution is to put your data array as CDATA of some DOM node and > then use a small JS driver to extract and parse them. It probably would > produce fastest to load and execute scripts as well. I'd like to keep it as self contained as possible and not have to rely on users of my script to put extra data into their SVG documents. > Rhino always uses interpreted mode for scripts inside eval so if you > load somehow your script source into JS string and then call eval on it > it should allow to exceed 64K limit. Ok, thanks for the info. Cameron -- Cameron McCormack | Web: http://mcc.id.au/ | ICQ: 26955922 Replies by e-mail must include the current month name in subject line to bypass spam filter. .