ericb1 Report post Posted March 10, 2009 Sorry for the newbie question, but I'm having some difficulties figuring out the different methods to use live data in a FusionWidget. I'm trying to put a thermometer on a web page, where the thermometer data is updated with a live SQL query. I'm trying to use the dataURL or dataXML method outlined in the documentation, but I'm missing something. I've got an asp data file, and I didn't even put in any live data yet, just trying to create a simple thermometer: <%@ Language=VBScript %><HTML><HEAD><TITLE>FusionCharts - Database Example</TITLE><SCRIPT LANGUAGE="Javascript" SRC="../Charts/FusionCharts.js"></SCRIPT></HEAD><!-- #INCLUDE FILE="../includes/FusionCharts.asp" --><!-- #INCLUDE FILE="../includes/DBConn.asp" --><BODY><CENTER><% strXML = "<chart caption='Some caption' " _& "palette='4' lowerLimit='-50' upperLimit='10' numberSuffix=' Share this post Link to post Share on other sites
Rahul Kumar Report post Posted March 12, 2009 Hi, We have created a small sample in ASP please execute it and let us know the result. Sample.zip Share this post Link to post Share on other sites
ericb1 Report post Posted March 20, 2009 got it, thanks so much. I've got it working nicely! Share this post Link to post Share on other sites
ericb1 Report post Posted March 20, 2009 Now that I've got my ASP page to render my chart correctly, which method is this using? The dataURL or the datXML method? I'm trying to use this ASP page as a dataURL scenario, so I've got another page, and I'm trying to call the chart this way: <div id="thermometer">This text is replaced by the chart.</div> <script type="text/javascript"> var chart1 = new FusionCharts("Funnel.swf", "thermometer", "600", "400", "0", "0"); chart1.setDataURL("http://../test/asptest.asp"); chart1.render("thermometer"); </script> But it doesn't load anything. Is there something I'm missing? Thanks! Share this post Link to post Share on other sites
ericb1 Report post Posted March 20, 2009 I got it, I was putting the raw asp, but if I use the formatted html, it works fine. Share this post Link to post Share on other sites