I will try to download the new version of Spiderbasic and see if that helps. I suspect the problem is in the libraries.
I will come back here later. Maybe on thursday.
Blanc screen on localhost
Re: Blanc screen on localhost
I tryed the new version.
It didn't work also.
The libraries do not get copied automaticly as stated in the documentation.
This should work according to the documentation:
SpiderBasic library path
The library path where all SpiderBasic dependencies should be loaded from. It can be relative to the main HTML file, or be loaded from another server. This should be a raw copy of the 'SpiderBasic/Libraries/JavaScript' directory. If no value is specified, the default JavaScript directory will be "spiderbasic".
Copy SpiderBasic libraries
If enabled, it will copy automatically the 'SpiderBasic/Libraries/JavaScript' content to the directory in 'SpiderBasic library path'. The path has to be relative and the destination directory structure needs to be already created.
It doesn't. Not on Ubuntu. Very strange, when on filesystem started it works, On the server (Apache web server on XAMMP) not working.
The webapp is not complex:
It didn't work also.
The libraries do not get copied automaticly as stated in the documentation.
This should work according to the documentation:
SpiderBasic library path
The library path where all SpiderBasic dependencies should be loaded from. It can be relative to the main HTML file, or be loaded from another server. This should be a raw copy of the 'SpiderBasic/Libraries/JavaScript' directory. If no value is specified, the default JavaScript directory will be "spiderbasic".
Copy SpiderBasic libraries
If enabled, it will copy automatically the 'SpiderBasic/Libraries/JavaScript' content to the directory in 'SpiderBasic library path'. The path has to be relative and the destination directory structure needs to be already created.
It doesn't. Not on Ubuntu. Very strange, when on filesystem started it works, On the server (Apache web server on XAMMP) not working.
The webapp is not complex:
Code: Select all
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="user-scalable=no, width=device-width, height=device-height, initial-scale=1, minimum-scale=1, maximum-scale=1, shrink-to-fit=no">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<script type="text/javascript">var spider = {}; spider.nbModules = 1; spider.nbLoadedModules = 0;</script>
<title>Rekenmachine</title>
<script type="text/javascript">function onLoad() { spiderCheckBrowser(); }</script>
<script type="text/javascript" src="./javascript/platform.js"></script>
<script type="text/javascript" src="./javascript/init.js"></script>
<script type="text/javascript">dojoConfig.baseUrl = './javascript/'; </script>
<script type="text/javascript" src="./javascript/dojo/dojo.js"></script>
<script type="text/javascript" src="./javascript/main.js?t=1770302805"></script>
<link rel="stylesheet" href="./javascript/dojo/themes/claro/claro.css" />
<link rel="stylesheet" href="./javascript/dojo/dgrid/css/dgrid.css" />
<script type="text/javascript" src="./javascript/xdate.min.js"></script>
<link rel="stylesheet" title="Default" href="./javascript/themes/flat/window.css" type="text/css"/>
<script type="text/javascript" src="rekenmachine.js?t=1770302805"></script>
<link rel="icon" type="image/png" href="favicon.png"/>
</head>
<body oncontextmenu="return false;" class="claro" id="spiderbody" onload="onLoad()">
</body>
</html>
Re: Blanc screen on localhost
seems like you have tweak [SpiderBasic libraries path] renaming to "javascript", leave it empy -> https://postimg.cc/NLByzwC2
under windows copies the folder
thats in the SAME folder where YOURAPP.HTML exist also a rekenmachine.js file should exist and ALSO a folder named javascript which inside it exist all libs
can provide rekenmacine.js too? a
if you dont want to provide your script a simple works ?
under windows copies the folder
thats in the SAME folder where YOURAPP.HTML exist also a rekenmachine.js file should exist and ALSO a folder named javascript which inside it exist all libs
can provide rekenmacine.js too? a
if you dont want to provide your script a simple works ?
Christos
Re: Blanc screen on localhost
It copied the libraries in a folder spiderbasic now.
result:
This still gives a blanc screen on localhost
But when I put it online then it runs.
The issue is Localhost.
I can use the link created by spidebasic in a browser like http://127.0.0.1:19080/SpiderBasic_Comp ... 1770368502
Of course this only works when spiderbasic is running too.
result:
Code: Select all
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="user-scalable=no, width=device-width, height=device-height, initial-scale=1, minimum-scale=1, maximum-scale=1, shrink-to-fit=no">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<script type="text/javascript">var spider = {}; spider.nbModules = 1; spider.nbLoadedModules = 0;</script>
<title>Rekenmachine</title>
<script type="text/javascript">function onLoad() { spiderCheckBrowser(); }</script>
<script type="text/javascript" src="spiderbasic/platform.js"></script>
<script type="text/javascript" src="spiderbasic/init.js"></script>
<script type="text/javascript">dojoConfig.baseUrl = 'spiderbasic/'; </script>
<script type="text/javascript" src="spiderbasic/dojo/dojo.js"></script>
<script type="text/javascript" src="spiderbasic/main.js?t=1770358852"></script>
<link rel="stylesheet" href="spiderbasic/dojo/themes/claro/claro.css" />
<link rel="stylesheet" href="spiderbasic/dojo/dgrid/css/dgrid.css" />
<script type="text/javascript" src="spiderbasic/xdate.min.js"></script>
<link rel="stylesheet" title="Default" href="spiderbasic/themes/flat/window.css" type="text/css"/>
<script type="text/javascript" src="spiderbasic.js?t=1770358852"></script>
<link rel="icon" type="image/png" href="favicon.png"/>
</head>
<body oncontextmenu="return false;" class="claro" id="spiderbody" onload="onLoad()">
</body>
</html>
But when I put it online then it runs.
The issue is Localhost.
I can use the link created by spidebasic in a browser like http://127.0.0.1:19080/SpiderBasic_Comp ... 1770368502
Of course this only works when spiderbasic is running too.