I can't get my app to run on my local appache2 server. The apache2 seems to run fine, I can open different pages on it, that I didn't create with spiderbasic.
Locally I can open my app without problems. When I use the apache server my browser says the following:
<script type="text/javascript">dojoConfig.baseUrl = 'spiderbasic/'; </script>
Paused on exception
ReferenceError: dojoConfig is not defined
why is that?
The index.html file:
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"><script type="text/javascript">var spider = {}; spider.nbModules = 1; spider.nbLoadedModules = 0;</script>
<title>WebChat_example</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"></script>
<script type="text/javascript" src="spiderbasic/debug.js"></script>
<link rel="stylesheet" href="spiderbasic/dojo/themes/flat/flat.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="webchat.js"></script>
</head>
<body oncontextmenu="return false;" class="flat" id="spiderbody" onload="onLoad()">
</body>
</html>
App name: WebChat_example
HTML filename: index.html
JavaScript filename: webchat.js
SpiderBasic libraries path: libs
Copy SpiderBasic libraries: Yes
Enable debugger: Yes
The rest is not set.
I copied the two files and the folder(libs) with the js files to my apache server.
SpiderBasic 2.21 (Linux - x64) Demo
Linux Mint 18.1 x64
Do you need any more informations?
Regards Zim