Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] jquery and html5 graphs

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] jquery and html5 graphs
 Login/Join
 
Platinum Member
posted
Hi There

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?

Thanks

This message has been edited. Last edited by: <Kathryn Henning>,


WF 8.0.0.5M
 
Posts: 246 | Location: Montreal, QC, Canada | Registered: October 01, 2003Report This Post
Master
posted Hide Post
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.

So the jQuery .post became something like:
  
$.post('call to report here',...
function(data) {
       //alert(data);
       window.frames["code_result"].document.open();
       window.frames["code_result"].document.write(data);
       window.frames["code_result"].document.close();
       }

...

<iframe id="code_result" frameborder="5" name="code_result" height=700 width=8000>
</iframe>

My preference would be to post to a div, but for this one particular report, I was having an issue.
 
Posts: 822 | Registered: April 23, 2003Report This Post
Platinum Member
posted Hide Post
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.

I am playing with

jQuery.noConflict();

but no luck yet.

Thanks!

Jodye


WF 8.0.0.5M
 
Posts: 246 | Location: Montreal, QC, Canada | Registered: October 01, 2003Report This Post
Platinum Member
posted Hide Post
http://www.datejs.com/

that is causing the conflict


WF 8.0.0.5M
 
Posts: 246 | Location: Montreal, QC, Canada | Registered: October 01, 2003Report This Post
Expert
posted Hide Post
It will definitely work in an iframe because the iframe is a new document. Something in the main document is conflicting...

So, you've tried noConflict?
$.noConflict();
var $$ = jQuery;


I wonder whether this will help: StackOverflow - Javascript Namespace Declaration.


Francis


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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Platinum Member
posted Hide Post
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.

Thanks


WF 8.0.0.5M
 
Posts: 246 | Location: Montreal, QC, Canada | Registered: October 01, 2003Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] jquery and html5 graphs

Copyright © 1996-2020 Information Builders