I created a small test program to reproduce the error and found something new and unexpected.
The error - “google visualization.DataTable without “new” - is thown only occurs when the Safari error console is open.(!) When the error console is closed the page reloads to completion with no errors. I had planned to post the URL with the test pgm here, but out of concern for security I decided not to - you’ll have to take my word. In any case, I’m okay now - I don’t think users will have the error console open. As I recall, Firebug (which I haven’t used for years) would occasionally _cause_ bugs. thanks for your help. > On Oct 16, 2015, at 11:05 PM, Sylvia Trembowelski <[email protected]> wrote: > > The page with the error is dynamically generated - and requires a login to > access. > > I will create a standalone program and to replicate the problem. I’ll get > back to you with the URL when I’m done. > > thanks a lot. > >> On Oct 16, 2015, at 9:47 PM, 'Daniel LaLiberte' via Google Visualization API >> <[email protected] >> <mailto:[email protected]>> wrote: >> >> Can you point us to a page that shows the error (in Safari)? It is hard for >> us to guess what might be happening otherwise. Maybe you could narrow down >> the problem by cutting your data in half a few times until it stops failing. >> >> On Fri, Oct 16, 2015 at 5:58 PM, sylviat84 <[email protected] >> <mailto:[email protected]>> wrote: >> This is me again... posting this problem gave me new insight and I >> investigated. >> >> The Safari bug is coming from here: >> >> var google_data = google.visualization.arrayToDataTable(formatted_data); >> >> My 'formatted data' is large - 4133 rows. I tested on an input dataset of >> 10 rows and it always works... no error! >> On the 4133 rows it works perfectly the first time. But on Safari, even >> after doing 'empty cache', is gives the error. >> >> Any advice? I really need to process datasets this size. >> >> thank you. >> >> >> On Friday, October 16, 2015 at 5:20:51 PM UTC-4, sylviat84 wrote: >> This error is happening in >> format_en,default_en,ui_en,table_en,controls+en,corechart_en.1.js >> >> I never call google.visualization.DataTable (explicitly). Rather, I always >> get my DataTable like this - >> var google_data = google.visualization.arrayToDataTable(formatted_data); >> >> Safari: >> The error only happens on Safari 9.0, running on OS X Yosemite 10.10.5. If >> I empty the browser cache, close safari, and rerun my program, it does NOT >> happen. But if I empty the cache & just reload the page, it does happen. >> >> Firefox: >> It never happens on Firefox 41.0.2. But (in case this is useful info), >> firefox does give a few warnings from this same module, i.e., 'Use of >> getAttributeNode() deprecated', and 'Empty string passed to getElementId()' >> >> In case this info is relevant... >> My application dynamically generates google.visualization graphs. Most >> recently I added support for google.visualization.dashboard, and today I put >> in a feature which supports the 'select' event among dashboard components. >> Both components are ChartWrappers - as they must be, for the DashBoard. So >> to connect 2 components I connect the underlying graphs objects something >> like this: >> listener_graphobj.getChart.setSelection( >> sender_graphobj.getChart().getSelection()[0] ) (It works) >> I suspect that this causing the problem. But because it happens only under >> very particular circumstances I'm not sure how to think about it. >> >> thank you. Sorry for the long post. Any insights/suggestions are greatly >> appreciated. >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google Visualization API" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] >> <mailto:[email protected]>. >> To post to this group, send email to >> [email protected] >> <mailto:[email protected]>. >> Visit this group at http://groups.google.com/group/google-visualization-api >> <http://groups.google.com/group/google-visualization-api>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/google-visualization-api/bf956a5f-4f41-4919-bb21-55facd7a0873%40googlegroups.com >> >> <https://groups.google.com/d/msgid/google-visualization-api/bf956a5f-4f41-4919-bb21-55facd7a0873%40googlegroups.com?utm_medium=email&utm_source=footer>. >> >> For more options, visit https://groups.google.com/d/optout >> <https://groups.google.com/d/optout>. >> >> >> >> -- >> Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> - >> 978-394-1058 >> [email protected] <mailto:[email protected]> 5CC, Cambridge MA >> [email protected] <mailto:[email protected]> 9 Juniper >> Ridge Road, Acton MA >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Google Visualization API" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/google-visualization-api/KvXAvsVedcM/unsubscribe >> >> <https://groups.google.com/d/topic/google-visualization-api/KvXAvsVedcM/unsubscribe>. >> To unsubscribe from this group and all its topics, send an email to >> [email protected] >> <mailto:[email protected]>. >> To post to this group, send email to >> [email protected] >> <mailto:[email protected]>. >> Visit this group at http://groups.google.com/group/google-visualization-api >> <http://groups.google.com/group/google-visualization-api>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJO6tZaUcvT4QTO%2BdLEUnWjwiMvWv1aRSDpDRn_3cqtp%2Bg%40mail.gmail.com >> >> <https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJO6tZaUcvT4QTO%2BdLEUnWjwiMvWv1aRSDpDRn_3cqtp%2Bg%40mail.gmail.com?utm_medium=email&utm_source=footer>. >> For more options, visit https://groups.google.com/d/optout >> <https://groups.google.com/d/optout>. > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-visualization-api. To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/D65CE4DA-9C28-4ACB-A6D8-6B420B88D6A3%40gmail.com. For more options, visit https://groups.google.com/d/optout.
