简体   繁体   中英

is there a way I can retrieve an ics file using javascript or jquery?

I'm looking to create a read-only calendar on my website based on a users calendar (google, outlook, iCal, etc). In order to do this, I figured I would need to make a call to get/create an ics file. Is this possible to do in javascript/jquery? Thanks

If you want to create files on your own server, you'll need server-side code to do this. If you'd like to get files from your own server, you can use JavaScript, though if you'd like to get files from other servers, you'll need to use JSONP or CORS .

Another possible solution is to keep the calendar stored in a cloud-based calendar service (like Google Calendar), and then use that service's API to work with the calendar. Google has a JavaScript API you can use for accessing Google Calendar, that might help you out.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM