Can't get it to display the images

<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script src="DHTMLX/dhtmlxDataView/codebase/dhtmlxdataview.js" type="text/javascript"></script>
        <script src="DHTMLX/dhtmlxDataView/codebase/types/ftypes.js" type="text/javascript"></script>
        <link rel="STYLESHEET" type="text/css" href="DHTMLX/dhtmlxDataView/codebase/dhtmlxdataview.css">  
        <link rel="STYLESHEET" type="text/css" href="DHTMLX/dhtmlxDataView/codebase/types/ftypes.css">  
    </head>
    <body>
        <script>
            function doOnLoad() {
                data = new dhtmlXDataView("data_container");
                data.define("type", "ficon");
                data.customize({
                    icons_src_dir: "DHTMLX/dhtmlxDataView/samples/common/images"
                });
                data.load("DHTMLX/dhtmlxDataView/samples/common/files_ext.xml");
            }
            try{
                doOnLoad();
            }catch(e) {
                alert(e);
            }

        </script>

        <div style="position:relative;">
            <img src="DHTMLX/dhtmlxDataView/samples/common/images/samples_frame.gif" width="436" height="513" alt="" border="0">
            <div id="data_container" style="width:396px;height:400px;overflow:hidden;position:absolute;top:65px;left:20px;border:0px solid red;"></div>
        </div>



    </body>
</html>

The above code is basically the initialisation sample for the dhtmlXDataView folder.

When I run this example,This is what i get:

As you can see Icons are not present.

Adding the try catch block,I get the error message:

ReferenceError: dhtmlXDataView is not defined

But here again I found that the file “dhtmlxdataview.js” has the definition for this object.

Has any of you faced similar problems?Please help me out…

Please check docs.dhtmlx.com/doku.php?id=othe … mon_errors

Be sure to double-check relative paths to js files

I Tried putting the dhtmlx.js and related files.

Now the message goes like “TypeError: Cannot read property ‘className’ of null”.

The full source of the current program is as follows:

[code]

    <script>
        dhtmlx.image_path = "DHTMLX/imgs/";
        var data;
        
        function doOnLoad() {
            try {
            data = new dhtmlXDataView("data_container");
            }catch(e) {
                alert("Helo"+e);
            }
            changeType("ficon");
            data.define("drag", true);
            data.load("DHTMLX/dhtmlxDataView/samples/common/files_ext.xml");
        }
        function changeType(type) {
            data.define("type", type);
            data.customize({icons_src_dir: "DHTMLX/dhtmlxdataview/samples/common/images"});
        }
        try {
        doOnLoad();
        }
        catch(e) {
            //alert(e);
        }
    </script>


    <div style="position:relative;">
        <img src="DHTMLX/dhtmlxdataview/samples/common/images/samples_frame.gif" width="436" height="513" alt="" border="0">
        <div id="data_container" style="width:396px;height:400px;overflow:hidden;position:absolute;top:65px;left:20px;border:0px solid red;"></div>
    </div>
    <h3>Changing type, Folders adapts drag-n-drop to new items appearence</h3>
    <input type="radio" name="switch" onclick="changeType(this.value)" value="ficon" checked> F-icon<br>
    <input type="radio" name="switch" onclick="changeType(this.value)" value="ftiles"> F-titles<br>
    <input type="radio" name="switch" onclick="changeType(this.value)" value="ftable"> F-tab


</body>
[/code]

This is actually the example given in http://www.dhtmlx.com/docs/products/dhtmlxDataView/samples/07_dhtmlxfolders/04_folders_drag-n-drop.html

What I want to know is,whether there is some server side code involved in the whole thing?
Which might be what is causing the problem… Because the example provided with the copy is downloaded doesent work either… :cry:

I would like to mention that none of the dataview examples work.

Mentioned sample doesn’t use any server side processing, so it must run correctly if next is true

  • you are loading sample through http ( not directly from filesystem )
  • all files are at correct locations ( same as in downloadable package )