rejetto forum

Is there a way to reload only server graph with javascript?

Guest · 2 · 3262

0 Members and 1 Guest are viewing this topic.

Guest

  • Guest
I think it would be nice not to open status frame but to see updating server status all the time.
I downloaded that kind of template, but the graph updates only when i hit refresh. So i was thinking if there is a way with javascript to update only the graph image every some seconds?

maybe something like in the tag where you show the image you set it's id:
id="Graph"

and you write some code like:
document.getElementById('Graph').src =[the filename of the graph image]

i'm not good at javascript will someone say if it will work?


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
it would be a nice idea if only the graph need to update.
but also other information in that page need it.