Marcus wrote:
> Hi everyone,
>
> Help!!
>
> I am trying to launch a default email from within a Director
> projector. The
> actual text is a list of various emails within a scrollable text box.
>
> Using the hyperlinkClicked behaviour makes the default web browser launch
> first, then the email.
>
> Using buddy api throws up errors, and EmailExec I can't get to work!
>
> Can anyone help you please, my deadline is tight!
>
> Thanks
> Marcus
Hi Marcus,
I wrote a quick handler and have tested it on a scrolling text member with
no problems.
--- attach to scrolling member----
-- use the pipe character to seperate data for the email or anything you
want really
on hyperlinkclicked me, link
oldDelim=the itemdelimiter
the itemdelimiter="|"
if link.item[1] contains "@" then
EmailExecNewMessage (link.item[1], link.item[2], link.item[3])
end if
the itemdelimiter=oldDelim
end
You will need to have properly formatted html but with no mailto: in the
link.
This gives you an idea of a quick handler to build the data
on buildText
-- scrolly needs to be a text member
myHtmlSource="<html><head><title></title></head><body><p>john</p><p>martha
</p><p>mary</p><p>bob</p><p><a href='[EMAIL PROTECTED]| Cricket- England v
Australia | Yet another thrashing !'>wally</a></p></body></html>"
member ("scrolly").html=myHtmlSource
end
Hope this helps
Brad
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list, email
[EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for
learning and helping with programming Lingo. Thanks!]