Still having the same issue, loader.js fails at line 60. As noted, we're loading a page from our live servers with PhantomJS, so the protocol it's using should be http/https. I haven't tried Phantom 2.0, but 1.9.8 is not working.
On Wednesday, August 26, 2015 at 10:00:21 AM UTC-5, Daniel LaLiberte wrote: > > Kevin, > > I believe I fixed the problem of loading pages with schemes other than > http or https, so loading via PhantomJS might work now. > > On Wed, Aug 26, 2015 at 10:50 AM, Kevin Crawley <[email protected] > <javascript:>> wrote: > >> @Daniel >> >> Do you have any feedback regarding this issue. We are unable to deploy >> the frozen loader until it will work in PhantomJS. The file *is *being >> loaded from a web server; so I believe the problem we're experiencing is >> unrelated to the issue Thomas was having. >> >> Regards >> -Kevin >> >> >> On Monday, August 24, 2015 at 9:51:20 AM UTC-5, Kevin Crawley wrote: >>> >>> We're actually loading the page from a web server and PhantomJS has >>> outside network access. I managed to get the PhantomJS remote debugger >>> going and got some feedback from the loader. >>> >>> TypeError: 'undefined' is not an object (evaluating 'a[L]') [loader.js: >>> 60] >>> >>> >>> 'loadGoogleVisLibrary': function() { >>> var deferred = Q.defer(); >>> >>> google.charts.load("visualization", "1", { >>> packages: ['corechart', 'table', 'gauge'] >>> }); >>> >>> google.charts.setOnLoadCallback(function() { >>> console.log('this will never happen'); >>> }); >>> >>> setTimeout(function() { >>> console('logically, google.load callback should have happened by now'); >>> }, 1500); >>> >>> return deferred.promise; >>> }, >>> >>> >>> >>> >>> >>> On Monday, August 24, 2015 at 7:23:17 AM UTC-5, Daniel LaLiberte wrote: >>>> >>>> Kevin, >>>> >>>> If you are using PhantomJS outside of a web page, that would explain >>>> why the new loader is having a problem. It currently assumes it can load >>>> using the same scheme (http or https) as the page itself. This is similar >>>> to the problem Thomas Schwab reported regarding charts in email. >>>> >>>> On Fri, Aug 21, 2015 at 4:43 PM, Kevin Crawley <[email protected]> >>>> wrote: >>>> >>>>> We're having some trouble using the new loader in PhantomJS. It >>>>> appears the loader will not execute, and it's not giving any >>>>> feedback/errors. >>>>> >>>>> >>>>> On Tuesday, July 28, 2015 at 7:11:12 AM UTC-5, Daniel LaLiberte wrote: >>>>> >>>>>> *Introducing Frozen Google Charts* >>>>>> >>>>>> When we push out new releases of Google Charts, some of the changes >>>>>> are big, like entirely new chart types, but other changes are small, >>>>>> like >>>>>> enhancements to the appearance or behavior of existing charts. >>>>>> >>>>>> Many Google Chart creators fine-tune the look and feel of their >>>>>> charts until it's exactly what they want. Some of those users might feel >>>>>> more comfortable knowing that their charts will never change, regardless >>>>>> of >>>>>> what improvements we make in the future. For those users, we're proud >>>>>> to >>>>>> announce Frozen Google Charts. >>>>>> >>>>>> To load a frozen version, you must make some small changes in how you >>>>>> load the Google Charts packages. For example, here is the usual way >>>>>> of loading the stable version and drawing a chart: >>>>>> >>>>>> <script type="text/javascript" >>>>>> >>>>>> src="https://www.google.com/jsapi"></script> >>>>>> >>>>>> <script type="text/javascript"> >>>>>> >>>>>> google.load('visualization', '1', {packages: ['corechart']}); >>>>>> >>>>>> google.setOnLoadCallback(drawChart); >>>>>> >>>>>> </script> >>>>>> >>>>>> You'll need to change your code to be like this (changes highlighted >>>>>> in bold): >>>>>> >>>>>> <script type="text/javascript" >>>>>> >>>>>> src="*https://www.gstatic.com/charts/loader.js* >>>>>> <https://www.gstatic.com/charts/loader.js>"></script> >>>>>> >>>>>> <script type="text/javascript"> >>>>>> >>>>>> *google.charts.load(**'41'**,* {packages: ['corechart']}); >>>>>> >>>>>> *google.charts.setOnLoadCallback*(drawChart); >>>>>> </script> >>>>>> >>>>>> >>>>>> Note that when you call google.charts.load(), you should not include >>>>>> the ‘visualization’ parameter, and the version number is a string. >>>>>> Only version ‘41’ is supported at this time, which corresponds to the >>>>>> current stable release, and additional frozen versions will be >>>>>> announced as we push out each new stable release. More details >>>>>> about using the frozen version loader will be available here >>>>>> <https://google-developers.appspot.com/chart/interactive/docs/library_loading_enhancements> >>>>>> . >>>>>> >>>>>> >>>>>> When you use a frozen version of Google Charts, all charts and >>>>>> features should work the same as for the stable version it was created >>>>>> from. But there are two minor, though important, limitations with >>>>>> loading frozen versions, which we expect to resolve in the near >>>>>> future. >>>>>> >>>>>> 1. You can only call google.charts.load() one time. You can >>>>>> instead list all the packages that you'll need in one call, so there >>>>>> is >>>>>> usually no need to make separate calls. >>>>>> 2. If you are using a ChartWrapper, you must explicitly load all >>>>>> the packages you'll need rather than relying on the ChartWrapper to >>>>>> automatically load them for you. >>>>>> >>>>>> We expect that frozen versions will remain available indefinitely, >>>>>> though we may retire frozen versions that have security concerns. We >>>>>> will >>>>>> typically not provide support for frozen versions, except to suggest >>>>>> upgrading to newer versions. >>>>>> >>>>>> Even if you don't plan to use the frozen version 41, it would help us >>>>>> if you could try it now with your charts and please let us know if you >>>>>> experience any problems. >>>>>> >>>>>> -- >>>>>> Daniel LaLiberte >>>>>> <https://plus.google.com/100631381223468223275?prsrc=2> - >>>>>> 978-394-1058 >>>>>> [email protected] 5CC, Cambridge MA >>>>>> [email protected] 9 Juniper Ridge Road, Acton MA >>>>>> >>>>> -- >>>>> 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/2bcf2637-da51-4513-a61c-6209d2f7a432%40googlegroups.com >>>>> >>>>> <https://groups.google.com/d/msgid/google-visualization-api/2bcf2637-da51-4513-a61c-6209d2f7a432%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> >>>> >>>> >>>> -- >>>> Daniel LaLiberte >>>> <https://plus.google.com/100631381223468223275?prsrc=2> - 978-394-1058 >>>> [email protected] 5CC, Cambridge MA >>>> [email protected] 9 Juniper Ridge Road, Acton MA >>>> >>> -- >> 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] >> <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> 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/2648a667-e857-4116-a04d-4472ee883de8%40googlegroups.com >> >> <https://groups.google.com/d/msgid/google-visualization-api/2648a667-e857-4116-a04d-4472ee883de8%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> > - 978-394-1058 > [email protected] <javascript:> 5CC, Cambridge MA > [email protected] <javascript:> 9 Juniper Ridge Road, Acton MA > -- 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/e3603c20-abbc-4eb8-b71b-04e4180ded16%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
