Add files to location used by internal web server?

Workarounds and usability notes.

Add files to location used by internal web server?

Postby John Robin Dove » Mon Jan 01, 2018 8:19 am

Hi,

re my recents posts, I have been making small test apps and using your internal web server system. It's brilliant! Unfortunately usually I can't use it because my program uses dozens of other files as well as the Toolbook DHTML. Is there any way round this? I've looked in app data etc. but failed to find the web server folder.

John
John Robin Dove
 
Posts: 486
Joined: Thu Jan 23, 2014 4:35 am

Re: Add files to location used by internal web server?

Postby Clifton » Mon Jan 01, 2018 8:48 am

Assuming your other app files are in a location other than the folder where the index.html of the book you are testing is located, you can put the files the root of the [webexport] folder. Then if your application is using relative folder locations to find files, it should be able to use the ones in the root location.
    Example: to access an image from another book in the root location of [webexport]
    "../../myotherbook/images/myimage.jpg"
    If you are loading a test book in [webexport]/mytest/index.html . . .
        the above line would load an image from [webexport]/myotherbook/images/myimage.jpg.
There are other hacks for this, but they are beyond the scope of this reply.
Clifton
Site Admin
 
Posts: 732
Joined: Tue Jan 14, 2014 1:04 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests

cron