vcard download

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

vcard download

Lieven Gekiere-2
Hi List,


I'm wondering how you can automatically download and add a vcard to
the Mac osx address book with Lasso (working example :
http://www.lassoforge.com/summit/index.lasso)

I've created a vCard, but it just downloads as text if you click on
it, instead of opening in Address Book
http://www.gekiere.com/Gekiere%20Lieven.vcf



Lieven

--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/

Reply | Threaded
Open this post in threaded view
|

Re: vcard download

Jonathan Vanherpe (T & T NV)
Lieven Gekiere wrote:

> Hi List,
>
>
> I'm wondering how you can automatically download and add a vcard to
> the Mac osx address book with Lasso (working example :
> http://www.lassoforge.com/summit/index.lasso)
>
> I've created a vCard, but it just downloads as text if you click on
> it, instead of opening in Address Book
> http://www.gekiere.com/Gekiere%20Lieven.vcf
>
>
>
> Lieven
>
Hi Lieven,

You could try setting the mime-type to text/x-vcard . I'm not sure if
this will change anything, but I think it's a good idea to try
nonetheless ;) ...

Either do this within the lasso file that generates it, or add it in
your Apache configuration file.

Jonathan
--
Jonathan Vanherpe
Tallieu & Tallieu
[hidden email]

--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/

Reply | Threaded
Open this post in threaded view
|

Re: vcard download

jasonhuck
In reply to this post by Lieven Gekiere-2
Use [file_serve] and set the MIME type to text/x-vcard:

                file_serve(
                        $vcard,
                        -file='yourcard.vcf',
                        -type='text/x-vcard'
                );


- jason




On 7/5/07, Lieven Gekiere <[hidden email]> wrote:

> Hi List,
>
>
> I'm wondering how you can automatically download and add a vcard to
> the Mac osx address book with Lasso (working example :
> http://www.lassoforge.com/summit/index.lasso)
>
> I've created a vCard, but it just downloads as text if you click on
> it, instead of opening in Address Book
> http://www.gekiere.com/Gekiere%20Lieven.vcf
>
>
>
> Lieven
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>
>


--
Find and Share Free Lasso Custom Tags at tagSwap.net!
Download hundreds of open source Lasso custom tags, and post your own
for others to use. RSS feeds track the newest and most popular tags.
http://tagSwap.net/

--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/

Reply | Threaded
Open this post in threaded view
|

Re: vcard download

Steffan A. Cline
In reply to this post by Lieven Gekiere-2
If you like I can send you the code I used. It already has the header and
all in there. It works very well. It took me a while to get it right since
the specs are not overwhelmingly consistent between all platforms. Following
iCal as an example worked well.


Thanks

Steffan

---------------------------------------------------------------
T E L  6 0 2 . 5 7 9 . 4 2 3 0 | F A X  6 0 2 . 9 7 1 . 1 6 9 4
Steffan A. Cline
[hidden email]                             Phoenix, Az
http://www.ExecuChoice.net                                  USA
AIM : SteffanC          ICQ : 57234309
                                  Lasso Partner Alliance Member
---------------------------------------------------------------



> From: Lieven Gekiere <[hidden email]>
> Reply-To: Lasso Talk <[hidden email]>
> Date: Thu, 5 Jul 2007 16:01:01 +0200
> To: Lasso Talk <[hidden email]>
> Subject: vcard download
>
> Hi List,
>
>
> I'm wondering how you can automatically download and add a vcard to
> the Mac osx address book with Lasso (working example :
> http://www.lassoforge.com/summit/index.lasso)
>
> I've created a vCard, but it just downloads as text if you click on
> it, instead of opening in Address Book
> http://www.gekiere.com/Gekiere%20Lieven.vcf
>
>
>
> Lieven
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>



--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/

Reply | Threaded
Open this post in threaded view
|

Re: vcard download

Jolle Carlestam
Is it possible for you to post it on the list? I've been poking  
around vcard without success and I think others could be interested  
as well.

HDB
JC

5 jul 2007 kl. 18.25 skrev Steffan A. Cline:

> If you like I can send you the code I used. It already has the  
> header and
> all in there. It works very well. It took me a while to get it  
> right since
> the specs are not overwhelmingly consistent between all platforms.  
> Following
> iCal as an example worked well.
>
>
> Thanks
>
> Steffan


--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/

Reply | Threaded
Open this post in threaded view
|

Re: vcard download

Lieven Gekiere-2
In reply to this post by Steffan A. Cline
Yes please ... that would be great :-)

Lieven

On 7/5/07, Steffan A. Cline <[hidden email]> wrote:

> If you like I can send you the code I used. It already has the header and
> all in there. It works very well. It took me a while to get it right since
> the specs are not overwhelmingly consistent between all platforms. Following
> iCal as an example worked well.
>
>
> Thanks
>
> Steffan
>
> ---------------------------------------------------------------
> T E L  6 0 2 . 5 7 9 . 4 2 3 0 | F A X  6 0 2 . 9 7 1 . 1 6 9 4
> Steffan A. Cline
> [hidden email]                             Phoenix, Az
> http://www.ExecuChoice.net                                  USA
> AIM : SteffanC          ICQ : 57234309
>                                   Lasso Partner Alliance Member
> ---------------------------------------------------------------
>
>
>
> > From: Lieven Gekiere <[hidden email]>
> > Reply-To: Lasso Talk <[hidden email]>
> > Date: Thu, 5 Jul 2007 16:01:01 +0200
> > To: Lasso Talk <[hidden email]>
> > Subject: vcard download
>
> >
> > Hi List,
> >
> >
> > I'm wondering how you can automatically download and add a vcard to
> > the Mac osx address book with Lasso (working example :
> > http://www.lassoforge.com/summit/index.lasso)
> >
> > I've created a vCard, but it just downloads as text if you click on
> > it, instead of opening in Address Book
> > http://www.gekiere.com/Gekiere%20Lieven.vcf
> >
> >
> >
> > Lieven
> >
> > --
> > This list is a free service of LassoSoft: http://www.LassoSoft.com/
> > Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> > Manage your subscription: http://www.ListSearch.com/Lasso/
> >
>
>
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>
>

--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/

Reply | Threaded
Open this post in threaded view
|

Re: vcard download

Steffan A. Cline
[


if( action_param('id') );
    var( 'sql'=('select * from summit where id=' action_param('id') ' order
by name'),
        'filename'=('LassoSummitAttendee' action_param('id') '.vcf')
        );
else;
    var( 'sql' = 'select * from summit order by name',
        'filename'=('AllLassoSummitAttendees.vcf')
        );
/if;

define_tag('encode_vCard');
    !params->first ? return;
    return(    params->first->replace(':','\\:') &
            replace('\n','\\n') &
            replace('\r','\\n') &
            );
/define_tag;

$__http_header__ = ('HTTP/1.0 200 OK\r\n'
                'Server: Lasso/8.0\r\n'
                'Content-Type: text/x-vcard\r\n'
                'Content-Disposition: attachment; filename="' $filename
'"\r\n');
               
inline( -database='lassoforge', -table='summit', -sql=$sql, -maxrecords=all
);
    records;
        'BEGIN:VCARD\r\n';
        'VERSION:3.0\r\n';
        'N:'                        encode_vCard( field('name') )
';;;;\r\n';
        'FN:'                         encode_vCard( field('name') ) '\r\n';
        'EMAIL;INTERNET:'              encode_vCard( field('email') )
'\r\n';
        'TEL;type=CELL;type=pref:'     encode_vCard( field('cellphone') )
'\r\n';
        'NOTE:'                     encode_vCard(    'Lasso Summit 2007
Information \n'
                                            'Hotel: ' field('hotel') ' \n'
                                            'Arriving: ' field('arrive') '
\n'
                                            'Departing: ' field('depart') '
\n'
                                            ) '\r\n';
        'END:VCARD\r\n';
    /records;
/inline;

'\r\n';

]


Thanks

Steffan

---------------------------------------------------------------
T E L  6 0 2 . 5 7 9 . 4 2 3 0 | F A X  6 0 2 . 9 7 1 . 1 6 9 4
Steffan A. Cline
[hidden email]                             Phoenix, Az
http://www.ExecuChoice.net                                  USA
AIM : SteffanC          ICQ : 57234309
                                  Lasso Partner Alliance Member
---------------------------------------------------------------



> From: Lieven Gekiere <[hidden email]>
> Reply-To: Lasso Talk <[hidden email]>
> Date: Thu, 5 Jul 2007 19:30:07 +0200
> To: Lasso Talk <[hidden email]>
> Subject: Re: vcard download
>
> Yes please ... that would be great :-)
>
> Lieven
>
> On 7/5/07, Steffan A. Cline <[hidden email]> wrote:
>> If you like I can send you the code I used. It already has the header and
>> all in there. It works very well. It took me a while to get it right since
>> the specs are not overwhelmingly consistent between all platforms. Following
>> iCal as an example worked well.
>>
>>
>> Thanks
>>
>> Steffan
>>
>> ---------------------------------------------------------------
>> T E L  6 0 2 . 5 7 9 . 4 2 3 0 | F A X  6 0 2 . 9 7 1 . 1 6 9 4
>> Steffan A. Cline
>> [hidden email]                             Phoenix, Az
>> http://www.ExecuChoice.net                                  USA
>> AIM : SteffanC          ICQ : 57234309
>>                                   Lasso Partner Alliance Member
>> ---------------------------------------------------------------
>>
>>
>>
>>> From: Lieven Gekiere <[hidden email]>
>>> Reply-To: Lasso Talk <[hidden email]>
>>> Date: Thu, 5 Jul 2007 16:01:01 +0200
>>> To: Lasso Talk <[hidden email]>
>>> Subject: vcard download
>>
>>>
>>> Hi List,
>>>
>>>
>>> I'm wondering how you can automatically download and add a vcard to
>>> the Mac osx address book with Lasso (working example :
>>> http://www.lassoforge.com/summit/index.lasso)
>>>
>>> I've created a vCard, but it just downloads as text if you click on
>>> it, instead of opening in Address Book
>>> http://www.gekiere.com/Gekiere%20Lieven.vcf
>>>
>>>
>>>
>>> Lieven
>>>
>>> --
>>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>>
>>
>>
>>
>> --
>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>
>>
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>



--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/

Reply | Threaded
Open this post in threaded view
|

Re: vcard download

Steffan A. Cline
In reply to this post by Lieven Gekiere-2
I have posted it to the list and emailed to you directly since I see it is a
bit hard to read here on the list.


Thanks

Steffan

---------------------------------------------------------------
T E L  6 0 2 . 5 7 9 . 4 2 3 0 | F A X  6 0 2 . 9 7 1 . 1 6 9 4
Steffan A. Cline
[hidden email]                             Phoenix, Az
http://www.ExecuChoice.net                                  USA
AIM : SteffanC          ICQ : 57234309
                                  Lasso Partner Alliance Member
---------------------------------------------------------------



> From: Lieven Gekiere <[hidden email]>
> Reply-To: Lasso Talk <[hidden email]>
> Date: Thu, 5 Jul 2007 19:30:07 +0200
> To: Lasso Talk <[hidden email]>
> Subject: Re: vcard download
>
> Yes please ... that would be great :-)
>
> Lieven
>
> On 7/5/07, Steffan A. Cline <[hidden email]> wrote:
>> If you like I can send you the code I used. It already has the header and
>> all in there. It works very well. It took me a while to get it right since
>> the specs are not overwhelmingly consistent between all platforms. Following
>> iCal as an example worked well.
>>
>>
>> Thanks
>>
>> Steffan
>>
>> ---------------------------------------------------------------
>> T E L  6 0 2 . 5 7 9 . 4 2 3 0 | F A X  6 0 2 . 9 7 1 . 1 6 9 4
>> Steffan A. Cline
>> [hidden email]                             Phoenix, Az
>> http://www.ExecuChoice.net                                  USA
>> AIM : SteffanC          ICQ : 57234309
>>                                   Lasso Partner Alliance Member
>> ---------------------------------------------------------------
>>
>>
>>
>>> From: Lieven Gekiere <[hidden email]>
>>> Reply-To: Lasso Talk <[hidden email]>
>>> Date: Thu, 5 Jul 2007 16:01:01 +0200
>>> To: Lasso Talk <[hidden email]>
>>> Subject: vcard download
>>
>>>
>>> Hi List,
>>>
>>>
>>> I'm wondering how you can automatically download and add a vcard to
>>> the Mac osx address book with Lasso (working example :
>>> http://www.lassoforge.com/summit/index.lasso)
>>>
>>> I've created a vCard, but it just downloads as text if you click on
>>> it, instead of opening in Address Book
>>> http://www.gekiere.com/Gekiere%20Lieven.vcf
>>>
>>>
>>>
>>> Lieven
>>>
>>> --
>>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>>
>>
>>
>>
>> --
>> This list is a free service of LassoSoft: http://www.LassoSoft.com/
>> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
>> Manage your subscription: http://www.ListSearch.com/Lasso/
>>
>>
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>



--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/