It seems that the problem is that you're manipulating an innerHTML that
contains an iframe:
document.getElementById('data').innerHTML += "<table
class='table'>" + serverdata[1] + "</table>";
When running this line for the 2nd time, the innerHTML already contains the
iframe with the 1st server charts.
When you reassign the innerHTML it messes up the iframe and clears its body
node.
There is a simple work around.
Instead of modifying the same innerHTML over and over again, create a new
container using createElement and appendChild.
Something like:
var table=document.createElement('table');
// TODO: set properties of table here
table.innerHTML = serverdata[1];
document.getElementById('data').appendChild(table);
Hope this works,
EZChart
On Tue, Dec 20, 2011 at 9:45 AM, daduke <[email protected]> wrote:
> Hi EZChart,
>
> thanks for your reply. We had already given up hope and deleted the
> test file. I have now restored it. It has been changed to use
> ChartWrapper, but that doesn't solve the problem.
>
> Basically we have two options: draw the graph once and have it
> disappear as soon as the next one is being drawn (as seen in
> index2.pl), or force a redraw, causing massive flickering in Firefox
> (not Chrome though), as index.pl does.
>
> Any hint or help would be greatly appreciated.
>
> thanks,
> -Christian
>
>
> On Dec 19, 4:30 pm, EZChart <[email protected]> wrote:
> > The linkhttps://admin.phys.ethz.ch/lvm2FS/index2.plis broken.
> >
> >
> >
> >
> >
> >
> >
> > On Fri, Dec 16, 2011 at 8:33 AM, daduke <[email protected]> wrote:
> > > Hi again,
> >
> > > upon further inspection the IFRAMES for the disappearing graphs do
> > > still exist but only contain empty <html /> tags. The orgCharts
> > > persist since they're not implemented by IFRAMES but just plain
> > > <div>s. So the question is: why does the HTML content of one
> > > columnChart IFRAME get deleted once a new graph is being drawn?
> >
> > > puzzled,
> > > -Christian
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Google Visualization API" group.
> > > To post to this group, send email to
> > > [email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected].
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-visualization-api?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Visualization API" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-visualization-api?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.