how to avoid "Error: script stack space quota is exhausted" when loading a big table with a javascript
I'm trying to run the following script using google's API. The script works perfectly, but as soon as I add too many rows (with the "data.setValue" command) it does not work anymore in Firefox or IE. The final script should be able to load around 95,000 rows. I've read it has to do with the script stack space. With Opera I'm actually able to load the page (but it runs very slowly).
Is there a way to improve the loading of the data? thanks!!!!!!!!!!!!!!!!!
Might be a silly question, but what are you trying to do that required 95k rows loaded through javascript?
From an end user perspective this cannot be anything other than unusable I would expect.
When you are doing some sort of calculation, you'd rather do them cached and serverside for both your server as your end users sake.
k/r
Arnoud
0
cataliniAuthor Commented:
this is not developed for an end-user. I'd like to see the visualize the results for myself using google APIs. It's not a problem if it takes too long to load.
0
Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.
is there a way to expand the browser's script stack? I've got plenty of memory available (3GB!).
I've seen someone using an iframe trick, but I'm not sure how to implement it. Is there a better way to input the data than mine? Maybe from a csv file?
thanks!!!
0
cataliniAuthor Commented:
I wasn't able to load it using their csv example. I'm running the script locally on a html page of about 12MB...
0
ProjectRAINCommented:
Hi,
I'm actually having the same problem.
But as for my scenario, I like to grab a template file remotely using
jquery ajax, the also grab the data also using jquery - ajax in json format.
then bind them both template and data for display.
In theory this binding seems faster, there's just a "but"
the problem occurs when I try to retrieved bunch of records.
but i've tried using the "complete" callback instead but still having the same
problem because i still need to convert it to string for the template binding.
Hope there's really a solution out there!
Thanks!
0
cataliniAuthor Commented:
using Opera instead of Firefox or IE solved the problem.
0
cataliniAuthor Commented:
no solution was posted.
0
ProjectRAINCommented:
this is due to data byte size downloaded from the server to the client side(browser) which the browser(FF) has smaller limit to carry the data in the Javascript.
to reproduce this error, you grab a large size of data and assign it to your javascript variable.
sorry, i forgot the limit set by FF.
0
Question has a verified solution.
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
http://code.google.com/intl/nl/apis/visualization/documentation/dev/implementing_data_source.html