I very much doubt that Javascript will provide access to a folder on the root of a client's computer for security reasons. When Storyline content runs on an LMS then Javascript will be tightly sandboxed and you won't be able to access anything on the client's filesystem.
Thanks for your reply. The module will NOT be going onto an LMS - it will be run from a website. We do have the ability to create folders etc, using the Excel spreadsheet and macros we're using, but just wanted to know what the, hopefully, simple Javascript code would look like.
No probs. Office apps are tightly bound to the desktop and with VBA you can perform filesystem based functions such as checking the existence of a file or folder.
When I referred to LMS I actually meant websites in general. If your website is set up in the client web browser's "intranet" or "trusted sites zone" then you might be able to get javascript to do what you want to do by creating an instance of the FileSystemObject (FSO) COM object. Here is a site that might help: http://www.yaldex.com/wjscript/sgProgrammingFileSystemObject.htm
My guess however is that unless the website and client computer's security settings are set up in a very specific way, attempting to instantiate a FSO object will fail.
Thanks Chris. If it could indeed work I was hoping that there might be some simple code I could copy and paste from here, but I guess it's not going to be that easy. Thanks again.
4 Replies
I very much doubt that Javascript will provide access to a folder on the root of a client's computer for security reasons.
When Storyline content runs on an LMS then Javascript will be tightly sandboxed and you won't be able to access anything on the client's filesystem.
Hello Chris,
Thanks for your reply. The module will NOT be going onto an LMS - it will be run from a website. We do have the ability to create folders etc, using the Excel spreadsheet and macros we're using, but just wanted to know what the, hopefully, simple Javascript code would look like.
Thanks again.
No probs. Office apps are tightly bound to the desktop and with VBA you can perform filesystem based functions such as checking the existence of a file or folder.
When I referred to LMS I actually meant websites in general. If your website is set up in the client web browser's "intranet" or "trusted sites zone" then you might be able to get javascript to do what you want to do by creating an instance of the FileSystemObject (FSO) COM object. Here is a site that might help: http://www.yaldex.com/wjscript/sgProgrammingFileSystemObject.htm
My guess however is that unless the website and client computer's security settings are set up in a very specific way, attempting to instantiate a FSO object will fail.
Thanks Chris. If it could indeed work I was hoping that there might be some simple code I could copy and paste from here, but I guess it's not going to be that easy. Thanks again.
This discussion is closed. You can start a new discussion or contact Articulate Support.