execute a .js file
jhaytko

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.

1 Comment
foxcode

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