PDA

View Full Version : Andrei Image Feed...


thetraveler
09-18-2005, 11:14 AM
Hello,

I am using an iframe to display this applet in my mambo site because it won't display properly without it. (could be mambo related). However though it displays, I still get a javascript error in IE 6 left hand corner. When I click -- it displays this...

Line: 15
Char: 9
Error: "null" is null or not an object
Code: 0
Url: index.html

Does anyone know how I can fix this?

Thanks in advance.

bobocel
10-07-2005, 04:58 PM
Hi All,

Please note the Java function used into the html page:

<script type="text/javascript">
function flashSize(w, h) {
if (document.getElementById) {
var obj = document.getElementById('flash-obj');
var emb = document.getElementById('flash-embed');
obj.setAttribute('width', w);
obj.setAttribute('height', h);
emb.setAttribute('width', w);
emb.setAttribute('height', h);
}
}
</script>


I have made two words above bold so that you can see where the problem might be on your side.

Please note how the swf file is embedded into the HTML file:



<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="280" height="400" id="flash-obj" align="middle">
<param name="allowScriptAccess" value="sameDomain" />



<param name="movie" value="index.swf?XMLSettings=" />
<param name="quality" value="best" />
<param name="scale" value="noscale" />
<param name="bgcolor" value="#ffffff" />





<embed src="index.swf?XMLSettings=" quality="high" id="flash-embed" scale="noscale" bgcolor="#ffffff" width="280" height="400" name="index" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>


If you use the code exactly as it is, you'll keep it working. If you edit this, sure, the applet won't work anymore.

The resize function is used to resize the swf.



Thank you,
Andrei