See http://code.google.com/support/bin/answer.py?answer=79663&topic=11366 for an article on how to use XMLHttpRequest. This can be used to retrieve data from webpages in Google Desktop gadgets. I did a small search and it looks like you were trying to follow a Google OpenSocial API tutorial.
Benjamin On Nov 18, 6:33 am, "Muhammad Sajid Khan" <[EMAIL PROTECTED]> wrote: > so how can i resolve this probmlem i have seen this code in gadget > tutorials > > On Mon, Nov 17, 2008 at 6:42 AM, Benjamin [API Guru] < > > [EMAIL PROTECTED]> wrote: > > > The error is that there is no gadgets object, no gadgets.io etc. Where > > did you get these objects and calls. These are no Google Desktop API > > calls. > > > Benjamin > > > On Nov 17, 12:47 pm, Dr evil <[EMAIL PROTECTED]> wrote: > > > Hy i am newbie to google gadgets i am having serious trouble using > > > this api I just want to send a request to server and then parse the > > > xml contents returned by server ... but my application gives an error. > > > my code is given below > > > > Main.xml.. > > > <view height="150" width="250"> > > > <img src="background.png"/> > > > <label enabled="true" hitTest="htclient" name="mylabel" pinX="125" > > > pinY="8" width="250" x="125" y="70" onclick="request() ;" > > > align="center" font="" size="15">&HELLO_WORLD1; > > > </label> > > > <script src="main.js" /> > > > </view> > > > > Main.js > > > var productsUrl="http://localhost:8080/TestGadget//servlet/ > > > TestServlet"; > > > > function request() { > > > alert("I am an alert box"); > > > var params = {}; > > > params[gadgets.io.RequestParameters.CONTENT_TYPE] = > > > gadgets.io.ContentType.TEXT; > > > gadgets.io.makeRequest(url, response, params); > > > } > > > function response(obj) { } > > > > my request method is called successfully but it gives an error stating > > > gadgets are not defined someone please help me i need urgent help.. > > > thanks in advance. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Desktop Developer Group" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Desktop-Developer?hl=en -~----------~----~----~----~------~----~------~--~---
