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.
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.
Hi Michael, thanks for that. I knew it was going to be a difficult task. GoogleDocs could be the way forward actually, I hadn't thought of that. Thanks for your suggestion.
3 Replies
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
Hi Michael, thanks for that. I knew it was going to be a difficult task. GoogleDocs could be the way forward actually, I hadn't thought of that. Thanks for your suggestion.
Glad that Michael was able to assist you here Alexander, thanks for popping back in :)
This discussion is closed. You can start a new discussion or contact Articulate Support.