Hello,
somehow i seem to be unable to get the dhtmlxConnector working.
I tried to use the Postgres-connector from docs.dhtmlx.com/doku.php?id=dhtm … ide_sample to connect to a postgres 9.2 database running on localhost, but it doesn`t work the way i expected it.
I used the following HTML-Code:
<script src="./codebase/dhtmlxgrid.js"></script>
<script src="./codebase/dhtmlxgridcell.js"></script>
<script src="./codebase/dhtmlxgrid_filter.js"></script>
<script src="./codebase/dhtmlxgrid_post.js"></script>
<script src="./codebase/dhtmlxgrid_json.js" type="text/javascript"></script>
<script src="./codebase/dhtmlx.js" type="text/javascript"></script>
<script src="./codebase/dhtmlxcombo.js"></script>
<script src="./codebase/dhtmlxchart.js"></script>
<script type="text/javascript" src="./codebase/datastore.js"></script>
<script src="./codebase/dhtmlxgrid_srnd.js"></script>
<script type="text/javascript" src="./codebase/datastore.js"></script>
<script type="text/javascript" src="./codebase/dataprocessor.js"></script>
<script src="./codebase/connector.js" type="text/javascript"></script>
<style>
/*these styles allows dhtmlxLayout to work in the Full Screen mode in different browsers correctly*/
html, body {
width: 90%;
height: 90%;
margin: 0px;
overflow: hidden;
background-color:white;
}
<script>
window.dhx_globalImgPath="./codebase/imgs/";
</script>
and the following data.php:
<?php require("connector/grid_connector.php"); require("connector/db_postgre.php"); $res = pg_connect("host=localhost port=5433 dbname=Test"); $gridConn = new GridConnector($res,"postgre"); ?>My Postgres 9.2 is running on Port 3433, because i have another Postgres-Version running on 5432, so it should connect with the database.
But instead i get an empty grid containing the headers and an popup message including the content of the data.php file.
Firefox gives me two errors in the error console:
First: TypeError:this.splice is not a function from path/codebase/dhtmlx.js in line 2582
Second: Kein Element gefunden (No Element found) in data.php line 11.
It seems the php-file is not working correctly.
I have an Apache Webserver running with PHP Version 5.2.5, which i have installed together with an OSGeo4W-Webmapping device so the php-files should be able to work.
Perhaps i have to set an path to the php-files in the php.ini-file of the apache but my trials to do so were unsuccessful.
I have unpacked the dhtmlx_pro_full.zip file into a new working directory and unpacked the newest dhtmlxConnector_php_v15_050413.zip into the dhtmlxconnector-subdirectory and tried to start some of the sample - files from the grid-subdirectory but still all i get is an popup-window containing the content of the php-files and the Firefox-error Message: “Kein Element gefunden” (No Element found) in the php-file.
Could anybody please tell me, where i am going wrong?
I am sure it is something obvious, but somehow i seem to be blind to the problem.
Any help is appreciated.
Thank you for watching my problem.