I am using Eclipse 3.7 IDE for my development and I have added the JChartFX for my graph needs. It works perfectly when I test from inside Eclipse IDE. But on IE 10, it throws error : SCRIPT5007: Unable to get property 'getElementById' of undefined or null reference. Here is my loadChart funtion :
function loadChart(frm,data){
chart1 = new cfx.Chart();
chart1.setDataSource(data);
chart1.setGallery(cfx.Gallery.Bars);
var divHolder = frm.document.getElementById("graph"); // Alternatively I tried using document.forms("formname").elements("graph") but then it results in script error : SCRIPT5007: Unable to get property 'offsetWidth' of undefined or null reference. It points to jChartFX.system.js
chart1.create(divHolder);
}
The document.getElementById works in all other jsp pages.
Please help me resolve it as I am almost done with my development work and I am not sure how to fix this IE issue.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
Swap
Hi,
I am using Eclipse 3.7 IDE for my development and I have added the JChartFX for my graph needs. It works perfectly when I test from inside Eclipse IDE. But on IE 10, it throws error : SCRIPT5007: Unable to get property 'getElementById' of undefined or null reference. Here is my loadChart funtion :
function loadChart(frm,data){
chart1 = new cfx.Chart();
chart1.setDataSource(data);
chart1.setGallery(cfx.Gallery.Bars);
var divHolder = frm.document.getElementById("graph"); // Alternatively I tried using document.forms("formname").elements("graph") but then it results in script error : SCRIPT5007: Unable to get property 'offsetWidth' of undefined or null reference. It points to jChartFX.system.js
chart1.create(divHolder);
}
The document.getElementById works in all other jsp pages.
Please help me resolve it as I am almost done with my development work and I am not sure how to fix this IE issue.
Thanks
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.