I am trying to display DHTMLX Line chart on JSP by using div tag but the chart is not populating.
But if i use the same code in the HTML then everything is fine and displaying the chart on the page. can anybody help please.
In what browser does the problem occur ?
In IE you need to keep the thirdparty folder from the dhtmlxchart/codebase in the same folder as dhtmlxchart.js (codebase/thirdparty and codebase/dhtmlxchart.js). Check that paths to libraries are correct.
thanx for your quick reply.
I tried using Mozilla Firefox, IE8 and chrome. Yea thirdparty folder is there. the code working fine without any error in HTML page. but not in JSP i used firebug for mozilla browser to check whether the java script code that i m using is executing properly or not…but that is also debugging in quite manner. i do not know what causing this not to display in jsp
Thanks Alexandra.
I found out the cause of the problem that why i was not able to populate the chart, even the chart is not displaying yet.
What I am doing: i have a jsp page there i am declaring all chart preparation and load xml code in tag. now if i do only this then the chart displayed perfectly (as this was the case in HTML code as well previously).
Problem: now i am calling a javascript function on clicking on a button in the same jsp page, from a different abc.js file (java script file), so now it’s causing the problem and the chart is not displaying.
I hope you would understand what i really mean to say.
When clicking on button - are you only run the code which inits the chart or loading the part of html by some kind of ajax call ?
If all necessary scripts are included on the page - chart must work correctly for both use-cases ( initial init and init from the button click )
Stanislav, thanks for your suggestion and i got the pointer.
it was the ajax call which was going on just after another button selection, so it was causing the problem.