Hi again,

I also noticed the failure case when testing your gadget above.
However, when I changed the URL to "http://
download.finance.yahoo.com..." I was able to get the callback to
return. This code demonstrates the results:

function fnOnInit(){
  console.log ("fnOnInit started");
  fnUpdateStocks();
  console.log ("fnOnInit ended");
}
function fnUpdateStocks(){
  console.log ("fnUpdateStocks started");
  var sTags='e1snp2';
  sSymbols="GOOG,YHOO,";
  url='http://download.finance.yahoo.com/d/quotes.csv?s='+sSymbols
+'&f='+sTags;
  //url='http://www.google.com';
        _IG_FetchContent(url,fnParseStockData,{refreshInterval:60});
  console.log ("fnUpdateStocks ended");
}
function fnParseStockData(str){
  console.log ("fnParseStockData started");
  console.log('Woooohoooo it works :-)');
  console.log(str);
  console.log ("fnParseStockData ended");
}

fnOnInit();

I suspect there is a redirection issue at play here, but no ill
intent.

Uday, when you've modified your gadget with an update, please file a
request to have it recached here: 
http://code.google.com/p/igoogle-legacy/wiki/IssuesTab?tm=3

Thanks,
Dan

On Oct 20, 10:54 am, Checksum <[EMAIL PROTECTED]> wrote:
> Thanks
>
> On Oct 20, 7:45 pm, "Dan (Google Employee)" <[EMAIL PROTECTED]>
> wrote:
>
> > Hi everyone,
>
> > I don't know of any intent to block data from Yahoo's Finance servers,
> > but I will investigate the problem. My guess is that something else is
> > at play here.
>
> > Best,
> > Dan
>
> > On Oct 20, 4:40 am, Checksum <[EMAIL PROTECTED]> wrote:
>
> > > Ok today requests to my proxy stopped giving me an answer. The proxy
> > > works fine but not from iGoogle.
>
> > > Someone is really trying to stop this.
>
> > > Dan. Is this in fact google who is trying to stop us requesting stock
> > > quotes from Yahoo ?
>
> > > Regards
> > > Christian
>
> > > On Oct 19, 11:39 pm, Checksum <[EMAIL PROTECTED]> wrote:
>
> > > > Hi
> > > > I am experiencing the same problem as Uday.
> > > > It seems like communication with yahoo finance servers has been
> > > > blocked.
> > > > Its possible to "workaround" this problem by making a proxy on a third
> > > > party server. So from my point of view it seems like either Yahoo or
> > > > Google has blocked communication with the other part. I have talked
> > > > with my contact at Yahoo and he told me that their engineers has not
> > > > set up any blocks.
>
> > > > The "blocked" url in question 
> > > > is:http://download.finance.yahoo.com/d/quotes.csv?s=GOOG&f=e1snp2
>
> > > > I have made a little test gadget for anyone 
> > > > interestedhttp://cnybroe.googlepages.com/yftest.xml
> > > > The function fnParseStockData should be called, but it is never
> > > > happening, because no answer is received.
>
> > > > Regards
> > > > Christian
>
> > > > On Oct 19, 6:48 pm, Uday <[EMAIL PROTECTED]> wrote:
>
> > > > > Dan,
>
> > > > > I saw your post in the other discussion about using a nocache=1 while
> > > > > loading the gadget. This doesnt seem to work for inlined gadgets. Do
> > > > > you have any such workarounds for my(inlined) gadget?
>
> > > > > Appreciate your help..
>
> > > > > Thanks
> > > > > -Uday
>
> > > > > On Oct 19, 9:07 am, Uday <[EMAIL PROTECTED]> wrote:
>
> > > > > > Dan (or any other googlers),
>
> > > > > > Can you guys tell me why I am not able to uncache my 
> > > > > > gadgethttp://udaysasi.googlepages.com/quickStockWatch.xml
>
> > > > > > I am trying to debug something and I can't see my changes, even 
> > > > > > after
> > > > > > 1 day.. I usually use the Developer gadget to force caching.. But,
> > > > > > that doesn't seem to help.
>
> > > > > > Just to mention again - This is an inlined gadget, and I hope it
> > > > > > shouldn't make any difference.
>
> > > > > > Thanks
> > > > > > -Uday
>
> > > > > > On Oct 18, 8:47 am, Uday <[EMAIL PROTECTED]> wrote:
>
> > > > > > > Dan,
>
> > > > > > > I created a non-inlined gadget for testing purposes and here is 
> > > > > > > what I
> > > > > > > identified - When I try to call Yahoo Finance servers, I see that 
> > > > > > > I
> > > > > > > get the data back from the Yahoo server but the _IG_Callback 
> > > > > > > doesn't
> > > > > > > get called to paint that content on the page. I change the URL(by
> > > > > > > calling a proxy URL) and it works fine..
>
> > > > > > > Can you throw some light on this?
>
> > > > > > > Thanks
> > > > > > > -Uday
>
> > > > > > > On Oct 18, 8:24 am, Uday <[EMAIL PROTECTED]> wrote:
>
> > > > > > > > First of all, Here is my gadget URL 
> > > > > > > > :http://udaysasi.googlepages.com/quickStockWatch.xml
> > > > > > > > It has been an inlined gadget since it was developed.
>
> > > > > > > > My gadget stopped working from 10/16 (without any changes from 
> > > > > > > > my end)
> > > > > > > > and I was trying to see what changes caused this issue. Co-
> > > > > > > > incidentally it was approximately when Google released the new 
> > > > > > > > layout.
> > > > > > > > I am not sure if it is related to that.. I am now trying to 
> > > > > > > > debug this
> > > > > > > > issue by adding some logs etc, but the latest version of the 
> > > > > > > > gadget
> > > > > > > > doesn't load. I still see a cached version. I have the Developer
> > > > > > > > gadget but the "Cached" checkbox doesnt seem to take effect. 
> > > > > > > > This is a
> > > > > > > > finance module that pulls data from Yahoo! Finance servers. 
> > > > > > > > Assuming
> > > > > > > > that the problem was due to the amount of traffic as it 
> > > > > > > > happened in
> > > > > > > > March 2008 which can be seen in this thread 
> > > > > > > > [[[http://groups.google.com/group/Google-Gadgets-API/browse_thread/threa...
> > > > > > > > ]]] I was trying to debug this by hitting a proxy URL instead of
> > > > > > > > directly hitting the Yahoo servers, I am just trying to isolate 
> > > > > > > > where
> > > > > > > > the problem is. Now, Due to this caching issue, I am not able to
> > > > > > > > identify the root cause. I know there is already a thread on 
> > > > > > > > Caching
> > > > > > > > issue but I opened this discussion to discuss about my Finance 
> > > > > > > > module,
> > > > > > > > once this caching hurdle is overcome.
>
> > > > > > > > Dan, any thoughts on this?
>
> > > > > > > > Thanks
> > > > > > > > -Uday- Hide quoted text -
>
> > > > > - Show quoted text -- Hide quoted text -
>
> > > > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iGoogle Developer Forum" 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-Gadgets-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to