The folllowing appears twice in your actual page:

<script type="text/javascript" src="swfobject.js"></script>

That should only appear once, and in the head of your document.

Also, ideally, all the other script code which calls swfobject.embedSWF 
should be in the head too.

--Kyle



--------------------------------------------------
From: "GWLogic" <[email protected]>
Sent: Friday, March 20, 2009 3:10 AM
To: "SWFObject" <[email protected]>
Subject: Re: Getting 'J.parentNode' is null or not an object error with 
SWFObject 2.1

>
> Hi Kyle,
>
> Many thanks for that info. could you perhaps elaborate slightly on
> that?.
>
> As you can see from that index page, here's what I have in there re:
> swfobject code:-
>
> <!-- start content -->
> </p>
> <div id="content">
> <div class="post">
> <h1 align="center" class="title"><script type="text/javascript"
> src="swfobject.js"></script>
> <script type="text/javascript">
> var flashvars = {};
> var params = {};
> params.menu = "false";
> params.quality = "best";
> var attributes = {};
> attributes.id = "homeflash2";
> attributes.align = "middle";
> swfobject.embedSWF("homeflash2.swf", "myAlternativeContent", "602",
> "339", "7", false, flashvars, params, attributes);
> </script>
> </head>
> <body>
> <div id="myAlternativeContent">
> <a href="http://www.adobe.com/go/getflashplayer";>
> <img src="http://www.adobe.com/images/shared/download_buttons/
> get_flash_player.gif" alt="Get Adobe Flash player" />
> </a>
> </div>&nbsp;</h1> <script type="text/javascript"
> src="swfobject.js"></script>
> <script type="text/javascript">
> var flashvars = {};
> var params = {};
> params.menu = "false";
> params.quality = "best";
> var attributes = {};
> attributes.id = "fees";
> attributes.align = "middle";
> swfobject.embedSWF("feesticker.swf", "myAlternativeContent", "600",
> "25", "7.0.0", false, flashvars, params, attributes);
> </script>
> </head>
> <body>
> <div id="myAlternativeContent">
> <div align="center"><a href="http://www.adobe.com/go/
> getflashplayer">
>   <img src="http://www.adobe.com/images/shared/download_buttons/
> get_flash_player.gif" alt="Get Adobe Flash player" />
>     </a>
>       </div>
>
>
> What do I need to remove and place within the HEAD of my document?.
>
> Many thanks!!
>
> Gary.
>
> On Mar 18, 9:00 pm, "Getify Solutions, Inc." <[email protected]> wrote:
>> Yeah, you should not have two copies of swfobject.js on the same page. 
>> You
>> only need one, and it should be in the HEAD of your document.
>>
>> We're working on 2.2 right now, in fact. Not sure of a release date, but
>> it's actively on our plate to get out.
>>
>> --Kyle
>>
>> --------------------------------------------------
>> From: "GWLogic" <[email protected]>
>> Sent: Wednesday, March 18, 2009 3:43 PM
>> To: "SWFObject" <[email protected]>
>> Subject: Getting 'J.parentNode' is null or not an object error with
>> SWFObject 2.1
>>
>>
>>
>>
>>
>> > Hi there,
>>
>> > I have been using SWFObject for a good few months now with great
>> > success and would like to say a big thanks to all involved in the
>> > project.
>>
>> > Recently I noticed that on a website I run I am getting the above
>> > error, the exact details of which are below :-
>>
>> > Line : 6
>> > Char : 1913
>> > Error : 'J.parentNode' is null or not an object
>> > Code : 0
>> > URL :http://www.firstdriving.co.uk/index.html
>>
>> > This manifests itself in IE 7.0. I'm not sure if it does the same in
>> > IE 6.0 as I have yet to check.
>>
>> > The error code does not manifest in Firefox ( although for some
>> > reason, the Flash animations are reversed in Firefox on my Index page
>> > there. The news ticker is at the bottom underneath the main Flash
>> > whereas in IE 7.0 this is reversed ).
>>
>> > After reading a few posts here I'm thinking the issue perhaps lies
>> > with the fact I have two instances of SWFObject being embedded on the
>> > same page?. Some sort of conflict with the coding within my page?.
>>
>> > If anyone could advise me on this issue and how to rectify it I would
>> > be grateful.
>>
>> > Also, how is the progress with SWFObject 2.2?. Are you guys any nearer
>> > to a full release?.
>>
>> > Many thanks in advance and thank you once again for providing
>> > SWFObject!!!.
>>
>> > Regards,
>>
>> > Gary.- Hide quoted text -
>>
>> - Show quoted text -
> >
> 

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SWFObject" 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/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to