Loading ...
Sorry, an error occurred while loading the content.

RE: [ydn-javascript] Update manager not returning

Expand Messages
  • Gal Nitzan
    If I m not mistaken, you can not access google directly from your script. The reason is browser security will allow a script to access only the server from
    Message 1 of 2 , May 9, 2007
    • 0 Attachment
      If I'm not mistaken, you can not access google directly from your script.

      The reason is browser security will allow a script to access only the server
      from which it was loaded.

      You would probably need a proxy.

      HTH,

      Gal

      > -----Original Message-----
      > From: ydn-javascript@yahoogroups.com [mailto:ydn-
      > javascript@yahoogroups.com] On Behalf Of Craig
      > Sent: Thursday, May 10, 2007 12:01 AM
      > To: ydn-javascript@yahoogroups.com
      > Subject: [ydn-javascript] Update manager not returning
      >
      > Hey guys. I'm wondering if anyone has experience using the update
      > manager. I'm trying to make an ajax call to google calendars and have it
      > appear in a div element in my page. I'm making the call like this:
      >
      > var elm = YAHOO.ext.Element.get("main");
      > if (elm) {
      > // alert('Got element.');
      >
      > var options =
      > {
      >
      > url: " http://www.google.com/calendar/embed
      > <http://www.google.com/calendar/embed> ",
      > params :
      > {
      > src : "someEmail@... <mailto:someEmail@...> "
      > // title : "Training log",
      > // bgcolor : "%2337BAE2"
      > },
      > scripts: true
      >
      > // callback: callback.update,
      > // scope: callback
      > };
      >
      > var mgr = elm.getUpdateManager();
      > // mgr.showLoadIndicator = false;
      > mgr.update (options);
      > }
      >
      > When I run this script, it just puts up the Loading ... message and never
      > returns. I'm not sure if I can do what I'm trying to do but any insight
      > would be grealy appreciated.
      >
      > Thanks,
      >
      > Craig.
      >
      >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.