I do this with some timed javascript functions. I don't use the webserver
built into intermapper, but instead on another server and just pull the
chart images. There may be a much better way to do it and if so I'd like
to see what it is. :)
An empty img tag like so:
<img id="inetusage" style="vertical-align: top;"/>
Then when the page is loaded, execute a function with a timer like so
(refreshTime is number of seconds between image refreshes):
setTimeout("loadInetUsage()", refreshTime * 1000);
Inside that function you set the source for the img tag:
var usageImg = document.getElementById("inetusage");
usageImg.src = 'http://intermapper-net.utc.edu/g4d181a12/chart/Internet
Traffic/*chart.png?timescale=' + scale + '&width=' + width + '&' + new
Date().getMilliseconds();
And then at the end of the function, reschedule the timed function call.
The date at the end of the img source address insures that it grabs a new
image every time instead of just reloading a cached one.
-Christopher
Christopher Howard
Network Engineer
University of Tennessee at Chattanooga
On 8/18/11 11:44 AM, "Stempien, Dave" <[email protected]>
wrote:
>Dartware et al,
>
>Does anyone know if it's possible to build a web page comprised of
>multiple InterMapper charts? My team has a monthly statistical review
>meeting, and we've found it very effective to stack a list of charts for
>the same data vs. clicking each chart separately. It looks like the web
>charts are generated in javascript upon request. Is there documentation
>available on calling that script directly?
>
>I'm considering this as I'd like to retire another tool (Cacti) by
>consolidating that functionality into InterMapper. InterMapper charts
>are much easier for our users to understand and manage. However, I'm
>concerned about scaling and the number of strip charts InterMapper will
>handle before it get resource starved.
>
>Finally, what's the best way to reconcile old strip chart data? Just
>delete the oldest data files in each chart's directory? Or will that
>munge the ability for the chart to be reconstructed?
>
>Thanks for any tips you may be able to share.
>--
>Dave Stempien
>University of Rochester Medical Center
>Information Systems Division
>(585) 784-2427
>
>____________________________________________________________________
>List archives:
>http://www.mail-archive.com/intermapper-talk%40list.dartware.com/
>To unsubscribe: send email to: [email protected]
>
____________________________________________________________________
List archives:
http://www.mail-archive.com/intermapper-talk%40list.dartware.com/
To unsubscribe: send email to: [email protected]