Sign in to follow this  
ericb1

using ASP as a datasource for live Thermometer FusionWidget

Recommended Posts

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this