I am using jquery to post the results of a graph into a div. It works perfectly if the graph is a PNG but if I make it html5 (JSCHART) it does not work. I am using
$.post('call to graph here',
function(data) {
$('#divname').html(data);
});
obviously there is a conflict between the HTML 5 JSCHART rendering and the jquery code (I am using jquery 1.8.3 btw)
Anyone know how I can get jquery to play nicely with WF html5 graphs?
ThanksThis message has been edited. Last edited by: <Kathryn Henning>,
WF 8.0.0.5M
September 23, 2013, 02:54 PM
David Briars
Not an answer for you, perhaps something to think about..
I was working on rendering the results of a WebFOCUS report, within a div tag, using the $(selector).html(content) method, in the same fashion as you are attempting to get a chart to render.
In this one particular instance, I was getting errors in the browser, until I switched to writing to an iframe tag.
My preference would be to post to a div, but for this one particular report, I was having an issue.
September 24, 2013, 10:08 AM
jodye
Hi David
You are right.. it does work with an iframe!
I probably do need it to work with div though.
I have found the issue. There is a conflict with date.js that I am using for a jquery datepicker. If I comment out the date.js include then it works in the div.
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
September 25, 2013, 08:32 AM
jodye
you know what guys... I have to abandon HTML5 jschart anyway since the html5 graphs do not seem to work in IE8 and we need to support that. So I will be sticking with PNG.