Executing JavaScript to write to a .txt file online

Dec 03, 2014

Hello,

I'm wondering if anyone knows of a way to execute some JavaScript that will write to a file on a server?

I have an eLearning course that candidates are taking on an iPad, and once they've finished it I need their name and scores (both of which are setup as variables) to be uploaded to a .txt file.

Does anyone know if this is possible?

Thanks,

Alex.

3 Replies
Michael Hinze

For security reasons, I don't think it is possible to write a file to a sever using JavaScript alone. At the very least, you would need a server-side script and call that script using something like PHP.

Have you considered writing your Storyline variables to a GoogleDocs spreadsheet? Here is a thread that discusses options: https://community.articulate.com/discussions/articulate-storyline/exporting-variables-to-be-read-in-a-google-docs-spreadsheet

This discussion is closed. You can start a new discussion or contact Articulate Support.