﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>FusionCharts Forum / FusionWidgets v3 (previously FusionGadgets) / Using FusionWidgets  / refresh option on angular gauge / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>FusionCharts Forum</description><link>http://www.fusioncharts.com/forum/</link><webMaster>support@fusioncharts.com</webMaster><lastBuildDate>Sat, 06 Sep 2008 23:13:00 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: refresh option on angular gauge</title><link>http://www.fusioncharts.com/forum/Topic1757-17-1.aspx</link><description>Yes, I would love to see the jsp example in the documentation "fixed" so that it actually works and reflects the exact syntax represented here that DOES work.</description><pubDate>Mon, 05 May 2008 14:32:57 GMT</pubDate><dc:creator>md10024</dc:creator></item><item><title>RE: refresh option on angular gauge</title><link>http://www.fusioncharts.com/forum/Topic1757-17-1.aspx</link><description>Hello.&lt;br&gt;Resolved it! It was an empty line at the end in my code that i didn't noticeit at first.&lt;br&gt;Thanks for suggestions.&lt;br&gt;</description><pubDate>Thu, 02 Aug 2007 05:29:38 GMT</pubDate><dc:creator>fusionchartsuser</dc:creator></item><item><title>RE: refresh option on angular gauge</title><link>http://www.fusioncharts.com/forum/Topic1757-17-1.aspx</link><description>Hello.&lt;br&gt;I've mode it work with this content of .jsp page(code):&lt;br&gt;&lt;br&gt;&amp;value=&lt;%=(int)(Math.random()*100) %&gt;&lt;br&gt;&lt;br&gt;Now, I have to do this update based on a value from db; tried with this code:&lt;br&gt;&lt;br&gt;&lt;jsp:useBean id="dbConn" class="fusioncharts.util.DBConnection" scope="application"&gt;&lt;/jsp:useBean&gt;&lt;br&gt;&lt;%@ page import="fusioncharts.util.Constants"%&gt;&lt;br&gt;&lt;%@ page import="java.sql.Statement"%&gt;&lt;br&gt;&lt;%@ page import="java.sql.ResultSet"%&gt;&lt;br&gt;&lt;%@page import="java.sql.Connection"%&gt;&lt;br&gt;&lt;%  dbConn.setOracleDBPath("192.168.2.110:1521:orcl");&lt;br&gt;	dbConn.setDbName("Oracle");&lt;br&gt;	Connection conn = dbConn.getConnection();&lt;br&gt;	Statement st1 = null;&lt;br&gt;	ResultSet rs1 = null;&lt;br&gt;	String strQuery = "";&lt;br&gt;	int value = 0;&lt;br&gt;	String animateChart = "";&lt;br&gt;	if (null == animateChart || animateChart.equals("")) {&lt;br&gt;		animateChart = "1";&lt;br&gt;	}&lt;br&gt;String dbName = dbConn.getDbName();	&lt;br&gt;if (dbName.equals(Constants.ORACLEDB)) {&lt;br&gt;		strQuery = "select dt,val from  view";&lt;br&gt;	}&lt;br&gt;	try {&lt;br&gt;		st1 = conn.createStatement();&lt;br&gt;	} catch (java.sql.SQLException e) {&lt;br&gt;		System.out.println(e.getMessage());&lt;br&gt;	}&lt;br&gt;	rs1 = st1.executeQuery(strQuery);&lt;br&gt;	while (rs1.next()) {&lt;br&gt;		value = rs1.getInt("val");&lt;br&gt;	}&lt;br&gt;	try {&lt;br&gt;		if (null != rs1) {&lt;br&gt;			rs1.close();&lt;br&gt;			rs1 = null;&lt;br&gt;		}&lt;br&gt;	} catch (java.sql.SQLException e) {&lt;br&gt;		System.out.println("Could not close the resultset");&lt;br&gt;	}&lt;br&gt;	try {&lt;br&gt;		if (null != st1) {&lt;br&gt;			st1.close();&lt;br&gt;			st1 = null;&lt;br&gt;		}&lt;br&gt;	} catch (java.sql.SQLException e) {&lt;br&gt;		System.out.println("Could not close the statement");&lt;br&gt;	}&lt;br&gt;	try {&lt;br&gt;		if (null != conn) {&lt;br&gt;			conn.close();&lt;br&gt;			conn = null;&lt;br&gt;		}&lt;br&gt;	} catch (java.sql.SQLException e) {&lt;br&gt;		System.out.println("Could not close the connection");&lt;br&gt;	}&lt;br&gt;%&gt;&amp;value=&lt;%=(int) value%&gt;&lt;br&gt;&lt;br&gt;Does not refresh in this case.Is there another way to do this? Should I use JavaScript code?&lt;br&gt;&lt;br&gt;Thanks!&lt;br&gt;&lt;br&gt;</description><pubDate>Thu, 02 Aug 2007 03:42:12 GMT</pubDate><dc:creator>fusionchartsuser</dc:creator></item><item><title>RE: refresh option on angular gauge</title><link>http://www.fusioncharts.com/forum/Topic1757-17-1.aspx</link><description>Can you please paste the code of JSP inline?&lt;/P&gt;&lt;P&gt;Or, preferably just the output of the JSP. Also, another note when using JSP:&lt;/P&gt;&lt;P&gt;In order to get the output without addition of any carriage-returns or tab spaces, there should not be spaces or empty lines between scriptlet tags or at the end of the page.</description><pubDate>Wed, 01 Aug 2007 16:11:59 GMT</pubDate><dc:creator>Pallav</dc:creator></item><item><title>RE: refresh option on angular gauge</title><link>http://www.fusioncharts.com/forum/Topic1757-17-1.aspx</link><description>Hello.&lt;br&gt;This is my jsp page(Get_updated_cpuload_latest.jsp):&lt;br&gt;&lt;br&gt;&lt;%@page import="java.util.Random"%&gt;&lt;br&gt;&lt;%&lt;br&gt;	String latest_value = "";&lt;br&gt;	Random rand = new Random();&lt;br&gt;	latest_value = //String.valueOf(rand.nextInt(100));&lt;br&gt;	"&amp;value=" + String.valueOf(rand.nextInt(100));&lt;br&gt;%&gt;&lt;br&gt;&lt;%=latest_value%&gt;&lt;br&gt; &lt;br&gt;Is it good?&lt;br&gt;&lt;br&gt;Thanks!</description><pubDate>Tue, 31 Jul 2007 02:51:06 GMT</pubDate><dc:creator>fusionchartsuser</dc:creator></item><item><title>RE: refresh option on angular gauge</title><link>http://www.fusioncharts.com/forum/Topic1757-17-1.aspx</link><description>Can you make sure that JSP file:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;does NOT return any HTML tags&lt;/LI&gt;&lt;LI&gt;does NOT add any carriage returns to output&lt;/LI&gt;&lt;/OL&gt;</description><pubDate>Mon, 30 Jul 2007 13:37:06 GMT</pubDate><dc:creator>Pallav</dc:creator></item><item><title>RE: refresh option on angular gauge</title><link>http://www.fusioncharts.com/forum/Topic1757-17-1.aspx</link><description>Hello.&lt;br&gt;The Get_updated_cpuload_latestval.jsp returns "&amp;value=..." result.&lt;br&gt;This is my xml file gor the chart:&lt;br&gt;&lt;br&gt;chart upperLimit="100" lowerLimit="0" gangeScaleAngle="180" gangeStartAngle="0" numberSuffix="%25" decimalPrecision="0" baseFontSize="10" dataStreamURL="Get_updated_cpuload_latestval.jsp?lowerLimit=0%26upperLimit=100" refreshInterval="8"&lt;br&gt;colorRange&lt;br&gt;  color minValue="0" maxValue="20" code="FF0000" borderColor="FF0000" / &lt;br&gt;  color minValue="20" maxValue="40" code="33CC33" borderColor="33CC33" /&lt;br&gt;  color minValue="40" maxValue="60" code="0000FF" borderColor="0000FF" /&lt;br&gt;  color minValue="60" maxValue="80" code="FF6600" borderColor="FF6600" /&lt;br&gt;  color minValue="80" maxValue="100" code="9966CC" borderColor="9966CC" /&lt;br&gt;  /colorRange&lt;br&gt;dials&lt;br&gt;  dial value="6.5" bgColor="666666" radius="90" baseWidth="8" topWidth="2" /&lt;br&gt;  /dials&lt;br&gt;trendpoints&lt;br&gt;  point displayValue="13:45:36" value="6.5" /&lt;br&gt;  /trendpoints&lt;br&gt;  /chart&lt;br&gt;&lt;br&gt;Is based on the doc's examples.But does not refresh.&lt;br&gt;Thanks!</description><pubDate>Mon, 30 Jul 2007 09:31:23 GMT</pubDate><dc:creator>fusionchartsuser</dc:creator></item><item><title>refresh option on angular gauge</title><link>http://www.fusioncharts.com/forum/Topic1757-17-1.aspx</link><description>Hello.&lt;br&gt;I just start to use Fusion ch. and i've been working around with trial version from the site. I want to use the refresh option on&lt;br&gt;angular gauge. Question: the dataStreamURL must return the data in "&amp;value=..." form ? I have a JSP page as dataStreamURL that returns the result in this form but does not refresh. After showing first value the dial returns to 0 and remains there.&lt;br&gt;&lt;br&gt;[code]&lt;Chart upperLimit='100' lowerLimit='0'  numberSuffix='%25' decimalPrecision='0' baseFontSize='10' dataStreamURL= encodeDataURL("Jsp_page.jsp","true", response) refreshInterval='5'&gt;[/code]&lt;br&gt;&lt;br&gt;Thanks!</description><pubDate>Mon, 30 Jul 2007 04:40:40 GMT</pubDate><dc:creator>fusionchartsuser</dc:creator></item></channel></rss>