Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Sowjanya Kolli on Aug 24, 2007 16:07
open dhtmlx forum
dhtmlxGrid - Problem in executing sample application

We have downloded the sample application (dhtmlxgrid_with_db_jsp.zip) and deployed that in RAD 7.0. We have created the tables in Oracle 9i and populated with sample data. When we try to run the application (index.html) it displays only the header (Instore, author,....) and doesn't display the sample data. Moreover we are getting a JavaScript error saying "Error Type: LoadXML, Description: Incorrect XML".  We are using Windows XP and the IE version is 6.x.

We have did lot of debugging but not able to resolve this. Any help in resolving this issue will be highly appreciated.

Answer posted by Stanislav on Sep 05, 2007 19:01
>>saying "Error Type: LoadXML, Description: Incorrect XML"

Reasons why XML not loaded correctly

a) Simplest but most common - please be sure that path which you used
inside loadXMl command valid and produce correct XML response.
b) Please check that XML response generated by script are correct XML
    - synax correct ( some special chars can corrupt output, also if
    you are uses encoding different from UTF-8, please be sure that
    it correctly specified in XML header )
    - correct content type assigned - text/xml
    - in case of FF, there must not be any whitespaces before start
    of output and <?xml declaration
to check all those requirements , just point your browser to XML
generation script - if all correct browser will render correct XML
document.

Answer posted by Veeru on Oct 19, 2007 00:50
When pointed to the xml generation script, this is what i get

<b>Notice</b>:  Undefined offset:  1 in <b>/var/www/html/scbrgrid/samples/phpmysql/classes/main.php</b> on line <b>74</b><br />

Is there any simple instruction set to get this demo up and running?

Thanks
Vru

Answer posted on Oct 19, 2007 07:32
The code was checked with local version of PHP without such messages ( Notice level messages can be diffferent for different versions of PHP ), just add
   
    error_reporting(E_ALL ^ E_NOTICE);

as first line of PHP code