I've had some problems with running stuff from 127.0.0.1:9080 and similar lately with SB1.40, and wanted to basically just start the HTML file within FireFox for local use, without any webserver stuff running. Like "file:///E:/Temp4/SpiderBasic_Compilation2.html" in Firefox.
But the "/" in front of all "/spiderbasic...." in the .html file should not be there, at least for windows I believe, probably OK on Linux.
Anyway. by placing the "spiderbasic" directory together with the "spiderbasic.js" compiled file as well as the "boot" of SpiderBasic_Compilation01.html, I removed the "/" from:
<script type="text/javascript" data-main="/spiderbasic/libraries/javascript/main.js" src="/spiderbasic/libraries/javascript/require.js"></script>
<script type="text/javascript" src="/spiderbasic/libraries/javascript/library.js"></script>
<script type="text/javascript" src="/spiderbasic/libraries/javascript/debug.js"></script>
<script type="text/javascript">var dojoConfig = { async: 1 }; </script>
<link rel="stylesheet" href="/spiderbasic/libraries/javascript/dijit/themes/flat/flat.css" />
<link rel="stylesheet" href="/spiderbasic/libraries/javascript/dgrid/css/dgrid.css" />
<link rel="stylesheet" href="/spiderbasic/libraries/javascript/cbtree/icons/cbtreeIcons.css" />
<link rel="stylesheet" href="/spiderbasic/libraries/javascript/cbtree/icons/fileIconsMS.css" />
<script type="text/javascript" src="/spiderbasic/libraries/javascript/xdate.dev.js"></script>
<link rel="stylesheet" title="Default" href="/spiderbasic/libraries/javascript/themes/flat/window.css" type="text/css"/>
into
<script type="text/javascript" data-main="spiderbasic/libraries/javascript/main.js" src="spiderbasic/libraries/javascript/require.js"></script>
<script type="text/javascript" src="spiderbasic/libraries/javascript/library.js"></script>
<script type="text/javascript" src="spiderbasic/libraries/javascript/debug.js"></script>
<script type="text/javascript">var dojoConfig = { async: 1 }; </script>
<link rel="stylesheet" href="spiderbasic/libraries/javascript/dijit/themes/flat/flat.css" />
<link rel="stylesheet" href="spiderbasic/libraries/javascript/dgrid/css/dgrid.css" />
<link rel="stylesheet" href="spiderbasic/libraries/javascript/cbtree/icons/cbtreeIcons.css" />
<link rel="stylesheet" href="spiderbasic/libraries/javascript/cbtree/icons/fileIconsMS.css" />
<script type="text/javascript" src="spiderbasic/libraries/javascript/xdate.dev.js"></script>
<link rel="stylesheet" title="Default" href="spiderbasic/libraries/javascript/themes/flat/window.css" type="text/css"/>
In my opinion, for Windows the "/" should not be there by default during compilcation.
Im not sure what a src="" starting with "/" is supposed to do, as I only know the "../" to go parent directory. Please enlighten me why the src="" starts with "/" ?
SpiderBasic_Compilation starting with "/"
-
- Posts: 35
- Joined: Tue Apr 05, 2016 2:14 pm
- Location: Norway
- Contact:
SpiderBasic_Compilation starting with "/"
Registered owner of PureBasic and SpiderBasic
Good stuff!

-
- Posts: 35
- Joined: Tue Apr 05, 2016 2:14 pm
- Location: Norway
- Contact:
Re: SpiderBasic_Compilation starting with "/"
Ahh, nevermind this. It does appear correctly if I tried from menu "Export...". I understand now. It might also be to my frustration otherwise today in my other post "Hidegadget on/off" issue. Seems to be some new workarounds I have to live with, or to understand the new V1.40 magic of SpiderBasic things...
Registered owner of PureBasic and SpiderBasic
Good stuff!
