Sorry for not knowing what I am doing...
New question: why is stuff being dropped from the "response" as it is
displayed?
If at
http://angularjs.org/Service:$xhr I do a JSON request for
http://spreadsheets.google.com/feeds/list/pouqRkV5D_eZT_VdOKu7CQA/od6/public/values?alt=json-in-script&callback=JSON_CALLBACK
I get back:
code=200 response={
"encoding":"UTF-8",
"feed":{
"author":[{
"email":{
},
"name":{
}}],
"category":[{
"scheme":"
http://schemas.google.com/spreadsheets/2006",
"term":"
http://schemas.google.com/spreadsheets/2006#list"}],
"entry":[{
"category":[{
"scheme":"
http://schemas.google.com/spreadsheets/2006",
"term":"
http://schemas.google.com/spreadsheets/2006#list"}],
"content":{
"type":"text"},
"gsx$field":{
},
"gsx$html":{
},
"id":{
},
"link":[{
"href":"
https://spreadsheets.google.com/feeds/list/
pouqRkV5D_eZT_VdOKu7CQA/od6/public/values/cokwr",
"rel":"self",
"type":"application/atom+xml"}],
"title":{
"type":"text"},
"updated":{
}}],
"id":{
},
"link":[{
"href":"
https://spreadsheets.google.com/pub?
key=pouqRkV5D_eZT_VdOKu7CQA",
"rel":"alternate",
"type":"text/html"},{
"href":"
https://spreadsheets.google.com/feeds/list/
pouqRkV5D_eZT_VdOKu7CQA/od6/public/values",
"rel":"
http://schemas.google.com/g/2005#feed",
"type":"application/atom+xml"},{
"href":"
https://spreadsheets.google.com/feeds/list/
pouqRkV5D_eZT_VdOKu7CQA/od6/public/values?alt=json-in-script",
"rel":"self",
"type":"application/atom+xml"}],
"openSearch$startIndex":{
},
"openSearch$totalResults":{
},
"title":{
"type":"text"},
"updated":{
},
"xmlns":"
http://www.w3.org/2005/Atom",
"xmlns$gsx":"
http://schemas.google.com/spreadsheets/2006/
extended",
"xmlns$openSearch":"
http://a9.com/-/spec/opensearchrss/1.0/"},
"version":"1.0"}
which doesn't have any of the actual data. But if I execute this:
<html><body>
<div id="headline"></div>
<script type="text/javascript">
function JSON_CALLBACK(json)
{ document.getElementById('headline').innerHTML =
json.feed.entry[0].gsx$html.$t; }
</script>
<script type="text/javascript"
src="
http://spreadsheets.google.com/feeds/list/pouqRkV5D_eZT_VdOKu7CQA/
od6/public/values?alt=json-in-script&callback=JSON_CALLBACK">
</script>
</body></html>
I get this (according to Firebug):
JSON_CALLBACK({"version":"1.0","encoding":"UTF-8","feed":
{"xmlns":"
http://www.w3.org/2005/Atom","xmlns$openSearch":"http://
a9.com/-/spec/opensearchrss/1.0/","xmlns$gsx":"http://
schemas.google.com/spreadsheets/2006/extended","id":{"$t":"https://
spreadsheets.google.com/feeds/list/pouqRkV5D_eZT_VdOKu7CQA/od6/public/
values"},"updated":{"$t":"2007-06-12T16:12:07.006Z"},"category":
[{"scheme":"
http://schemas.google.com/spreadsheets/
2006","term":"
http://schemas.google.com/spreadsheets/
2006#list"}],"title":{"type":"text","$t":"Sheet1"},"link":
[{"rel":"alternate","type":"text/html","href":"https://
spreadsheets.google.com/pub?key\u003dpouqRkV5D_eZT_VdOKu7CQA"},
{"rel":"
http://schemas.google.com/g/2005#feed","type":"application/atom
+xml","href":"
https://spreadsheets.google.com/feeds/list/
pouqRkV5D_eZT_VdOKu7CQA/od6/public/values"},
{"rel":"self","type":"application/atom+xml","href":"https://
spreadsheets.google.com/feeds/list/pouqRkV5D_eZT_VdOKu7CQA/od6/public/
values?alt\u003djson-in-script"}],"author":[{"name":
{"$t":"
todd.huss.work"},"email":
{"$t":"
todd.hu...@gmail.com"}}],"openSearch$totalResults":
{"$t":"1"},"openSearch$startIndex":{"$t":"1"},"entry":[{"id":
{"$t":"
https://spreadsheets.google.com/feeds/list/
pouqRkV5D_eZT_VdOKu7CQA/od6/public/values/cokwr"},"updated":
{"$t":"2007-06-12T16:12:07.006Z"},"category":[{"scheme":"http://
schemas.google.com/spreadsheets/2006","term":"http://
schemas.google.com/spreadsheets/2006#list"}],"title":
{"type":"text","$t":"headline"},"content":{"type":"text","$t":"html:
Palm releases Linux based \u003ca href\u003d\"
http://www.palm.com/us/
products/mobilecompanion/foleo/\"\u003eFoleo\u003c/a\u003e"},"link":
[{"rel":"self","type":"application/atom+xml","href":"https://
spreadsheets.google.com/feeds/list/pouqRkV5D_eZT_VdOKu7CQA/od6/public/
values/cokwr"}],"gsx$field":{"$t":"headline"},"gsx$html":{"$t":"Palm
releases Linux based \u003ca href\u003d\"
http://www.palm.com/us/
products/mobilecompanion/foleo/\"\u003eFoleo\u003c/a\u003e"}}]}});
I assume the same stuff is retrieved. So is the databeing saved and
just not shown?
Thanks,
Jerry