I'm trying to use XMLHttpRequests to grab data the GlobalGiving API
but I can't seem to get it working.
Here's what I'm doing just for a test, but I'm not getting anything
back. In fact, when I'm using the Chrome dev tools, I don't even see a
response to my request.
-- You received this message because you are subscribed to the Google Groups "GlobalGiving API" group.
To post to this group, send email to globalgiving-api@googlegroups.com.
To unsubscribe from this group, send email to globalgiving-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/globalgiving-api?hl=en.
Doing a simple curl (from the command line of any unix or mac) shows that the URL you are trying to HTTP GET is valid - so the problem definitely lies in your jQuery fun which I'm personally not well-mannered in. Now that we know it's a jQuery issue, perhaps you should ask for general help from that community..
> I'm trying to use XMLHttpRequests to grab data the GlobalGiving API
> but I can't seem to get it working.
> Here's what I'm doing just for a test, but I'm not getting anything
> back. In fact, when I'm using the Chrome dev tools, I don't even see a
> response to my request.
> -- > You received this message because you are subscribed to the Google Groups "GlobalGiving API" group.
> To post to this group, send email to globalgiving-api@googlegroups.com.
> To unsubscribe from this group, send email to globalgiving-api+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/globalgiving-api?hl=en.
-- You received this message because you are subscribed to the Google Groups "GlobalGiving API" group.
To post to this group, send email to globalgiving-api@googlegroups.com.
To unsubscribe from this group, send email to globalgiving-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/globalgiving-api?hl=en.
You need to set up a success function for JQuery to call when it returns
with the result. You may also have better success with JQuery.get. There are
a number of wonderful tutorials online. Here's one that a quick Google
search found:
> Doing a simple curl (from the command line of any unix or mac) shows that
> the URL you are trying to HTTP GET is valid - so the problem definitely lies
> in your jQuery fun which I'm personally not well-mannered in. Now that we
> know it's a jQuery issue, perhaps you should ask for general help from that
> community..
> > I'm trying to use XMLHttpRequests to grab data the GlobalGiving API
> > but I can't seem to get it working.
> > Here's what I'm doing just for a test, but I'm not getting anything
> > back. In fact, when I'm using the Chrome dev tools, I don't even see a
> > response to my request.
> > --
> > You received this message because you are subscribed to the Google Groups
> "GlobalGiving API" group.
> > To post to this group, send email to globalgiving-api@googlegroups.com.
> > To unsubscribe from this group, send email to
> globalgiving-api+unsubscribe@googlegroups.com<globalgiving-api%2Bunsubscrib e@googlegroups.com>
> .
> > For more options, visit this group at
> http://groups.google.com/group/globalgiving-api?hl=en.
> --
> You received this message because you are subscribed to the Google Groups
> "GlobalGiving API" group.
> To post to this group, send email to globalgiving-api@googlegroups.com.
> To unsubscribe from this group, send email to
> globalgiving-api+unsubscribe@googlegroups.com<globalgiving-api%2Bunsubscrib e@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/globalgiving-api?hl=en.
-- You received this message because you are subscribed to the Google Groups "GlobalGiving API" group.
To post to this group, send email to globalgiving-api@googlegroups.com.
To unsubscribe from this group, send email to globalgiving-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/globalgiving-api?hl=en.
> You need to set up a success function for JQuery to call when it returns
> with the result. You may also have better success with JQuery.get. There are
> a number of wonderful tutorials online. Here's one that a quick Google
> search found:
> On Thu, May 6, 2010 at 11:16 PM, Mark Silverberg <m...@marksilver.net>wrote:
> > Hi there,
> > Doing a simple curl (from the command line of any unix or mac) shows that
> > the URL you are trying to HTTP GET is valid - so the problem definitely lies
> > in your jQuery fun which I'm personally not well-mannered in. Now that we
> > know it's a jQuery issue, perhaps you should ask for general help from that
> > community..
> > > I'm trying to use XMLHttpRequests to grab data the GlobalGiving API
> > > but I can't seem to get it working.
> > > Here's what I'm doing just for a test, but I'm not getting anything
> > > back. In fact, when I'm using the Chrome dev tools, I don't even see a
> > > response to my request.
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > "GlobalGiving API" group.
> > > To post to this group, send email to globalgiving-api@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > globalgiving-api+unsubscribe@googlegroups.com<globalgiving-api%2Bunsubscrib e@googlegroups.com>
> > .
> > > For more options, visit this group at
> >http://groups.google.com/group/globalgiving-api?hl=en.
> > --
> > You received this message because you are subscribed to the Google Groups
> > "GlobalGiving API" group.
> > To post to this group, send email to globalgiving-api@googlegroups.com.
> > To unsubscribe from this group, send email to
> > globalgiving-api+unsubscribe@googlegroups.com<globalgiving-api%2Bunsubscrib e@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/globalgiving-api?hl=en.
> --
> You received this message because you are subscribed to the Google Groups "GlobalGiving API" group.
> To post to this group, send email to globalgiving-api@googlegroups.com.
> To unsubscribe from this group, send email to globalgiving-api+unsubscribe@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/globalgiving-api?hl=en.
-- You received this message because you are subscribed to the Google Groups "GlobalGiving API" group.
To post to this group, send email to globalgiving-api@googlegroups.com.
To unsubscribe from this group, send email to globalgiving-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/globalgiving-api?hl=en.
Hi Ray,
If you don't mind, can you post up the entire HTML (and any JS) file
that you're calling? This will make it easier for me to help you debug
the problem.
Thanks,
Kevin
On May 8, 2:55 pm, rayd <ray.diciac...@gmail.com> wrote:
> but there is no actual data in the response.
> I added a success and error response functions, and they indicate that
> the data in the response is null.
> Thanks a lot for your help!
> - Ray
> On May 6, 11:42 pm, Kevin Conroy <kevincon...@gmail.com> wrote:
> > Thanks Mark!
> > Yes, it looks like a JQuery problem. I'd recommend checking out the
> > documentation for the ajax call:
> > You need to set up a success function for JQuery to call when it returns
> > with the result. You may also have better success with JQuery.get. There are
> > a number of wonderful tutorials online. Here's one that a quick Google
> > search found:
> > Hope this helps. If not, please write back and post more of your code so we
> > can try to help.
> > Cheers,
> > Kevin
> > Kevin Conroy
> > E-mail: kevincon...@gmail.com
> > On Thu, May 6, 2010 at 11:16 PM, Mark Silverberg <m...@marksilver.net>wrote:
> > > Hi there,
> > > Doing a simple curl (from the command line of any unix or mac) shows that
> > > the URL you are trying to HTTP GET is valid - so the problem definitely lies
> > > in your jQuery fun which I'm personally not well-mannered in. Now that we
> > > know it's a jQuery issue, perhaps you should ask for general help from that
> > > community..
> > > > I'm trying to use XMLHttpRequests to grab data the GlobalGiving API
> > > > but I can't seem to get it working.
> > > > Here's what I'm doing just for a test, but I'm not getting anything
> > > > back. In fact, when I'm using the Chrome dev tools, I don't even see a
> > > > response to my request.
> > > > --
> > > > You received this message because you are subscribed to the Google Groups
> > > "GlobalGiving API" group.
> > > > To post to this group, send email to globalgiving-api@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > globalgiving-api+unsubscribe@googlegroups.com<globalgiving-api%2Bunsubscrib e@googlegroups.com>
> > > .
> > > > For more options, visit this group at
> > >http://groups.google.com/group/globalgiving-api?hl=en.
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "GlobalGiving API" group.
> > > To post to this group, send email to globalgiving-api@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > globalgiving-api+unsubscribe@googlegroups.com<globalgiving-api%2Bunsubscrib e@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/globalgiving-api?hl=en.
> > --
> > You received this message because you are subscribed to the Google Groups "GlobalGiving API" group.
> > To post to this group, send email to globalgiving-api@googlegroups.com.
> > To unsubscribe from this group, send email to globalgiving-api+unsubscribe@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/globalgiving-api?hl=en.
> --
> You received this message because you are subscribed to the Google Groups "GlobalGiving API" group.
> To post to this group, send email to globalgiving-api@googlegroups.com.
> To unsubscribe from this group, send email to globalgiving-api+unsubscribe@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/globalgiving-api?hl=en.
-- You received this message because you are subscribed to the Google Groups "GlobalGiving API" group.
To post to this group, send email to globalgiving-api@googlegroups.com.
To unsubscribe from this group, send email to globalgiving-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/globalgiving-api?hl=en.
> Hi Ray,
> If you don't mind, can you post up the entire HTML (and any JS) file
> that you're calling? This will make it easier for me to help you debug
> the problem.
> Thanks,
> Kevin
> On May 8, 2:55 pm, rayd <ray.diciac...@gmail.com> wrote:
> > I'm not sure that it's a jQuery problem -- using Firebug, I can see
> > that a get request is being sent out with the following headers:
> > but there is no actual data in the response.
> > I added a success and error response functions, and they indicate that
> > the data in the response is null.
> > Thanks a lot for your help!
> > - Ray
> > On May 6, 11:42 pm, Kevin Conroy <kevincon...@gmail.com> wrote:
> > > Thanks Mark!
> > > Yes, it looks like a JQuery problem. I'd recommend checking out the
> > > documentation for the ajax call:
> > > You need to set up a success function for JQuery to call when it returns
> > > with the result. You may also have better success with JQuery.get. There are
> > > a number of wonderful tutorials online. Here's one that a quick Google
> > > search found:
> > > Hope this helps. If not, please write back and post more of your code so we
> > > can try to help.
> > > Cheers,
> > > Kevin
> > > Kevin Conroy
> > > E-mail: kevincon...@gmail.com
> > > On Thu, May 6, 2010 at 11:16 PM, Mark Silverberg <m...@marksilver.net>wrote:
> > > > Hi there,
> > > > Doing a simple curl (from the command line of any unix or mac) shows that
> > > > the URL you are trying to HTTP GET is valid - so the problem definitely lies
> > > > in your jQuery fun which I'm personally not well-mannered in. Now that we
> > > > know it's a jQuery issue, perhaps you should ask for general help from that
> > > > community..
> > > > > I'm trying to use XMLHttpRequests to grab data the GlobalGiving API
> > > > > but I can't seem to get it working.
> > > > > Here's what I'm doing just for a test, but I'm not getting anything
> > > > > back. In fact, when I'm using the Chrome dev tools, I don't even see a
> > > > > response to my request.
> > > > > --
> > > > > You received this message because you are subscribed to the Google Groups
> > > > "GlobalGiving API" group.
> > > > > To post to this group, send email to globalgiving-api@googlegroups.com.
> > > > > To unsubscribe from this group, send email to
> > > > globalgiving-api+unsubscribe@googlegroups.com<globalgiving-api%2Bunsubscrib e@googlegroups.com>
> > > > .
> > > > > For more options, visit this group at
> > > >http://groups.google.com/group/globalgiving-api?hl=en.
> > > > --
> > > > You received this message because you are subscribed to the Google Groups
> > > > "GlobalGiving API" group.
> > > > To post to this group, send email to globalgiving-api@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > globalgiving-api+unsubscribe@googlegroups.com<globalgiving-api%2Bunsubscrib e@googlegroups.com>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/globalgiving-api?hl=en.
> > > --
> > > You received this message because you are subscribed to the Google Groups "GlobalGiving API" group.
> > > To post to this group, send email to globalgiving-api@googlegroups.com.
> > > To unsubscribe from this group, send email to globalgiving-api+unsubscribe@googlegroups.com.
> > > For more options, visit this group athttp://groups.google.com/group/globalgiving-api?hl=en.
> > --
> > You received this message because you are subscribed to the Google Groups "GlobalGiving API" group.
> > To post to this group, send email to globalgiving-api@googlegroups.com.
> > To unsubscribe from this group, send email to globalgiving-api+unsubscribe@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/globalgiving-api?hl=en.
> --
> You received this message because you are subscribed to the Google Groups "GlobalGiving API" group.
> To post to this group, send email to globalgiving-api@googlegroups.com.
> To unsubscribe from this group, send email to globalgiving-api+unsubscribe@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/globalgiving-api?hl=en.
-- You received this message because you are subscribed to the Google Groups "GlobalGiving API" group.
To post to this group, send email to globalgiving-api@googlegroups.com.
To unsubscribe from this group, send email to globalgiving-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/globalgiving-api?hl=en.
The gist of the problem of using Javascript to access our API is cross-
domain scripting, which most (if not all) browsers prevent, due to
security concerns.
That is the reason you are getting an error result and no data. The
browser security is preventing it.
Here is something I tried, after reading the Json documentation:
However, GlobalGiving has not implemented to handle the callback=?
parameter that gets prepended to the query String.
When I tried this, however, I do get data back in the response from a
call. For some reason though, its not passing application/json as the
Content-Type, or Accept Headers, as I would want to do. It seems that
in the Request Header, the Accept header is "*/*", the GlobalGiving
API defaults to xml if this header is not specified as application/
json.
The response is xml however, and readable, but a Javascript error
occurs on the data, as it seems its trying to parse as json, or its
trying to parse the response as a "function" call, since the proposed
spec for jsonp would require GlobalGiving to wrap the json response in
a "function call", like: jsonp123123123({the json response goes
here})
But I see two current problems accessing the GG API this way:
1) JQuery is not setting the correct headers to tell the GG API to
process and format the response in json
2) GG API does not recognize the callback parameter to know to wrap
the json response in a function call.
I hope this helps, and if you can get this working (ie, sending to GG
API with the correct Accept and Content-Type Headers), then I will see
what can be done to push GG to make a change to their API to wrap the
response when a callback parameter is found.
Steve
On May 8, 4:47 pm, rayd <ray.diciac...@gmail.com> wrote:
> On May 8, 3:09 pm, Kevin Conroy <kevincon...@gmail.com> wrote:
> > Hi Ray,
> > If you don't mind, can you post up the entire HTML (and any JS) file
> > that you're calling? This will make it easier for me to help you debug
> > the problem.
> > Thanks,
> > Kevin
> > On May 8, 2:55 pm, rayd <ray.diciac...@gmail.com> wrote:
> > > I'm not sure that it's a jQuery problem -- using Firebug, I can see
> > > that a get request is being sent out with the following headers:
> > > but there is no actual data in the response.
> > > I added a success and error response functions, and they indicate that
> > > the data in the response is null.
> > > Thanks a lot for your help!
> > > - Ray
> > > On May 6, 11:42 pm, Kevin Conroy <kevincon...@gmail.com> wrote:
> > > > Thanks Mark!
> > > > Yes, it looks like a JQuery problem. I'd recommend checking out the
> > > > documentation for the ajax call:
> > > > You need to set up a success function for JQuery to call when it returns
> > > > with the result. You may also have better success with JQuery.get. There are
> > > > a number of wonderful tutorials online. Here's one that a quick Google
> > > > search found:
> > > > On Thu, May 6, 2010 at 11:16 PM, Mark Silverberg <m...@marksilver.net>wrote:
> > > > > Hi there,
> > > > > Doing a simple curl (from the command line of any unix or mac) shows that
> > > > > the URL you are trying to HTTP GET is valid - so the problem definitely lies
> > > > > in your jQuery fun which I'm personally not well-mannered in. Now that we
> > > > > know it's a jQuery issue, perhaps you should ask for general help from that
> > > > > community..
> > > > > > I'm trying to use XMLHttpRequests to grab data the GlobalGiving API
> > > > > > but I can't seem to get it working.
> > > > > > Here's what I'm doing just for a test, but I'm not getting anything
> > > > > > back. In fact, when I'm using the Chrome dev tools, I don't even see a
> > > > > > response to my request.
> > > > > > --
> > > > > > You received this message because you are subscribed to the Google Groups
> > > > > "GlobalGiving API" group.
> > > > > > To post to this group, send email to globalgiving-api@googlegroups.com.
> > > > > > To unsubscribe from this group, send email to
> > > > > globalgiving-api+unsubscribe@googlegroups.com<globalgiving-api%2Bunsubscrib e@googlegroups.com>
> > > > > .
> > > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/globalgiving-api?hl=en.
> > > > > --
> > > > > You received this message because you are subscribed to the Google Groups
> > > > > "GlobalGiving API" group.
> > > > > To post to this group, send email to globalgiving-api@googlegroups.com.
> > > > > To unsubscribe from this group, send email to
> > > > > globalgiving-api+unsubscribe@googlegroups.com<globalgiving-api%2Bunsubscrib e@googlegroups.com>
> > > > > .
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/globalgiving-api?hl=en.
> > > > --
> > > > You received this message because you are subscribed to the Google Groups "GlobalGiving API" group.
> > > > To post to this group, send email to globalgiving-api@googlegroups.com.
> > > > To unsubscribe from this group, send email to globalgiving-api+unsubscribe@googlegroups.com.
> > > > For more options, visit this group athttp://groups.google.com/group/globalgiving-api?hl=en.
> > > --
> > > You received this message because you are subscribed to the Google Groups "GlobalGiving API" group.
> > > To post to this group, send email to globalgiving-api@googlegroups.com.
> > > To unsubscribe from this group, send email to globalgiving-api+unsubscribe@googlegroups.com.
> > > For more options, visit this group athttp://groups.google.com/group/globalgiving-api?hl=en.
> > --
> > You received this message because you are subscribed to the Google Groups "GlobalGiving API" group.
> > To post to this group, send email to globalgiving-api@googlegroups.com.
> > To unsubscribe from this group, send email to globalgiving-api+unsubscribe@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/globalgiving-api?hl=en.
> --
> You received this message because you are subscribed to the Google Groups "GlobalGiving API" group.
> To post to this group, send email to globalgiving-api@googlegroups.com.
> To unsubscribe from this group, send email to globalgiving-api+unsubscribe@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/globalgiving-api?hl=en.
-- You received this message because you are subscribed to the Google Groups "GlobalGiving API" group.
To post to this group, send email to globalgiving-api@googlegroups.com.
To unsubscribe from this group, send email to globalgiving-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/globalgiving-api?hl=en.
Regarding the Headers required to get a json response....
Must be name="Accept" (or "accept", case insensitive),
value="application/json", or simply "json".
Any other value, or if the header is missing, will result in xml
formatted response.
I cannot figure out why when setting the datatype: 'jsonp', it seems
to crush any other uses of "contentType:", or event in the beforeSend
call where the explicit header is set (xhr.setRequestHeadaer('Accept',
'applicaiton/json')).
Strange behavior for sure, but the cross domain ajax remains a problem
without a standard solution.
Steve
On May 9, 11:24 am, "Steve R." <rogers1...@gmail.com> wrote:
> The gist of the problem of using Javascript to access our API is cross-
> domain scripting, which most (if not all) browsers prevent, due to
> security concerns.
> That is the reason you are getting an error result and no data. The
> browser security is preventing it.
> Here is something I tried, after reading the Json documentation:
> However, GlobalGiving has not implemented to handle the callback=?
> parameter that gets prepended to the query String.
> When I tried this, however, I do get data back in the response from a
> call. For some reason though, its not passing application/json as the
> Content-Type, or Accept Headers, as I would want to do. It seems that
> in the Request Header, the Accept header is "*/*", the GlobalGiving
> API defaults to xml if this header is not specified as application/
> json.
> The response is xml however, and readable, but a Javascript error
> occurs on the data, as it seems its trying to parse as json, or its
> trying to parse the response as a "function" call, since the proposed
> spec for jsonp would require GlobalGiving to wrap the json response in
> a "function call", like: jsonp123123123({the json response goes
> here})
> But I see two current problems accessing the GG API this way:
> 1) JQuery is not setting the correct headers to tell the GG API to
> process and format the response in json
> 2) GG API does not recognize the callback parameter to know to wrap
> the json response in a function call.
> I hope this helps, and if you can get this working (ie, sending to GG
> API with the correct Accept and Content-Type Headers), then I will see
> what can be done to push GG to make a change to their API to wrap the
> response when a callback parameter is found.
> Steve
> On May 8, 4:47 pm, rayd <ray.diciac...@gmail.com> wrote:
> > On May 8, 3:09 pm, Kevin Conroy <kevincon...@gmail.com> wrote:
> > > Hi Ray,
> > > If you don't mind, can you post up the entire HTML (and any JS) file
> > > that you're calling? This will make it easier for me to help you debug
> > > the problem.
> > > Thanks,
> > > Kevin
> > > On May 8, 2:55 pm, rayd <ray.diciac...@gmail.com> wrote:
> > > > I'm not sure that it's a jQuery problem -- using Firebug, I can see
> > > > that a get request is being sent out with the following headers:
> > > > but there is no actual data in the response.
> > > > I added a success and error response functions, and they indicate that
> > > > the data in the response is null.
> > > > Thanks a lot for your help!
> > > > - Ray
> > > > On May 6, 11:42 pm, Kevin Conroy <kevincon...@gmail.com> wrote:
> > > > > Thanks Mark!
> > > > > Yes, it looks like a JQuery problem. I'd recommend checking out the
> > > > > documentation for the ajax call:
> > > > > You need to set up a success function for JQuery to call when it returns
> > > > > with the result. You may also have better success with JQuery.get. There are
> > > > > a number of wonderful tutorials online. Here's one that a quick Google
> > > > > search found:
> > > > > On Thu, May 6, 2010 at 11:16 PM, Mark Silverberg <m...@marksilver.net>wrote:
> > > > > > Hi there,
> > > > > > Doing a simple curl (from the command line of any unix or mac) shows that
> > > > > > the URL you are trying to HTTP GET is valid - so the problem definitely lies
> > > > > > in your jQuery fun which I'm personally not well-mannered in. Now that we
> > > > > > know it's a jQuery issue, perhaps you should ask for general help from that
> > > > > > community..
> > > > > > On May 6, 2010, at 9:31 PM, rayd wrote:
> > > > > > > I'm trying to use XMLHttpRequests to grab data the GlobalGiving API
> > > > > > > but I can't seem to get it working.
> > > > > > > Here's what I'm doing just for a test, but I'm not getting anything
> > > > > > > back. In fact, when I'm using the Chrome dev tools, I don't even see a
> > > > > > > response to my request.
> > > > > > > --
> > > > > > > You received this message because you are subscribed to the Google Groups
> > > > > > "GlobalGiving API" group.
> > > > > > > To post to this group, send email to globalgiving-api@googlegroups.com.
> > > > > > > To unsubscribe from this group, send email to
> > > > > > globalgiving-api+unsubscribe@googlegroups.com<globalgiving-api%2Bunsubscrib e@googlegroups.com>
> > > > > > .
> > > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/globalgiving-api?hl=en.
> > > > > > --
> > > > > > You received this message because you are subscribed to the Google Groups
> > > > > > "GlobalGiving API" group.
> > > > > > To post to this group, send email to globalgiving-api@googlegroups.com.
> > > > > > To unsubscribe from this group, send email to
> > > > > > globalgiving-api+unsubscribe@googlegroups.com<globalgiving-api%2Bunsubscrib e@googlegroups.com>
> > > > > > .
> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/globalgiving-api?hl=en.
> > > > > --
> > > > > You received this message because you are subscribed to the Google Groups "GlobalGiving API" group.
> > > > > To post to this group, send email to globalgiving-api@googlegroups.com.
> > > > > To unsubscribe from this group, send email to globalgiving-api+unsubscribe@googlegroups.com.
> > > > > For more options, visit this group athttp://groups.google.com/group/globalgiving-api?hl=en.
> > > > --
> > > > You received this message because you are subscribed to the Google Groups "GlobalGiving API" group.
> > > > To post to this group, send email to globalgiving-api@googlegroups.com.
> > > > To unsubscribe from this group, send email to globalgiving-api+unsubscribe@googlegroups.com.
> > > > For more options, visit this group athttp://groups.google.com/group/globalgiving-api?hl=en.
> > > --
> > > You received this message because you are subscribed to the Google Groups "GlobalGiving API" group.
> > > To post to this group, send email to globalgiving-api@googlegroups.com.
> > > To unsubscribe from this group, send email to globalgiving-api+unsubscribe@googlegroups.com.
> > > For more options, visit this group athttp://groups.google.com/group/globalgiving-api?hl=en.
> > --
> > You received this message because you are subscribed to the Google Groups "GlobalGiving API" group.
> > To post to this group, send email to
-- You received this message because you are subscribed to the Google Groups "GlobalGiving API" group.
To post to this group, send email to globalgiving-api@googlegroups.com.
To unsubscribe from this group, send email to globalgiving-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/globalgiving-api?hl=en.
Steve, thank you very much! That totally makes sense -- I should have
thought of the security issues... I'll give this jsonp stuff a read
and a try and then I'll report back with the results.
thanks a ton!
- Ray
On May 9, 4:36 pm, "Steve R." <rogers1...@gmail.com> wrote:
> I posted some questions on the JSON message board, and subsequently
> filed a bug report:
> --
> You received this message because you are subscribed to the Google Groups "GlobalGiving API" group.
> To post to this group, send email to globalgiving-api@googlegroups.com.
> To unsubscribe from this group, send email to globalgiving-api+unsubscribe@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/globalgiving-api?hl=en.
-- You received this message because you are subscribed to the Google Groups "GlobalGiving API" group.
To post to this group, send email to globalgiving-api@googlegroups.com.
To unsubscribe from this group, send email to globalgiving-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/globalgiving-api?hl=en.
so it's able to circumvent the cross-domain requests by just
downloading the "script", which is actually xml/json.
since its not using XHRs, none of the XHR callbacks will work using
this method. so i dont think there is any way to set the headers to
specify that we want JSON as opposed to XML. what we need is an
addition to the globalgiving api to include a query string parameter
to specify what format we would like...
On May 11, 11:50 pm, rayd <ray.diciac...@gmail.com> wrote:
> Steve, thank you very much! That totally makes sense -- I should have
> thought of the security issues... I'll give this jsonp stuff a read
> and a try and then I'll report back with the results.
> thanks a ton!
> - Ray
> On May 9, 4:36 pm, "Steve R." <rogers1...@gmail.com> wrote:
> > I posted some questions on the JSON message board, and subsequently
> > filed a bug report:
> > --
> > You received this message because you are subscribed to the Google Groups "GlobalGiving API" group.
> > To post to this group, send email to globalgiving-api@googlegroups.com.
> > To unsubscribe from this group, send email to globalgiving-api+unsubscribe@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/globalgiving-api?hl=en.
> --
> You received this message because you are subscribed to the Google Groups "GlobalGiving API" group.
> To post to this group, send email to globalgiving-api@googlegroups.com.
> To unsubscribe from this group, send email to globalgiving-api+unsubscribe@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/globalgiving-api?hl=en.
-- You received this message because you are subscribed to the Google Groups "GlobalGiving API" group.
To post to this group, send email to globalgiving-api@googlegroups.com.
To unsubscribe from this group, send email to globalgiving-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/globalgiving-api?hl=en.