Not sure what was going on but copied and pasted your code into the script and it works fine now.
Thanks for your help! On Tue, Feb 11, 2014 at 12:16 PM, asgallant <[email protected]>wrote: > This is what the script tag should be: > > <script type='text/javascript' src='https://www.google.com/jsapi > '></script> > > On Tuesday, February 11, 2014 2:05:44 PM UTC-5, Kurt Heiss wrote: > >> Hi- >> >> I tried the correction you indicate but still receive an error - this >> time the error reads "Invalid script or HTML content: >> http://script.google.com/https/:www.google.com/jsapi:2+1 - 2: Unexpected >> token <." >> >> My code is as follows: >> >> <html> >> >> <head> >> >> <script type='text/javascript' src='https//:www.google.com/jsapi >> '></script> >> >> <script type='text/javascript'> >> >> google.load('visualization', '1', {packages:['corechart']}); >> >> google.setOnLoadCallback(drawRegionsMap); >> >> function drawRegionsMap() { >> >> var data = google.visualization.arrayToDataTable([ >> >> ['Code','Country','Value', {role:'tooltip', p: {html: true}}], >> >> ['AR','Argentina', 3,'Alexis Craig'], >> >> ['AU','Austrailia',4,'Kit Theeraprawat'], >> >> ['AT','Austria', 1,'Kit Theeraprawat'], >> >> ['BE','Belgium', 1,'Alexis Craig'], >> >> ['BR','Brazil', 3, 'Alexis Craig'], >> >> ['CA','Canada', 2, 'Kit Theeraprawat'], >> >> ['CL','Chile', 3, 'Alexis Craig'], >> >> ['CN','China', 4, 'Kit Theeraprawat'], >> >> ['CO','Colombia', 3,'Alexis Craig'], >> >> ['HR','Croatia', 1,'Alexis Craig'], >> >> ['CZ','Czech Republic', 1, 'Alexis Craig'], >> >> ['DK','Denmark', 1,'Alexis Craig'], >> >> >> >> ]); >> >> var options = { >> >> >> >> colorAxis: { >> >> //colors: ['green', 'blue', 'yellow', 'red'], >> >> colors: ['green', '#009925', 'blue', '#3369E8', 'yellow', >> '#EEB211', 'red', '#D50F25', 'grey', '#666666'], >> >> minValue: 1, >> >> maxValue: 5 >> >> }, >> >> legend: 'none' >> >> }; >> >> var chart = new google.visualization.GeoChart( >> document.getElementById('chart_div')); >> >> chart.draw(data, options); >> >> }; >> >> </script> >> >> </head> >> >> <body> >> >> <div id="chart_div" style="width: 1000px; height: 600px;"></div> >> >> </body> >> >> </html> >> >> >> >> On Tue, Feb 11, 2014 at 10:54 AM, asgallant <[email protected]>wrote: >> >>> Unless this is a typo from pasting the error message here, the URL is >>> malformed: you are missing the "//" after "https:", it should be " >>> https://www.google.com/jsapi" >>> >>> >>> On Tuesday, February 11, 2014 1:11:19 PM UTC-5, Kurt Heiss wrote: >>>> >>>> Hi- >>>> >>>> I am receiving an error message of "Invalid script or HTML content: >>>> HtmlOutput:3+40 - 68: malformed url https:www.google.com/jsapi." for a >>>> previously tested, working script. >>>> >>>> Unable to immediately discern what the problem is. >>>> >>>> Please advise. >>>> >>>> Regards, >>>> Kurt >>>> >>> -- >>> 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. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >> >> -- > 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. > For more options, visit https://groups.google.com/groups/opt_out. > -- 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. For more options, visit https://groups.google.com/groups/opt_out.
