[SWFObject] Javascript error :: using Joomla and swfObject
Jamie Larsen
jamie.larsen at stoneig.com
Fri Jul 28 08:46:57 PDT 2006
It is finding the DIV because the flash is working. I just get that annoying
javascript error in IE browser for all to see.
I tried changing the DIV id to something different and I still get the
error. It seems a little strange to me.
Any other suggestions?
Thanks
Jamie
_____
From: swfobject-bounces at lists.deconcept.com
[mailto:swfobject-bounces at lists.deconcept.com] On Behalf Of Geoff Stearns
Sent: Friday, July 28, 2006 11:20 AM
To: swfobject at lists.deconcept.com
Subject: Re: [SWFObject] Javascript error :: using Joomla and swfObject
sounds like the script can't find your 'flashmain' div for some reason...
if the code you pasted matches your document, then it should be fine...
maybe check and make sure there are no other elements with that id? or try
changing the id to something else just to test?
On Jul 28, 2006, at 11:11 AM, Jamie Larsen wrote:
I am getting the following JavaScript error in both Firefox and IE when
using the swfObject on my Joomla site:
Error: n has no properties
Source File:
<http://webdev.displaypack.com/joomla/templates/displaypack/scripts/swfobjec
t.js>
http://webdev.displaypack.com/joomla/templates/displaypack/scripts/swfobject
.js
Line: 86
The site that I am working on is at:
http://webdev.displaypack.com/joomla/index.php
I am using the .js SWFObject v1.4.2 file that I downloaded from the site and
the following code on the page:
<div id="flashmain"><img
src/templates/displaypack/images/top_placeholder.jpg" alt="" /></div>
<script type="text/javascript">
// <![CDATA[
var so = new SWFObject("<?php echo
$mosConfig_live_site;?>/templates/displaypack/flash/flash-main.swf",
"flashmain", "980", "354", "7", "#FFF");
so.addParam("wmode", "transparent");
so.addParam("menu", "false");
so.addParam("quality", "high");
so.write("flashmain");
//]]>
</script>
Can anyone help with this issue?
Thanks
Jamie
_______________________________________________
SWFObject mailing list
SWFObject at lists.deconcept.com
http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.deconcept.com/pipermail/swfobject-deconcept.com/attachments/20060728/94846863/attachment-0005.htm>
More information about the Swfobject
mailing list