From: Ian Piper on 28 Apr 2010 14:57 Any Javascript / hCard / Address Book experts out there? I'm interested in figuring out how to add a record from a web page to Address Book via Javascript. The idea is either to send a RESTful query to a web service or to pick up microformatted contact information (hCard format) and then use this to create an Address Book record. It all seems like it should be feasible but I don't have enough knowledge on this to make it work. Has anyone seen anything like this or can someone point me at an example of doing this? Thanks, Ian. -- Ian Piper Author of "Learn Xcode Tools for Mac OS X and iPhone Development", Apress, December 2009 Learn more here: http://learnxcodebook.com/� --�
From: Woody on 28 Apr 2010 15:02 Ian Piper <ianpiper(a)mac.com> wrote: > Any Javascript / hCard / Address Book experts out there? I'm interested > in figuring out how to add a record from a web page to Address Book via > Javascript. So you want to create an address book entry in your address book from a web page you are looking at on your web browser? > The idea is either to send a RESTful query to a web service > or to pick up microformatted contact information (hCard format) and > then use this to create an Address Book record. > > It all seems like it should be feasible but I don't have enough > knowledge on this to make it work. Has anyone seen anything like this > or can someone point me at an example of doing this? I am not sure which way round you mean? If it is someone sending an address to a page on your web server, you could use the web server to create an entry in your address book (via the sqllite database) -- Woody Alienrat Design Ltd
From: Ian Piper on 28 Apr 2010 17:55 On 2010-04-28 20:02:46 +0100, usenet(a)alienrat.co.uk (Woody) said: > Ian Piper <ianpiper(a)mac.com> wrote: > >> Any Javascript / hCard / Address Book experts out there? I'm interested >> in figuring out how to add a record from a web page to Address Book via >> Javascript. > > So you want to create an address book entry in your address book from a > web page you are looking at on your web browser? > >> The idea is either to send a RESTful query to a web service >> or to pick up microformatted contact information (hCard format) and >> then use this to create an Address Book record. >> >> It all seems like it should be feasible but I don't have enough >> knowledge on this to make it work. Has anyone seen anything like this >> or can someone point me at an example of doing this? > > I am not sure which way round you mean? The idea is that when you visit a particular page on a site you will see a record for a person. There will be a button saying "Add this person to your [Mac OS X or iPhone] address book". Click the button and something wonderful happens, after which there is a new contact record in your Mac or iPhone Address Book. As usual, it is the wonderful something that is eluding me :-) > If it is someone sending an address to a page on your web server, you > could use the web server to create an entry in your address book (via > the sqllite database) How would that work with a remote web server? Web services? Ian. -- Ian Piper Author of "Learn Xcode Tools for Mac OS X and iPhone Development", Apress, December 2009 Learn more here: http://learnxcodebook.com/� --�
From: D.M. Procida on 28 Apr 2010 18:49 Ian Piper <ianpiper(a)mac.com> wrote: > Any Javascript / hCard / Address Book experts out there? I'm interested > in figuring out how to add a record from a web page to Address Book via > Javascript. The idea is either to send a RESTful query to a web service > or to pick up microformatted contact information (hCard format) and > then use this to create an Address Book record. I'd like to do this too. It seems to me that a microformat is the way to go, but I don't know what reliable mechanism exists that will inform the Address Book about it. Daniele
From: Woody on 28 Apr 2010 19:03
Ian Piper <ianpiper(a)mac.com> wrote: > On 2010-04-28 20:02:46 +0100, usenet(a)alienrat.co.uk (Woody) said: > > > Ian Piper <ianpiper(a)mac.com> wrote: > > > >> Any Javascript / hCard / Address Book experts out there? I'm interested > >> in figuring out how to add a record from a web page to Address Book via > >> Javascript. > > > > So you want to create an address book entry in your address book from a > > web page you are looking at on your web browser? > > > >> The idea is either to send a RESTful query to a web service > >> or to pick up microformatted contact information (hCard format) and > >> then use this to create an Address Book record. > >> > >> It all seems like it should be feasible but I don't have enough > >> knowledge on this to make it work. Has anyone seen anything like this > >> or can someone point me at an example of doing this? > > > > I am not sure which way round you mean? > > The idea is that when you visit a particular page on a site you will > see a record for a person. There will be a button saying "Add this > person to your [Mac OS X or iPhone] address book". Click the button and > something wonderful happens, after which there is a new contact record > in your Mac or iPhone Address Book. As usual, it is the wonderful > something that is eluding me :-) Ah, that way round. The reason that that way is eluding you is that a lot of clever people have gone to great lengths to ensure that can't happen! So the easy way is to just have a link to an .ics file, which is the persons name (am I thinking the right file here, or is that just callendar) which opens in address book (if the person agrees) and adds itself to the address book. Which has the advantage that it would work on peecees and other phones too. > > If it is someone sending an address to a page on your web server, you > > could use the web server to create an entry in your address book (via > > the sqllite database) > > How would that work with a remote web server? Web services? That is the other way round, ignore that bit. -- Woody Alienrat Design Ltd |