--
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 google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/b88a9487-1fb5-4510-b999-1b04046c0633%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Could you give us the details of how you are doing the loading? Subtle mistakes could be the cause. Best to copy enough code here to reproduce the problem, or point us at your web page.
On Mon, Jan 9, 2017 at 8:20 AM, 'Joan Ibanez' via Google Visualization API <google-visua...@googlegroups.com> wrote:
Hi,
sometimes I have a problem with the loading of google chart library, because script attempts to execute before (I assume) library is completely loaded although I am using the proposed methods. Google Chrome performance is much better than IE but not 100% reliable. Is there another way to ensure loading before executing?
THX!
--
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 google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/b88a9487-1fb5-4510-b999-1b04046c0633%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/b88a9487-1fb5-4510-b999-1b04046c0633%40googlegroups.com.
For more options, visit 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 google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/ee3a42cc-7442-4eaf-ba20-3af980277375%40googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/ee3a42cc-7442-4eaf-ba20-3af980277375%40googlegroups.com.
--
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/B-LA6BgrMdE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJM3AbLo5_mzyC5WyYKDsm95a5m%2B3N%3DL8Tn3UEdkorgb6w%40mail.gmail.com.
Hi,
thanks for the answer. Due to some reasons I chose option 2 (first load google charts, then load sp). My structure:
===schnipp===
google.charts.load("current", {packages:['calendar','timeline','table']});
google.charts.setOnLoadCallback(initialize());
function initialize(){
// Make sure the SharePoint script file 'sp.js' is loaded before your
// code runs.
SP.SOD.executeFunc('sp.js', 'SP.ClientContext', function () {});
SP.SOD.executeOrDelayUntilScriptLoaded(retrieveListItems,"sp.js");
}
function retrieveListItems() {
...
}
===schnapp===
In chrome this code throws following exception:
"Uncaught TypeError: google.visualization.Table is not a constructor at retrieveListItems"
The problem is that the object table is not loaded at that time (if I understand correctly), so code is stucking in retrieveListItems by this line:
"var table = new google.visualization.Table(document.getElementById('programlist'));"
Any further advice?THX!
To unsubscribe from this group and all its topics, send an email to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJM3AbLo5_mzyC5WyYKDsm95a5m%2B3N%3DL8Tn3UEdkorgb6w%40mail.gmail.com.
--
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 google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/CA%2BdhxBaS%3Dv4q1G5zFHeZ7zg_ju67Gn6pkv45eFDXT45viaPaxg%40mail.gmail.com.
Your google.charts.setOnLoadCallback() call gives initialize() as the argument. That calls your initialize function right then, even before the library is loaded, which then causes the error. Instead just give initialize (without the parens).
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/CA%2BdhxBaS%3Dv4q1G5zFHeZ7zg_ju67Gn6pkv45eFDXT45viaPaxg%40mail.gmail.com.
--
--
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/B-LA6BgrMdE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJPnMwwa85KW4Zc2P7ctCxrEOpJLL5uW3fCsetNqZOih0w%40mail.gmail.com.
THX!Hi,many thanks, I had misunderstood the way of passing the function as param. Now it seems to work perfectly in google, but not in IE. There I get no error code because debugger does not throw any exception loading perfectly. Is there an explanation for this different behaviour in IE?
To unsubscribe from this group and all its topics, send an email to google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/CAOtcSJPnMwwa85KW4Zc2P7ctCxrEOpJLL5uW3fCsetNqZOih0w%40mail.gmail.com.
--
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 google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/CA%2BdhxBbyEwY_f9kpZjcm4mDQbDJzdU1V3zm9aeWCrc%2B6z1R2QA%40mail.gmail.com.