[orkut-developer] Re: Getting 404 while doing makeRequest in sandbox

2008-10-28 Thread Jason
Hi Imoracle. I assume, then, that the data you're requesting is a JSON string? You can specify that you're expecting JSON content by including a parameter, which the following page demonstrates (see JSON Requests section): http://code.google.com/p/opensocial-resources/wiki/GadgetsMakeRequest Thi

[orkut-developer] Re: Getting 404 while doing makeRequest in sandbox

2008-10-28 Thread imoracle
Hi Jason, Well as I can see either its a bug in makeRequest or I am trying to do something which is not allowed: I tried changing my output from the requested URL: Initially it was this: (the makeRequest failed) --- "sm":["

[orkut-developer] Re: Getting 404 while doing makeRequest in sandbox

2008-10-28 Thread Jason
I got your code to work by removing the keyword 'function' from within the body of init: ... var refreshInterval = 0; makeCachedRequest(url, parseJSON, params, refreshInterval); The URL you are trying to fetch from doesn't exist so it returns a 404 as expected. Try another URL (even http://www.g