views:

46

answers:

2

I am trying to do an Ajax request for an ICS file. Yeah, I know it sounds crazy, but I found the perfect library to parse the iCal data. Any ideas why the data comes up blank when I do this?

$.ajax({
 success:function(data){
  alert(data);
 },
 url:"http://wsidecar.apple.com/cgi-bin/nph-reg3rdpty2.pl/product=15714&cat=98&platform=osx&method=sa/Swiss32Holidays.ics"
});

It makes the request fine, but the data still comes up blank.

** Is it a datatype error?

A: 

try with dataType: "text". It you will have no success then try usage of dataFilter(data, type) function.

Oleg
A: 

To the best of my knowledge, you can't load content from another domain through .ajax().

Warren Krewenki
You are right. I proxied the content over. I thought this only applied to JSON but I was wrong.
Kyle