Object not found within qooxdoo code [message #137620] |
Wed, 24 June 2009 15:36 |
Eclipse User |
|
|
|
Originally posted by: s0181013.mail.inf.tu-dresden.de
Hello everyone,
I observe a weird behavior when using the
'document.getElementById(this._id); like it is done in the GMAPs
Example. It returns null, if I don't use the two alerts (see below)
before and after this line of code. This does not make any sense to me.
How can I eliminate this error?
Furthermore this code functions within the internal browser but not
within the external (Mozilla 3.0.11).
Thanks
// get the HTML's body element
var body = document.getElementsByTagName('body')[0];
if(body) {
alert("FlashForm ContainerObject 1:"
+document.getElementById(this._id));
var ContainerObject = document.getElementById(this._id);
alert("FlashForm ContainerObject 2:"
+document.getElementById(this._id));
ContainerObject.innerHTML =
'<object width=\"425\" height=\"373\">'
+ '<param name=\"movie\"'
+ 'value=\"http://www.youtube.com/v/CwR6bFmAy-M"'
+ '"&rel=1&border=1\"></param>'
+ '<param name=\"wmode\" value=\"transparent\"></param>'
+ '<embed src=\"http://www.youtube.com/v/CwR6bFmAy-M"'
+ '"&rel=1&border=1\" type=\"application/x-shockwave-flash\"'
+ 'wmode=\"transparent\" width=\"425\" height=\"373\"></embed>
+ '</object>'
}
|
|
|
|
Powered by
FUDForum. Page generated in 0.03811 seconds