Thanks Eric. I looked at the links in your response but still unclear. As I am new to all this, I may not be asking the right questions but this is what I am trying test.
- I have a simple html (eg: hello.html) page hosted on my local web server as http://localhost/hello.html. I would like to have two iframes in this hello.html page. In the first iframe, I would like to display my google calendar events. In the second iframe, I would like to display list of my google docs. Are there any samples/docs showing the best way to implement the above? Any help would be greatly appreciated. Thanks. On Nov 8, 1:37 pm, "Eric (Google)" <[EMAIL PROTECTED]> wrote: > On Nov 7, 6:41 pm, ssr <[EMAIL PROTECTED]> wrote: > > > > > I am stuck with the issue I posted earlier. I would really appreciate > > any help guiding me through this issues. Thanks. > > > On Nov 7, 11:01 am, ssr <[EMAIL PROTECTED]> wrote: > > > > Thanks for the response Eric. > > > > Please help me with the follow up questions: > > > > As I am trying to interface with Google List Data API interface using > > > Javascript, I came across an AJAX issue with the following error. It > > > appears that this problem is caused because I am trying to do a cross > > > domain AJAX call and there are security blocks against this. > > > > Error: uncaught exception: [Exception... "Access to restricted URI > > > denied" code: "1012" nsresult: "0x805303f4 (NS_ERROR_DOM_BAD_URI)" > > > location: "http://yui.yahooapis.com/2.6.0/build/connection/connection- > > > min.js Line: 7"] > > > > Here is what I did to test Google List Data API Multiple-user web > > > application client authentication.I sent the following URL using HTTP > > > GET using AJAX interface when I got the above error: > > > > "https://www.google.com/accounts/AuthSubRequest?scope=http%3A%2F > > > %2Fdocs.google.com%2Ffeeds%2Fdocuments&session=1&secure=0&next=http%3A > > > %2F%2localhost%2Findex.html" > > You won't be able to make this type of AJAX request for two reasons: > 1.) It is crossdomain which breaks the browser security model > 2.) The AuthSubRequest page requires a user intervention > (the user must click the "Grant Access" button. > > > > > > If I want to pull the data from various google services to include in > > > my web page, is this the right way do the authentication? How do > > > google gadgets overcome this cross domain AJAX issue when gadgets are > > > included in others web pages? > > In iGoogle, the gadgets use the OAuth Proxy which acts on behalf > of the gadget. The gadget opens a popup to the OAuthAuthorizeToken > page, but the Proxy takes care of the rest. (token management, > signing requests, etc.) > > Here's an article that discusses how to use AuthSub from within > OpenSocial:http://code.google.com/apis/opensocial/articles/authsub.html > > Also, if you want to host a gadget on your own server, > there's type=url > gadgets:http://code.google.com/apis/gadgets/docs/fundamentals.html#URL > > E > > > > > > As I am new this, I may not doing the right way. Any help or samples > > > to point me int right direction would be appreciated. > > > Thanks. > > > > On Nov 6, 2:20 pm, "Eric (Google)" <[EMAIL PROTECTED]> wrote: > > > > > Two great questsions: > > > > > On Nov 6, 2:11 pm, ssr <[EMAIL PROTECTED]> wrote: > > > > > > Please help me with the following: > > > > > > 1. I see javascript classes google.gdata.calendar and > > > > > google.gdata.calendar.CalendarService to interface with google > > > > > calendar service. I assume that this class is nothing but AJAX > > > > > interface to send http requests. Are there similar javascript classes > > > > > to interface with other google services such as gmail, google > > > > > docs, ... ? If not, are there any other javascript packages to > > > > > interface with other google services? > > > > >http://code.google.com/apis/gdata/client-js.html > > > > > At this point, there's support for the Calendar, Contacts, Blogger, > > > > and Finance APIs. > > > > We're adding more all the time. > > > > > > 2. I see the advantages of google gadget framework. But if the gadgets > > > > > need to be private for various reasons, what options are available and > > > > > what is the best way implement them? One possibility I can think of is > > > > > to pull the data from google services and display it in your own > > > > > custom UI. > > > > > You can create private gadgets (gadgets that access a user's private > > > > Google Data) > > > > by using the OAuth Proxy in iGoogle. If you're using one of the > > > > service's > > > > in the JS library, such a gadget is relatively straightforward to > > > > build: > > > > >http://code.google.com/apis/gdata/articles/gdata_gadgets.html > > > > > Eric > > > > > > Thanks a lot. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Docs Data APIs" 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-Docs-Data-APIs?hl=en -~----------~----~----~----~------~----~------~--~---
