Well, apparently it DOES work..the problem, as usual was on my behalf - after the port forwarding and reading this post - http://groups.google.com/group/opensocial-orkut/browse_thread/thread/d6d6ad9cded8a1cf/b701cfe2d7cb7ebd?lnk=gst&q=kogan#b701cfe2d7cb7ebd everything turned out OK :)
On Dec 12, 4:57 pm, Kogan <kog...@gmail.com> wrote: > Jason Hi, thanks for the reply - > > I didn't quite understand what you wrote about the GGE..I of course > didn't test my application IN IT (like I think you meant > to say) I uploaded the xml file to the sandbox using it... > (I also hosted my xml file on another server I have..and the same > problems I am about to explain happened that way too) > > 1. regarding the "localhost:8080" remark I understand, and I will do > port forwarding for my router in order to > change the "localhost" to the computer's IP number. Hopefully it will > work.. > > 2. BUT, regarding the makerequest problem, it still exists, I'll > explain what it is: > I tried your code that you suggested here > -http://groups.google.com/group/opensocial-orkut/browse_thread/thread/... > (the one I pasted here above) in the sandbox, and it does not work! > but, this same code works when I use the OpenSocial Dev App... > > so, there seems to be a problem with makeRequest using the > sandbox ..because the code DOES work in the Dev APP application.. > seems that the problem is the same one as was written in that same > link -http://groups.google.com/group/opensocial-orkut/browse_thread/thread/... > > also - I hope it's OK, but I also opened a specific thread regarding > this problem alone (to help others find it), here > -http://groups.google.com/group/opensocial-orkut/browse_thread/thread/... > > Thanks, really appreciate your help :) > > On Dec 8, 7:59 pm, Jason <apija...@google.com> wrote: > > > > > HiKogan. > > > 1. You cannot preview your OpenSocial-enabled applications in GGE > > because GGE has neither the updated gadgets.* API nor a proper > > container context (e.g. if you request your friends in GGE, which > > friend list should be returned?). Please test your orkut applications > > in orkut itself. During development, you can append &bpc=1 to the > > sandbox URL when you refresh your application to see the latest > > changes. > > > 2.http://localhost:8080isnot a publicly addressable URL. > > gadgets.io.makeRequest requires a URL accessible via the public > > Internet so the orkut proxy can direct the request to the proper > > resource. > > > - Jason > > > On Dec 5, 8:55 am,Kogan<kog...@gmail.com> wrote: > > > > Hello all, > > > I've been struggling with gadgets.io.makerequest for a LONG time, > > > without any success. > > > Let me elaborate: > > > > 1. in this link > > > :http://groups.google.com/group/opensocial-orkut/browse_thread/thread/... > > > > I found Jason's code snippet for the function, this one: > > > > *************************************************************** > > > function response(data) { > > > output(data.text); > > > > }; > > > > function request() { > > > gadgets.io.makeRequest('http://www.google.com', response); > > > > }; > > > > request(); > > > ************************************************************** > > > > first of all - it does work for me in OpenSocial Dev App, but a > > > strange thing is that it doesn't work for me when I run it in GGE > > > -http://hosting.gmodules.com/ig/gadgets/file/108098141166482124231/hel... > > > > which is a strange thing for itself, but though it is not my main > > > problem! > > > > I have a java server (using Tomcat) that has a servlet called > > > HelloServlet (I tested servlets using this java server and it all > > > works fine..so the servlet is not the problem), but - when changing > > > the > > > "http://www.google.com" string in the code into this - > > > "http://localhost:8080/WebAppTest/HelloServlet" > > > > nothing happens! the servlet's code does not run (I have a small > > > printing statement in it to check..), > > > not "even" from the OpenSocial Dev App (from where the above code > > > snippet did work..) > > > > I really don't know what's the problem! > > > > 2. I've tried A LOT of code snippets besides the above one for > > > makerequest, and nothing works. I am unable to communicate with my > > > servlet ... > > > > could anybody please help with the code or explain to me what could be > > > the cause? > > > >Kogan. > > On Dec 8, 7:59 pm, Jason <apija...@google.com> wrote: > > > HiKogan. > > > 1. You cannot preview your OpenSocial-enabled applications in GGE > > because GGE has neither the updated gadgets.* API nor a proper > > container context (e.g. if you request your friends in GGE, which > > friend list should be returned?). Please test your orkut applications > > in orkut itself. During development, you can append &bpc=1 to the > > sandbox URL when you refresh your application to see the latest > > changes. > > > 2.http://localhost:8080isnot a publicly addressable URL. > > gadgets.io.makeRequest requires a URL accessible via the public > > Internet so the orkut proxy can direct the request to the proper > > resource. > > > - Jason > > > On Dec 5, 8:55 am,Kogan<kog...@gmail.com> wrote: > > > > Hello all, > > > I've been struggling with gadgets.io.makerequest for a LONG time, > > > without any success. > > > Let me elaborate: > > > > 1. in this link > > > :http://groups.google.com/group/opensocial-orkut/browse_thread/thread/... > > > > I found Jason's code snippet for the function, this one: > > > > *************************************************************** > > > function response(data) { > > > output(data.text); > > > > }; > > > > function request() { > > > gadgets.io.makeRequest('http://www.google.com', response); > > > > }; > > > > request(); > > > ************************************************************** > > > > first of all - it does work for me in OpenSocial Dev App, but a > > > strange thing is that it doesn't work for me when I run it in GGE > > > -http://hosting.gmodules.com/ig/gadgets/file/108098141166482124231/hel... > > > > which is a strange thing for itself, but though it is not my main > > > problem! > > > > I have a java server (using Tomcat) that has a servlet called > > > HelloServlet (I tested servlets using this java server and it all > > > works fine..so the servlet is not the problem), but - when changing > > > the > > > "http://www.google.com" string in the code into this - > > > "http://localhost:8080/WebAppTest/HelloServlet" > > > > nothing happens! the servlet's code does not run (I have a small > > > printing statement in it to check..), > > > not "even" from the OpenSocial Dev App (from where the above code > > > snippet did work..) > > > > I really don't know what's the problem! > > > > 2. I've tried A LOT of code snippets besides the above one for > > > makerequest, and nothing works. I am unable to communicate with my > > > servlet ... > > > > could anybody please help with the code or explain to me what could be > > > the cause? > > > >Kogan. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Orkut Developer Forum" group. To post to this group, send email to opensocial-orkut@googlegroups.com To unsubscribe from this group, send email to opensocial-orkut+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/opensocial-orkut?hl=en -~----------~----~----~----~------~----~------~--~---