Hi,
sorry for the delay in the answer, but I was checking the scripts. I analyzed the callback, before send it, and I saw that there was a stupid error in it. I correct it , and all works very well! So, the solution given me by Henry was perfect! Thank you very much again, JD --------- Original Message -------- Da: "Ryan Baxter" <[email protected]> To: "[email protected]" <[email protected]> Oggetto: Re: shindig problems Data: 05/11/12 20:05 Could you supply the code that is handling the callback? On Mon, Nov 5, 2012 at 10:41 AM, Justine25 <[email protected]> wrote: Hi Henry, thank you very much for the help. I just tried it and something seems to work. &nbsp; Now I don't have the bad response like before the script change. &nbsp; but now there is another problem... If I look the Content value that I obtain calling the json file of google, I see this response: "throw 1; &lt; don't be evil' &gt;{"http:\/\/gadget-doc-examples.googlecode.com\/svn\/trunk\/opensocial-gadgets\/json-data.txt":{"rc":200,"body":"{\"Name\" : \"Rowan\", \"Breed\" : \"Labrador Retriever\", \"Hobbies\" : [\"fetching\", \"swimming\", \"tugging\", \"eating\"]}","headers":{"Server":"Apache","Content-Type":"text\/plain","Age":"0"}}}" &nbsp; The nice thing is that I can see the content, but my shindig doesn't display it. Maybe do you know why? Thank you again in advance, JD &nbsp; &nbsp; &nbsp; &nbsp; --------- Original Message -------- Da: "Henry Saputra" &lt;[email protected]&gt; To: "[email protected]" &lt;[email protected]&gt; Oggetto: Re: shindig problems Data: 01/11/12 00:27 Looks like something wrong in the PHP container parsing logic. Could you got o the container.js and modify these lines: // IMPORTANT: EDITME: In a locked domain configuration, these should be changed to explicit values of // your unlocked host. You should not use %host% or %authority% replacements or these defaults in a // locked domain deployment. // Both of these values will likely be identical in a real locked domain deployment. "default.domain.unlocked.client" : "%host%", "default.domain.unlocked.server" : "%host%", - Henry On Wed, Oct 31, 2012 at 3:39 AM, Justine25 &lt;[email protected]&gt; wrote: &gt; Hello,&amp;nbsp; &gt; &gt; &gt; I'm new to Shindig and I have a big problem (I searched everywhere and &gt; did'nt find any answer). &gt; &gt; &gt; I installed and configured it on a ubuntu machine. I've checked, php is ok, &gt; curl, json, mcrypt and simplexml are enabled, Apache is in mod_rewrite &gt; on.&amp;nbsp; &gt; &gt; &gt; &amp;nbsp; &gt; &gt; &gt; I tested my shindig and I have this problem: when in the gadget there's a &gt; call to a json file (I &gt; tested&amp;nbsp;http://gadget-doc-examples.googlecode.com/svn/trunk/opensocial-gadgets/json-data.txt &gt; this data, found in an gadget examples) or to a php script that return a &gt; json structure, there is no data. &gt; &gt; &gt; &amp;nbsp; &gt; &gt; &gt; function makeJSONRequest() { &amp;nbsp; &amp;nbsp; &gt; &gt; &gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; var params = {}; &gt; &gt; &gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; params[gadgets.io.RequestParameters.CONTENT_TYPE] = &gt; gadgets.io.ContentType.JSON; &gt; &gt; &gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; // This URL returns a JSON-encoded string that &gt; represents a JavaScript object &gt; &gt; &gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; var url = &gt; "http://gadget-doc-examples.googlecode.com/svn/trunk/opensocial-gadgets/json-data.txt"; &gt; &gt; &gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; gadgets.io.makeRequest(url, response, params); &gt; &gt; &gt; &amp;nbsp; &amp;nbsp; }; &gt; &gt; &gt; &amp;nbsp; &gt; &gt; &gt; &amp;nbsp; &amp;nbsp; function response(obj) {&amp;nbsp; &gt; &gt; &gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; var jsondata = obj.data; &gt; &gt; &gt; &amp;nbsp; // code... &gt; &gt; &gt; &amp;nbsp; &amp;nbsp;&amp;nbsp; &gt; &gt; &gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;}; &gt; &gt; &gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;gadgets.util.registerOnLoadHandler(makeJSONRequest); &gt; &gt; &gt; &amp;nbsp; &gt; &gt; &gt; The jsondata variable is empty.&amp;nbsp; &gt; &gt; &gt; &amp;nbsp; &gt; &gt; &gt; I checked with httpfox the calls, and I saw that where I have an url in this &gt; format &gt; &gt; &gt; http://${cur['default.domain.locked.client']}/gadgets/makeRequest?url=https.... &gt; (the url of the gadget and other params) &gt; &gt; &gt; But I find strange that there is the JS variable instead of the name of the &gt; host. &amp;nbsp; &gt; &gt; &gt; &amp;nbsp; &gt; &gt; &gt; &amp;nbsp; &gt; &gt; &gt; Where did I make the mistake? &gt; &gt; &gt; I checked container.js, but I don't know if I have to change something &gt; there... &gt; &gt; &gt; &amp;nbsp; &gt; &gt; &gt; Thanks in advance fo every suggestion. &gt; &gt; &gt; &amp;nbsp; &gt; &gt; &gt; JD &gt; &gt; &gt; &amp;nbsp; &gt; &gt; &gt; &gt; -- &gt; Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP &gt; autenticato? GRATIS solo con Email.it: http://www.email.it/f &gt; &gt; Sponsor: &gt; Ami l'arte e vuoi arredare casa con stile? Su MisterCupido.com puoi &gt; acquistare le RIPRODUZIONI DEI QUADRI di: Van Gogh, Monet, Klimt, &gt; Modigliani, Cezanne, Hayez, Michelangelo, Raffaello, ecc &gt; Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=12386&amp;d=20121031 &gt; &gt; &gt; &gt; &gt; -- &gt; Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f &gt; &gt; Sponsor: &gt; Ami i PELUCHE? Acquistali online su MisterCupido.com! Tante offerte su: Disney, Simpson, Spongebob, Puffi, Sette Nani, Super Mario, Barbapap&Aring;&bull;, Teletubbies, Angry Birds, ecc &gt; Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=12384&amp;d=31-10 -- Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it: http://www.email.it/f Sponsor: Su MisterCupido.com puoi creare REGALI PERSONALIZZATI. Stampa le tue Foto su: Cuscini, Tazze, Puzzle, Peluche, Magliette, Poster... Consegne in tutta Italia in soli 2-3 giorni Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=12385&d=20121105 -- Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f Sponsor: Vuoi fare un regalo davvero originale? Su MisterCupido.com troverai centinaia di IDEE REGALO per tutte le tasche! Consegne in tutta Italia in soli 2-3 giorni Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=12387&d=5-11 -- Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it: http://www.email.it/f Sponsor: Ami i PELUCHE? Acquistali online su MisterCupido.com! Tante offerte su: Disney, Simpson, Spongebob, Puffi, Sette Nani, Super Mario, Barbapapà, Teletubbies, Angry Birds, ecc Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=12384&d=20121107 -- Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f Sponsor: Ami i PELUCHE? Acquistali online su MisterCupido.com! Tante offerte su: Disney, Simpson, Spongebob, Puffi, Sette Nani, Super Mario, Barbapapà, Teletubbies, Angry Birds, ecc Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=12384&d=7-11
