This seems to be working:
/* Display youtube video in iframe to hack around bug. */
function makeVideo() {
var video = document.getElementById("video_container");
if (video) {
var vid = '<!DOCTYPE html><html><body style="margin:0;padding:
0;"><object type="application/x-shockwave-flash" data="http://
www.youtube.com/watch?v=oHg5SJYRHA0"><param name="movie" value="http://
www.youtube.com/watch?v=oHg5SJYRHA0" /></object></body></html>';
var iframe;
if (document.createElement && (iframe =
document.createElement('iframe'))) {
iframe.name = "video";
iframe.scrolling = "no";
video.appendChild(iframe);
}
}
if (iframe) {
var iframeDoc;
if (iframe.contentDocument) {
iframeDoc = iframe.contentDocument;
} else if (iframe.contentWindow) {
iframeDoc = iframe.contentWindow.document;
} else if (window.frames[iframe.name]) {
iframeDoc = window.frames[iframe.name].document;
}
iframeDoc.open();
iframeDoc.write(vid);
iframeDoc.close();
}
}
On Jun 22, 11:57 am, Viz Kid <[email protected]> wrote:
> Hi.
>
> It seems that there is some collision between the SWFObject we load by our
> modules and the YouTube flash movie.
> In order to possibly avoid the problem, you can try to embed one of the two
> parts in its own iFrame to avoid the collisions.
>
> Hope it would help
> Viz Kid
>
> On Tue, Jun 22, 2010 at 5:22 AM, Jonathan <[email protected]> wrote:
> > No responses at all?
> > I have since found that the bug listed below completly kills IE6
> > (prevents video from loading, javascript execution, etc).
>
> > Any assistance greatly appreciated.
>
> > Thanks,
>
> > -Jonathan
>
> > On Jun 10, 12:07 am, Jonathan Cross wrote:
> > > Hello,
> > > I am struggling with a page which uses both a flash video (youtube) and
> > the
> > > geomap api.
>
> > > Greatly simplified demo where even the map is not drawn:
> >http://jonathancross.com/projects/google-geomap-bug-demo.html
>
> > > Seems the Geomap visualization code is trying to set a property which
> > > Firefox 3.6.3 Mac doesn't like:
> > > Error: setting a property that has only a getter
> > > Source File:
> >http://www.google.com/uds/api/visualization/1.0/14fba8f5d9397ffc88037...
> > > Line: 133
>
> > > I am guessing here that the JS code above thinks my video is a map and is
> > > trying to set properties on it.
>
> > > If my theory is correct, how can I prevent it from seeing the video?
>
> > > Need a solution rather urgently, any suggestions welcome (you are welcome
> > to
> > > test with my template above).
>
> > > Thanks!
>
> > > -Jonathan
>
> > --
> > 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]<google-visualization-api%[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.