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/S开发者_StackOverflow中文版wiss32Holidays.ics"
});
It makes the request fine, but the data still comes up blank.
** Is it a datatype error?
To the best of my knowledge, you can't load content from another domain through .ajax().
try with dataType: "text". It you will have no success then try usage of dataFilter(data, type) function.
精彩评论