Find the Storyline template you need, download, configure, and deliver your courses. So all I had to do was to create a variable that would encode the user name before putting it to the url as a parameter. eLearning Locker - Storyline eLearning Templates for Faster eLearning Development. Then the problem that came up was that despite printing on Firefox and IE, Chrome and Opera encoded the letters as %20%21 etc. I used decodeURIComponent cause at first I couldn’t print if I used Greek letters. Now I can print the certificate on Firefox, IE, Opera and Chrome. ![]() Window.open(urlstring,”_blank”,”width=800px,height=600px,menubar=no”) Īnd your code in the printCertificate.html is like this (I am including only the line I changed):ĭocument.write(” + decodeURIComponent(learner_name) + ”) Var urlstring = (“printCertificate.html?print=” + enName + “&” + theDate) Var enName = encodeURIComponent(theName) In the javascript trigger the code is like this: ![]() I also wanted to have Greek characters so I modified the code a bit. I didn’t want to include the date or give the user the option to change his name, so I made the appropriate changes to my story file. From all the solutions for the certificate I ended up with this one.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |