Hi,
    Just a quick query.  I'm using Prototype Window javascript to open
up div windows to show various types of Google Visualisations.  It all
works perfectly well when I test with the basic examples for
LineCharts, Google Maps, Intensity Maps etc.   However, if I try the
Motion Chart example it works erratically.

When I open a new window with a motion chart it will work about 20% of
the time.  The rest of the time the visualisation is never drawn.
Interestingly, if I link to the whole motion chart visualisation page
(containing the example) on this site, the chart on that page only
renders at a similar rate.

So given that the other charts all draw without issue - is there
something different with the motion charts that could be causing such
a problem?  I'm assuming it might have something to do with Flash.
But would anyone have any ideas on what might cause such erratic
behaviour?

Many thanks in advance,
David

PS: Attaching the code to call the div below.  test.html is just a
local copy of the whole motion chart example that works 100% of the
time if you just call it directly.

<html>
<head>
<title>Graph Resource</title>

<script type="text/javascript" src="javascript/prototype.js"> </
script>
<script type="text/javascript" src="javascript/effects.js"> </script>
<script type="text/javascript" src="javascript/window.js"> </script>
<script type="text/javascript" src="javascript/window_ext.js"> </
script>
<script type="text/javascript" src="javascript/debug.js"> </script>

<link href="css/themes/default.css" rel="stylesheet" type="text/css"/
>
<link href="css/themes/alphacube.css" rel="stylesheet" type="text/css"/
>


<script>
function showGraphWindow1()
        {
                var theurl = "test.html";
                win1.setURL(theurl);
                win1.showCenter(true);
                win1.setConstraint(true, {left:0, right:0, top: 80});
                win1.toFront();
        }
</script>
</head>

<body>

<script>
win1 = new Window('', {className: "alphacube", maximizable:false,
minimizable:false, recenterAuto:false, title: "", width:800, height:
620,  zIndex:100, hideEffect:Element.hide, draggable:true});
</script>

<br/><a href="javascript:showGraphWindow1()">Show Window 1</a>
</body>
</html>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to