When I do an email link, on a checkbox, it opens up another web browser window prior to opening up the email window. The person can send the email, but then they have this extra browser window to close also.
how do I stop that from opening up an extra browser window when it sends an email?
What browser are you using to view the course? Are you hosting it within a web server or LMS? This is not occurring in a very simple project I upload to a testing web server and it just opens up an outlook email window.
If you're hosting it in an LMS it may be forcing a new window to open to complete the action, and you could test this a bit further using a site like SCORM Cloud, which is an industry standard testing method for SCORM content.
Thanks for your feedback Ashley.I was using IE, which didn't work. I see that it works fine in Firefox, just popping up the email window with no extra browser window.
I'm afraid most of my users will be on IE, of some sort...
I used IE11, Chrome 36 and Firefox where it all worked as expected. What IE version do you think most of your users are accessing the course through? Unfortunately it's likely an IE setting that would need to be changed, and you may want to connect with your IT team about it - show them the results in Firefox to demonstrate how it's supposed to behave.
Here's some javascript that will close the extra window. The relevant lines are the last two:
var player = GetPlayer(); var email=player.GetVar("email"); var subject="My Subject"; var body_start=player.GetVar("notes"); var mailto_link='mailto:'+email+'?subject='+subject+'&body='+escape(body_start); emailwin=window.open(mailto_link,'emailWin'); emailwin=window.close();
Note: "email" and "notes" are variables set up in Storyline.
6 Replies
Hi Beth,
What browser are you using to view the course? Are you hosting it within a web server or LMS? This is not occurring in a very simple project I upload to a testing web server and it just opens up an outlook email window.
If you're hosting it in an LMS it may be forcing a new window to open to complete the action, and you could test this a bit further using a site like SCORM Cloud, which is an industry standard testing method for SCORM content.
Thanks for your feedback Ashley.I was using IE, which didn't work. I see that it works fine in Firefox, just popping up the email window with no extra browser window.
I'm afraid most of my users will be on IE, of some sort...
Can you think of any workaround for that?
Hi Beth,
I used IE11, Chrome 36 and Firefox where it all worked as expected. What IE version do you think most of your users are accessing the course through? Unfortunately it's likely an IE setting that would need to be changed, and you may want to connect with your IT team about it - show them the results in Firefox to demonstrate how it's supposed to behave.
We'll have a range of IE9-11 users... I think I'll just encourage Firefox browsers and call it good!
Thanks for your feedback!
Sounds good Beth and good luck with your project!
Here's some javascript that will close the extra window. The relevant lines are the last two:
var player = GetPlayer();
var email=player.GetVar("email");
var subject="My Subject";
var body_start=player.GetVar("notes");
var mailto_link='mailto:'+email+'?subject='+subject+'&body='+escape(body_start);
emailwin=window.open(mailto_link,'emailWin');
emailwin=window.close();
Note: "email" and "notes" are variables set up in Storyline.
This discussion is closed. You can start a new discussion or contact Articulate Support.