Discussion Forums  >  WebViews and HTML for Mobile

Replies: 8    Views: 106

AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
01/29/13 03:32 AM (11 years ago)

Add event to calendar

Scenario is this - you visit a page with a list of events, for example is a list of football matches. On each line in the list there is info - e.g. who is playing who (e.g Celtic vs Barcelona), where they are playing, date, start time and if you click on the item, you are invited to add the event to you native phone calendar. I don't know how it is done though, ideally with some kind of example I could copy and work forward from. Can anyone here point me in the right direction please? TIA, Alan
 
mickeywong
Aspiring developer
Profile
Posts: 35
Reg: Jan 10, 2013
Kuala Lumpur
8,800
like
01/29/13 04:30 AM (11 years ago)
I read this somewhere in the forum adding events to calendar whilst searching for "calendar plugins". Try searching the forum based on the keyword "calendar".
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
01/29/13 05:47 AM (11 years ago)
I have looked, but not found anything I'm afraid. I was hoping that if I produced a list of events in html that clicking on something would make the connection. I have a feeling that the idea is simple, but implementation is tricky.
 
MacApple
Apple Fan
Profile
Posts: 4674
Reg: Oct 25, 2010
USA
61,140
like
01/29/13 06:11 AM (11 years ago)
Alarm bells went off there! You mentioned Celtic, my team. We beat that small Barca team as well! I'm sure the HTML doc has the ability to recognise dates depending on how you format them. Did you have a try? Been ages, post back if you don't get it and I'll have a wee peek when I get home tonight.
 
Fingers Crossed
Veteran developer
Profile
Posts: 234
Reg: Jan 16, 2012
Simcoe, ON
6,390
like
01/29/13 07:31 AM (11 years ago)
Not that it covers what you want, but you can at least to prompt to create an event by putting your date in HTML like 'February 1st 2013' This will let you create a native event, add it to your calendar or copy it. It won't however prefill the Title/Location or times.
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
01/29/13 07:38 AM (11 years ago)
Lol MacApple, I thought that would get your attention! @Fingers Crossed, thanks, it is a start, but I'd like to pre-fill too. My searching shows that if I created each event as an ics file, then linked to it somehow, it might work, but that is a bit hard.
 
Kahuna
Apple Fan
Profile
Posts: 137
Reg: Nov 18, 2011
Milan
4,670
like
01/29/13 10:41 AM (11 years ago)
You can try to create the ics with google calendar.
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
01/30/13 10:30 AM (11 years ago)
Here are two articles teaching how to do it with Xcode: http://www.techotopia.com/index.php/Using_iOS_6_Event_Kit_to_Create_Date_and_Location_Based_Reminders http://mobileorchard.com/mobileorchard/#!/entry/ios-advanced-programming-event-kit-framework,50ad910ad7fc7b56706ec7de
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
01/30/13 10:46 AM (11 years ago)
Thanks everyone, I appreciate the ideas. I have looked at articles on webkit, but I don't understand them. I looked at creating ICS files, but the amount of effort this would take every time somebody adds a date to a list would make that too hard. The problem for me is that I am using html and my aspiration is that the list is up-datable without technical skills. I think that what is needed here is a plug-in that will create lists of events for simple display and when you click on an item in that list, it will pop up and ask if you want to add the event to your calendar. Kittsy, where are you!
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.