cwiltgen
31 Jan 2007, 5:09 PM
Hello,
I have an IE-only problem with DomHelper. The following code works great in Firefox and Opera, and I believe other browsers.
YAHOO.ext.DomHelper.overwrite(oElement, {
tag: 'div', style: "width: 480px; height: 216px; position: relative; background: url('/objecty-debug/objecty/movieMiddle.png') 0 100% repeat-x", children: [
{tag: 'img', src: '300-poster.jpg', style: 'position: absolute; top:0; left:0'},
{tag: 'img', src: '/objecty-debug/objecty/movieLeft.png', style: 'position: absolute; bottom:0; left:0'},
{tag: 'img', src: '/objecty-debug/objecty/movieRight.png', style: 'position: absolute; bottom:0; right:0'},
{tag: 'div', style: 'width: 128px; height: 128px; position: absolute; left: 50%; top: 50%', children: [
{tag: 'img', src: '/objecty-debug/objecty/playIcon.png', style: 'width: 128px; height: 128px; position: absolute; left: -50%; top: -50%; opacity: 0.5'}
]
}]
});
oElement is an <object> element.
If you search for IE and "unknown runtime error", a lot of people have this problem. I'm almost hoping that I'm doing something wrong, because nobody seems to know how to solve this problem, or even what causes it.
Thank you,
-- Charles
I have an IE-only problem with DomHelper. The following code works great in Firefox and Opera, and I believe other browsers.
YAHOO.ext.DomHelper.overwrite(oElement, {
tag: 'div', style: "width: 480px; height: 216px; position: relative; background: url('/objecty-debug/objecty/movieMiddle.png') 0 100% repeat-x", children: [
{tag: 'img', src: '300-poster.jpg', style: 'position: absolute; top:0; left:0'},
{tag: 'img', src: '/objecty-debug/objecty/movieLeft.png', style: 'position: absolute; bottom:0; left:0'},
{tag: 'img', src: '/objecty-debug/objecty/movieRight.png', style: 'position: absolute; bottom:0; right:0'},
{tag: 'div', style: 'width: 128px; height: 128px; position: absolute; left: 50%; top: 50%', children: [
{tag: 'img', src: '/objecty-debug/objecty/playIcon.png', style: 'width: 128px; height: 128px; position: absolute; left: -50%; top: -50%; opacity: 0.5'}
]
}]
});
oElement is an <object> element.
If you search for IE and "unknown runtime error", a lot of people have this problem. I'm almost hoping that I'm doing something wrong, because nobody seems to know how to solve this problem, or even what causes it.
Thank you,
-- Charles