Javascript help
Oct 23, 2013
I posted in an old thread yesterday [ http://community.articulate.com/forums/t/37170.aspx ], but thought I'd create a new thread to put my question out to the community at large.
Basically I want to use variables to populate an email message through javascript. I found a working example, but whenever I "touch it" somehow it suddenly stops working altogether (a trend, if you ask my wife).
I have attached it again in this thread so see if there are any java gurus out there. (there are two examples in this .story. Mine is the longer one at the end of the quiz. The other one is the (formerly working) sample I found that I was using as a template.
Thanks
Stanton
I am experienceing some odd behaviour and am not quite sure what I am doing to break this. Ba
9 Replies
When you say it stops working... do you mean when you preview the file? Java won't execute during preview. But if you publish "to cd" and then run the published file, you can test to see if your java is working correctly or not.
Hi Owen,
Is is published. I doesn't appear to be calling the mail client... the email button simply does nothing when clicked.
Cheers,
Stanton
I just published to cd and your right, the java needs some work. I would reach out to Steve Flowers; he seems to be the local java guru.
I had a project a while ago that collected various user selections as variables. Steve helped me with the java and the end result looked something like this:
var email="email@email.com";
var player = GetPlayer();
var body_start=new Array();
body_text = player.GetVar("MailBodyText");
var subject_start=new Array();
var subject = player.GetVar("MailSubject");
var mailto_link='mailto:'+email+'?subject='+subject+'&body='+body_text;
win=window.open(mailto_link,'emailWin');
Thanks for the tip Owen,
I'm sure there are many folks who know the answer but if Steve happens by this message, your java expertise would be much appreciated.
Stanton
I would message him directly.
Hi Stanton, were you able to connect with Steve or determine a solution? I'll play around with your sample you posted. I'll also check out the other thread you mentioned. Very interested in sorting this out. Thanks.
Thanks Duane. I didn't hear back from Steve. I imagine his mailbox is probably full from requests similar to mine. If you are able to figure this out, I'd be very happy to hear about it.
Cheers,
Stanton
I have made transformation in the result slide to show the results of the learner it is possible to see the certificate, to see the result i try to put another trigger to send to the learner after the advice of the teachers or the signature of the learning center in the case of acreditation result's.
This discussion is closed. You can start a new discussion or contact Articulate Support.