Is there a way to get a file that was saved in prompt.js to run it's scripts? If I type the file name myscript.js from the correct directory I was hoping the file would run it's script but it doesn't.
execute a .js file
jhaytko March 1st, 2017
1 Comment
foxcode March 2nd, 2017
Hi jhaytko
Promptjs is quite heavily integrated with wade, to load a script you can do this
wade.loadScript("nameOfYourFile.js", null, true);
Once you have loaded the script, you can run any functions you defined in it. Hope this helps.
Post a reply
Add Attachment
Submit Reply
Login to Reply