ericb1

Members
  • Content count

    7
  • Joined

  • Last visited

Everything posted by ericb1

  1. any help is greatly appreciated. I've got a chart working great inside an ASP page, this part is fine. Now I'm trying to call this from a DNN module via the sample dataURL method: <div id="chart1div"> This text is replaced by the chart. </div> <script type="text/javascript"> var chart1 = new FusionCharts("Funnel.swf", "ChId1", "600", "400", "0", "0"); chart1.setDataURL("Data.asp"); chart1.render("chart1div"); </script> but nothing is happening here. What should the "Data.asp" page output look like? Just standard XML? Any help is appreciated, thanks!
  2. Fusionchart dataURL method with DNN

    Thanks so much for the reply. Yes, the HTML embed method does work on the same page. Should I just use the HTML embed method? What's the difference, or do I lose anything functionality with this option? On my test ASP page, I have the following that does not work: <SCRIPT LANGUAGE="Javascript" SRC="./Charts/FusionCharts.js"> //You need to include the above JS file, if you intend to embed the chart using JavaScript. </SCRIPT> <SCRIPT LANGUAGE="JavaScript"> function FC_Rendered(DOMId){ //This method is called whenever a FusionCharts chart is loaded. //Check if it's the required chart using ID if (DOMId=="ChId1"){ //Invoke updateChart() method to update chart with new data updateChart(); } } function updateChart(){ //Get reference to chart object using Dom ID "ChId1" var chartObj = getChartFromId("ChId1"); //Update its XML Data URL chartObj.setDataURL("./test/aspXML.asp"); } </SCRIPT> <BODY> <div id="chart1div"> This text is replaced by the chart. </div> <script type="text/javascript"> var chart1 = new FusionCharts("./Charts/AngularGauge.swf", "ChId1", "600", "400", true,true); //Start Chart with empty data as we'll later update using JavaScript chart1.setDataXML("<chart></chart>"); chart1.render("chart1div"); </script> and then right below it, this, which does work: <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/ cabs/flash/swflash.cab#version=8,0,0,0" width="400" height="200" id="MyFirstChart" > <param name="movie" value="./Charts/AngularGauge.swf" /> <param name="FlashVars" value="&dataURL=./test/aspXML.asp"> <param name="quality" value="high" /> <embed src="./Charts/AngularGauge.swf" flashVars="&dataURL=./test/aspXML.asp" quality="high" width="400" height="200" name="MyFirstChart" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> Any help is greatly appreciated, thanks!
  3. 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='
  4. I got it, I was putting the raw asp, but if I use the formatted html, it works fine.
  5. 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!
  6. got it, thanks so much. I've got it working nicely!
  7. Sorry for the newbie question. I'm trying to use fusion widgets or charts in my Dotnetnuke site and am looking for ways to implement this. I understand that the development of the chart/widget's XML needs to be developed outside of the presentation layer of my site. But once I'm done, how do I get the finished product in my site? I know the finished product is a flash object, so do people use a flash dnn module to present the chart? Or a dnn XML module to do it? etc. Any help is greatly appreciated, thanks!