Forum Discussion
User notes that they can print and email
Hello,
I am trying to implement Stephanie's javascript method for the learner to be able to print and send his/her notes by email, but I am having some difficulties.
Basically, the print option alone works well, but once I try to add a trigger for the email button, none of them work. It seems to interfere at some level. And I didn't manage to have the email trigger work alone.
I am really not a coding expert (like many of us!), but if someone could help I would be most grateful!!
I am attaching two files:
- javascript_print_OK : the print javascript executes well
- javascript_print_notOK : I added the javascript for email, but neither the print nor the email javascript execute.
Thank you !!
Bastien
Hi Bastien
I took a quick look at the javascript you have in the email version.
You have a large amount of corrupt code after the var mailto_link='mailto:'+email+'?subject='+subject+'&body= *************section.
I'm not sure what the code is as it shows spaces BUT it is certainly NOT spaces. You may need a hex viewer to interpret.
I suggest that you remove all the spaces after
var mailto_link='mailto:'+email+'?subject='+subject+'&body=*************
and after the code
'+"Mes Actions“*******************
and again after the code
+exercisenotes1+"Mes actions“*******************
Looks like a cut and paste entry of the javascript has introduced other non viewable characters
Regards
Doug