Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8736157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:14:28+00:00 2026-06-13T10:14:28+00:00

I am using a Flash chart to display data. It has an attribute ‘refreshUrl’

  • 0

I am using a Flash chart to display data. It has an attribute ‘refreshUrl’ which is used to refresh the data every 60 seconds.
The problem is that the url is always the same and it never receives the latest data.

In javascript I know we can append “new Date().getTime()” to a url to prevent caching but we set the refreshUrl in such a way that it is not possible to append the time to the url.

This is how I am declaring the pie chart (this is done only once):

cfm_PieChart = new SWFObject("<%=contextPath%>/cuecharts/piechart.swf?t=" + new Date().getTime(), "alarmCountBySeverityPiechart", "100%", "100%", "9", "#869ca7");

cfm_PieChart.addVariable("chartdefxml", "<chart row='row' labelFormat='pctOutsideParenthesis' enableDataGridView='true' togglePosition='bottom'  useStateColorPalette='true' dataChangeEffect='interpolate' dataChangeEffectDuration='1500' refreshUrl='<%=contextPath%>/pie.jsp' refreshFrequency='60000' ><series><pieseries field='Count' nameField='Severity' stateValueField='StateKey' labelPosition='callout' /></series><legend placement='left' legendItemsDirection='vertical'/></chart>");

Notice the ‘refreshUrl’ attribute in the cfm_PieChart.addVariable() call. I tried the following:

refreshUrl:='>%=contextPath%>/pie.jsp?t=javascript:new Date().getTime()'

and

refreshUrl:='>%=contextPath%>/pie.jsp?t=new Date().getTime()' 

Any ideas?
Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T10:14:29+00:00Added an answer on June 13, 2026 at 10:14 am

    Fixed it by adding the following in my jsp:

    response.setHeader("Cache-Control","no-cache");
    response.setHeader("Pragma","no-cache");
    response.setDateHeader ("Expires", 0);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Open Flash Chart to display some graphical data in my web page.
I'm just doing a simple graph using Open Flash Chart http://teethgrinder.co.uk/open-flash-chart/ which shows the
I am using flash to read contents from a UTF8 page, which has unicode
I'm using Open Flash Chart to create statistics and one of the things i
I have a column chart that I made using Adobe Flash Builder. I'd like
I am using open flash chart 2 (the plugin) in my rails application. Everything
I'm using Open Flash Chart 2 to present graphs and charts in my website.
I'm using Flash Builder to build an AIR android app. To prevent the app
I'm using Flash Builder 4.6 to make an iOS app.. It's going fairly well,
I'm using Flash builder 4.6 for mobile applications. I need to drag an image

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.