nwcell / ics.js Goto Github PK
View Code? Open in Web Editor NEWA browser firendly VCS file generator written entirely in javascript!!!!!!
License: MIT License
A browser firendly VCS file generator written entirely in javascript!!!!!!
License: MIT License
On running the demo page in iPhone 5s iOS 7.1.1 new tab opens for a litle time later "Safari can't open the file" shows.
Where as in iPhone 5 iOS 7.0.1 new tab opens nothing no activity is noticed.
Hi,
I tried to change the formatting for ics-files generated to UTF-8, but with no avail.
German umlauts (e.g. ü Ü) and French letters ( e.g. é É), are displayed incorrectly. A letter "ü" would translate into "ü".
Is there a way to do this without redirecting the entire page to show the ics file?
The Single Event ist not working. It throws some errors on console.
what are steps to open ics file in ie8 and ie9
Safari opens a blank page with no content and no download happens :(
I can't seem to pinpoint where the problem is, but if you're using the location(data method, I don't think it works at all in safari.. and if you're creating an A tag with the download property, it isn't supported by safari.
In the RFC for iCalendar it is required that the line ending is CR LF (\r\n), it should never be LF alone (\n).
This package is not working on iPhone devices, ics file can be downloaded but not inserted into iPhone's calendar. Not working on all iOS devices.
Hi there !
I would like to use your library in one of my projects but I cant because the license is missing.
Please consider adding a license.
FYI
Code published on Github without an explicit license is protected by copyright and is by default All Rights Reserved.
http://stackoverflow.com/questions/4007674/whats-the-default-license-of-code-published-at-github
When adding rrule for repeated events, the repeated events don't show up when importing into Apple Calendar. However, interestingly enough if I import into Google Calendar the repeated rules are correct!
Hello,
Please note that in Safari, the export/download ics file was done successfully.
Whereas in Chrome and Firefox it did not download! Please help!
Thanks.
Hello,
I've created a Qualtrics survey where people select an appointment and it generates an .ics file for them (so that I don't have to do it manually). Which is working well. I would like to upgrade this feature so that I can make my inbox the Organizer, the downloader as an attendee, and collect the RSVP responses to the correlating event (with matching UID) on my own calendar.
Ideally, I'd like to add Organizer, UID, and Attendee as parameters to the addEvent function. However, I've not been able to make this work. I've adjusted the parameters to addEvent in the ics.js file but it is still not working. My guess is that it's something to do with the ics.deps.min.js file, but I can't really make sense of that at all, so I'm not sure what to edit there.
Any insights appreciated. Thanks!
For modern browsers, a type is not included for the Blob as is the case for IE.
I will create a pull request for this issue.
I've tried adding a line break "\n" in the description but it doesn't work. It creates a line break in the file but the "\n" needs to end up in the ics file.
Guys, this is amazing. Thank you so much for creating it.
The issue I'm having is this: the ICS files won't download on mobile devices. In Android, nothing happens. In Chrome, a new window pops up but nothing happens.
Any thoughts?
I'm using your IE version of FileSaver.
S
In Javascript the months are zero-based, so Date.getMonth() is a value from 0 to 11.
The event is showing one month early.
Each VEVENT should have a unique UID property. Currently they do not have one.
To be valid as per the related RFC, the .ics files produced should have a PRODID property. Currently they don't have it.
Hi!
I am using this API and I was trying to add a hyper link for a external page and it seems the code is only working for text..
I am trying to add something like:
Was thinking to use this in node.js server side when generating email and adding the .ics as an attachment. Would that work?
Hey there,
I saw the name of Adam Gibbon in the Licence file at this commit:
aadebcf#diff-9879d6db96fd29134fc802214163b95a
Is this library related to https://github.com/adamgibbons/ics in any way?
Should this library or author maybe be mentioned in the credits?
Cheers.
Im setting so the download should run when click on a .class, but it is triggered on all links that has target=_blank on them? How can I prevent this? Thanks a lot!
Would it be possible to make the button that downloads the file a webcal protocal link? This would be great for subscriptions to the calendar. Especially if you are using a json api to create the events.
if (start_minutes + start_seconds + end_minutes + end_seconds != 0) { start_time = 'T' + start_hours + start_minutes + start_seconds; end_time = 'T' + end_hours + end_minutes + end_seconds; }
i think it should plus start_hours and end_hours , when i set "2016-5-30 11:00" , the output is '20160530'
thanks
on this line:
Line 154 in dfec67f
If I edit the resulting file and change rrule
to RRULE
, it works.
Only tested on Mac High Sierra 10.13.6
Workaround is to build my own RRULE string, but that's a pain...
Hi,
It's a how-to question not an issue but don't know where to ask.
I have a content search webpart that using a display template to show the events. I followed the steps in this link: http://www.avtex.com/2016/04/generate-and-download-an-ical-event-in-sharepoint/.
My webpart now is showing all items and i added a "Add to Calendar" button under each event.
I even managed to know which "ctx.currentitem" is a recurring event. The problem now reside on how to expand this item to get all the information to construct the "RRule object" to be able to add to "cal.addEvent" function.
Is it possible to define recurring events using this lib?
I use npm for developing client side. Do you think you could publish this package on there?
Also, you should probably move your package.json
dependencies to devDependencies
Hi,
is it possible to force the download of the appointments/.ics files that they can open in the right app like calendar on iOS?
In my situation it shows me only that the file is unknown and in the url: blob:https://portal.hm.edu/b5a32598-e95f-4fa4-9083-c071d7aa580f
In Chrome on Win10 I can online the the source when I'm clicking the link to download.
Only Safari on a Mac is handling it right.
Thank you for your help.
If you need an example go to https://portal.hm.edu/studieninformationstag/2020/programm/vortraege/
First off, wonderful tool you've made here, and thank you for it.
I'm finding that when my start- and end-time are all zeros and in the PM, only dates and no times are produced in the resulting ICS file.
Example:
cal_single.addEvent( 'Title', 'Description and such...', '4/20/2014 6:00 pm', '4/20/2014 7:00 pm');
Results in...
DTSTART;VALUE=DATE:20140420
DTEND;VALUE=DATE:20140420
Whereas...
cal_single.addEvent( 'Title', 'Description and such...', '4/20/2014 6:01 pm', '4/20/2014 7:01 pm');
Results in...
DTSTART;VALUE=DATE:20140420T180101
DTEND;VALUE=DATE:20140420T190101
Hitting a deadline right now, so I'm defaulting end times to 30 minutes after the start times. Once I'm done with this, I'll try to go in and isolate exactly where this is occurring in the code. I'll let you know what I find.
Testing done in Chrome 34.0.1847.116 m.
"grunt-contrib-watch" seems to be missing as a dependency.
If the time is like 12:00 pm, i.e. minutes are not provided, then the time does not show up in the ics calendar. For example:
var cal = ics();
cal.addEvent('Demo Event', 'This is a one hour event', 'location', '9/28/2014 12:00 pm', '9/28/2014 1:00 pm');
cal.download();
will be downloaded as an all day event.
I believe it will be fixed if we change:
https://github.com/nwcell/ics.js/blob/master/ics.js#L77
to:
if (start_hours + start_minutes + start_seconds + end_hours + end_minutes + end_seconds != 0) {
(although I did not test this thoroughly)
It's broken in your demo, too.
Safari cannot download ics file, an unknown file will be downloaded instead. Is it because safari doesn't support 'download' attribute?
hi
How to remove already added events to ics.js
There is no GEO option to pass not only Location, but also Coordinates
how can i use this library in angular 5 typescript?
I am trying to download an .ics format file using angular 5, how could I do it using this library? Thank you
I get the error "'BlobBuilder' is undefined" in both my code and the demo(https://rawgit.com/nwcell/ics.js/master/demo/demo.html#) on IE 10 (tested on demo with emulation in devtools)
Is there any workaround or fix known?
"Firendly" should maybe get changed. I know this is dumb but it's the first thing you read when you open the repo.
Peace
Hi,
thx for maintaining the repo again. Really like the library.
Unfortunately I'm facing some error now when trying to cal.download();
:
Uncaught ReferenceError: saveAs is not defined
at Object.download (ics.js:223)
In addition it would be nice to have the minified version updated as well.
I would fix it myself and provide an patch but I don't know when I will find time to do so. So far I wanted to point out the issue.
BR, Matthias
Google Calendar (via iCal) is rejecting ICS files for recurring events generated by this library because the rrule
property is lowercase. I'm happy to submit a PR, but I wanted to open an issue and see if it was lowercase for a specific reason. In the ICS files I'm generating, it's the only property that's lowercase.
Failing example:
cal.addEvent('Foo', 'Bar', 'Baz', start, end, {
freq: 'WEEKLY',
interval: 4
});
Working example (resolved by writing the property myself with an uppercase RRULE):
cal.addEvent('Foo', 'Bar', 'Baz', start, end, {
rrule: 'RRULE:FREQ=WEEKLY;INTERVAL=4'
});
When I put my events into Apple Calendar, they show up as "Time zone: Floating". This makes sense since I didn't provide any time zone to ics.js
when I created the events. That leaves the question: how do I provide the time zone?
On mobile I got document.txt file instead of .ics. On desktop works perfect. It's possible to add Invitees/attendee?
Minutes are used as seconds in scheduled appointment. I will create a pull request for this bug.
I'm formatting the begin variable as "2013-07-30 15:00:00", which is a legit string for Date.parse (outputted as "1375210800000"). I've also got the end variable formatted the same way: "2013-07-30 19:00:00". Sadly, Calendar (Version 7.0 (1835.1)) on OS X 10.9.1 does not recognize the time–only the date.
Should be closer to the current day
Hi Travis, Kyle
the idea is great and I would like to use it.
But: You do not say which license you publish under, so I have to assume the most restrictive one.
And that means: I cannot use it :-(
Would you be willing to add a license?
Kind regards,
Sebastian
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.