[quote:10f9gv3j]Why we can't locally load files in Preview Mode in Node-Webkit ??
We can though. In node-webkit preview if you use "document.xml" as the file it will look here:
"http://localhost:50000/document.xml"
If you want to get the file from the same folder as the capx you need to type it in explicitly:
"C:\Users\rojo\Documents\c2projects\document.xml"
And to make it work in preview or in export you could use a global like this:
global text AppPath = "C:\Users\rojo\Documents\c2projects\"
Start of layout
System: [NEGATE] is in preview
--- set AppPath to NodeWebkit.AppFolder
And then request any files with:
AppPath & "document.xml"