I'm trying to present some data from a Google spreadsheet on a Google Sites 
page using their ?alt=json-in-script parameter when fetching the data, but 
all I get is "failed to load external url".

Right now I'm trying out an example from one of the Google developer guides 
but I still get the same result. In this case the specific error message is 
"25+36 - 155: failed to load external url 
full?alt=json-in-script&callback=listEvents" and it's returned from the 
code below, found at this linkhttps://developers.google.com/gdata/docs/json.

<h3>Upcoming Google Developer Events</h3>
<div id="agenda"></div>
<script type="text/javascript">
  function listEvents(root) {

    var feed = root.feed;
    var entries = feed.entry || [];
    var html = ['<ul>'];

    for (var i = 0; i < entries.length; ++i) {
      var entry = entries[i];
      var title = (entry.title.type == 'html') ? entry.title.$t : 
escape(entry.title.$t);
      var start = (entry['gd$when']) ? entry['gd$when'][0].startTime : ""; 

      html.push('<li>', start, ' ', title, '</li>');
    }

    html.push('</ul>');
    document.getElementById("agenda").innerHTML = html.join("");
  }</script>
<script type="text/javascript" 
src="http://www.google.com/calendar/feeds/[email protected]/public/full?alt=json-in-script&callback=listEvents";></script>

Has anyone got a clue why this is happening? Is the API depricated or what? 
Their guides are not that well version handled so it's hard to now if what 
you're reading is up to date.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Spreadsheets API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to