-
1. Re: Email link in edge animation
resdesign Feb 5, 2014 9:15 AM (in response to danielwattsnbgroup)Check out this thread:
http://forums.adobe.com/message/6031131#6031131
and this thread:
http://forums.adobe.com/message/5425238#5425238
A simple search on the forum really helps you find information and answers. Easy to use and covers all answers since Animate version 1.
-
2. Re: Email link in edge animation
heathrowe Feb 5, 2014 5:21 PM (in response to danielwattsnbgroup)Instead of window.open("xxxxx"); method, try the window.location = "xxxxx"; on your click event handler.
window.open will force a blank browser window to open, which you do not want to occur.
/// Start Copy Here; paste into click event handler //
window.location = "mailto:me@there.com? \
subject=Subject Line Here& \
body=Add body context here with a link http://www.adobe.com to a website& \
cc=someonelese@anotherdomain.com& \
// End Copy Here //
Also pay attention to the above notation.
- In sum its a mailto URI querystring (?) with specific parmeters equating (=) to a string;
- Initiate a new parameter using the &;
- Use the backward slash \ to designate when to wrap the string to a new line (for visual effect only and easy wrapping of long text strings within the Code Editor);
- I included the cc and bcc (carbon copy/ blind carbon copy) parameters, if not needed see below sample;
- Replace the above string results with your own criteria;
/// Start Copy Here //
window.location = "mailto:me@there.com? \
subject=Subject Line Here& \
body=Add body context here with a link http://www.adobe.com to a website";
// End Copy Here //
hth
Darrell
-
3. Re: Email link in edge animation
danielwattsnbgroup Feb 6, 2014 1:34 AM (in response to heathrowe)Thanks you both for you input. Helpful to see how the code would be written. But I have tried to copy your code into edge animate and apply it to a button and it doesn't work. It opens your emailer application but only keeps the email to send it too. The subject and body copy does not appear.
This is my simple attemp:
http://nbgroup-dpi.co.uk/email_test.zip
One button opens a browser window and the other tries to use your emailer code.
I'm trying to embed this in a folio dps file and open the link in the mail app. Screengrab attached only showing the email to send it to appearing...
Thanks in advance!
Dan
-
4. Re: Email link in edge animation
danielwattsnbgroup Feb 6, 2014 2:11 AM (in response to danielwattsnbgroup)Apologies. It seems to work fine on PC, but its a mac/iPad issue.
Any ideas?
-
5. Re: Email link in edge animation
danielwattsnbgroup Feb 6, 2014 5:09 AM (in response to danielwattsnbgroup)I've figured it out. You coding worked perfected on PC, but some elements were disabled when viewing on ipad or mac. I removed a few bits of code and got it working. Final code:
window.location = "mailto:me@there.com?subject=Subject Line Here&body=Add body context here with a link http://www.adobe.com to a website";
Cheers
Dan



