Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

JS error in IE8 (HTML Parsing Error)


Hi,

I'm working on a website which is almost finished. I'm using different JS files such as:

- Scriptaculious
- Prototype
- Modalbox
- Lightbox
- JW Player

While opening the website in FireFox, it works fine. When I'm trying to open it in IE it sometimes shows the following error.

bc.. Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64;
Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.
2; .NET CLR 3.5.30729; .NET CLR 3.0.30618)
Timestamp: Tue, 10 Mar 2009 10:10:39 UTC

Message: HTML Parsing Error: Unable to modify the parent container
element before the child element is closed (KB927917)
Line: 0
Char: 0
Code: 0
URI: http://demo.websociaal.nl


Website URL: http://demo.websociaal.nl/
(reload the website a few times)

I think this error is because of the JW player. When i'm commenting it out, the website also loads correctly in IE. Is anyone familiar with this error and knows how to solve this issue?

21 Community Answers

JW Player

User  
0 rated :

omg, thanks man! It works! Didn't know there was a version 2.1!

JW Player

User  
0 rated :


Actually, there's a v2.2, but it isn't on Google's CDN yet...

JW Player

User  
0 rated :

Hello,
I get the same error in IE8. In IE 7 reports "operation aborted" and turned off the website. Upgrade to 2.1 was made. Please help
http://www.karate-hvidra-osijek.com/index.php/video.html

JW Player

User  
0 rated :

Okay i get the same error on ie 8 i looked and scoured the internet for answers the only ones that are any help is this one and the other one by lefty upgrading to v2.2.. but i cant understand how to upgrade... Lefty can you please help me or provide a more step by step approach to resolving this issue... there is so many people out there that cant use this feature because of this error and no good tutorial on how to fix it... please someone help us out here.. lol




JW Player

User  
0 rated :

I'm getting this as well. Works fine in Firefox. Only happens when I log in to my site and nothing below the player loads with the above error. From what I've read it could be a problem with javascript somewhere on my page, though I am using joomla so thought that wouldn't be a problem!?

when I upgraded my swfobject the player no longer loaded, just had the "The player will show in this paragraph" message...

Also, probably unrelated but, when using the player in FF, the first time I click it it sort of refreshes but nothing happens. Then when I click on it again it works. Doesn't matter what controls I click it just 'refreshes' goes blank momentarily and then 'comes back'. This doesn't happen in IE.

JW Player

User  
0 rated :

Was having this same problem on a wordpress blog and it ended up being one of the installed plug-ins.

JW Player

User  
0 rated :

Try the following steps.



In internet explorer window click on Tools.
On the Tools menu, click Internet Options.
On the Security tab, select the zone the site loads under.
Click on Custom level bottom.
Scroll down to the Scripting section, and set the Active Scripting to Disabled - prevents scripts or to Prompt - prompts user to run or not to run scripts.
Click OK.

JW Player

User  
0 rated :


Use the Wizard (button at the top of this page) to generate valid code to embed the JW FLV Player.

JW Player

User  
0 rated :

(HTML Parsing Error: Unable to modify the parent container element before the child element is closed)
in joomla this error dissapears, when I put the swf-code in:
window.addEvent('domready', function() { <swf-code> }).
At this point the swf-code executes after all dom-elements are closed.

JW Player

User  
0 rated :

When I tried the upgrade to swfobject v2.1 it just made player disappear.
I use wordpress and it was the 'lightbox plugin' that caused this problem.

JW Player

User  
0 rated :

Can anyone help with this issue? I'm using Joomla with a JW Player plugin.


http://demo.citycam.tv/index.php?option=com_flexicontent&view=items&cid=61:restaurants&id=156:restaurant-a&Itemid=92

JW Player

User  
0 rated :

I just updated to swfobject 2.2 - this helped me with the IE8 problems (did not test IE6/7 yet).

The javascriptcode used to call swfobject 2.2 is not compatible with the older versions, so you will have to change that (see manual on the official swfobject website).

Good luck

Marco

JW Player

User  
0 rated :

<OBJECT id=mpl classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 width=600 height=320><PARAM NAME="_cx" VALUE="15875"><PARAM NAME="_cy" VALUE="8466"><PARAM NAME="FlashVars" VALUE=""><PARAM NAME="Movie" VALUE="http://www.cricketon.net/player.swf"><PARAM NAME="Src" VALUE="http://www.cricketon.net/player.swf"><PARAM NAME="WMode" VALUE="Window"><PARAM NAME="Play" VALUE="0"><PARAM NAME="Loop" VALUE="-1"><PARAM NAME="Quality" VALUE="High"><PARAM NAME="SAlign" VALUE="LT"><PARAM NAME="Menu" VALUE="-1"><PARAM NAME="Base" VALUE=""><PARAM NAME="AllowScriptAccess" VALUE="always"><PARAM NAME="Scale" VALUE="NoScale"><PARAM NAME="DeviceFont" VALUE="0"><PARAM NAME="EmbedMovie" VALUE="0"><PARAM NAME="BGColor" VALUE=""><PARAM NAME="SWRemote" VALUE=""><PARAM NAME="MovieData" VALUE=""><PARAM NAME="SeamlessTabbing" VALUE="1"><PARAM NAME="Profile" VALUE="0"><PARAM NAME="ProfileAddress" VALUE=""><PARAM NAME="ProfilePort" VALUE="0"><PARAM NAME="AllowNetworking" VALUE="all"><PARAM NAME="AllowFullScreen" VALUE="true"></OBJECT>



i have this html code for the site but when i put in the site player doesnt run. can any body help me out with this. can u correct this code?

JW Player

User  
0 rated :

Upgradetoswfobjectv2.1loadedfromGoogle'sCDN.

PutthiscodeintheheadelementofyourHTMLdocument:bc.. <scripttype="text/javascript"src="http://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject.js"></script>

<scripttype="text/javascript">
varflashvars=
{
'file':'/includes/playlist.xml',
'width':'300',
'height':'136',
'displayheight':'0',
'repeat':'true',
'shuffle':'false',
'showdigits':'false',
'lightcolor':'0xcc0000',
'autoscroll':'false',
'showeq':'true',
'autostart':'true'
};

varparams=
{
'allowscriptaccess':'always',
'allowfullscreen':'true',
'bgcolor':'#F6F3F3'
};

varattributes=
{
'id':'playerId',
'name':'playerId'
};

swfobject.embedSWF('/includes/player.swf','mp3player','300','136','9.0.124',false,flashvars,params,attributes);
</script>



JW Player

User  
0 rated :

you may use the jquery to avoid this error from IE7 and IE8

$(document).ready(function()
{
// WRITE your append code here as

$('body').append('<div id="yourdiv_id"></div>');

});

JW Player

User  
0 rated :

you can append this div and content to this div as

var html123="this is text";
$(document).ready(function()
{
// WRITE your append code here as

$('body').append('<div id="yourdiv_id"></div>');
$('#yourdiv_id').append(html123);

});

JW Player

User  
0 rated :

I encountered this on my own site, but using JQUERY and Document Ready functions didn't help.

The root cause was that I had DIV tags that included IFRAMES within them. Even setting the height and width of the iframe and the parent containers to match, still created the 'intermittent' errors on my page.

Interestingly enough, Forcing a complete reload ( ctrl+F5 ) would always reload the page with no Parent-Child errors, in IE8.

Turning off the Scripting did work, but I can't expect my customers to 1. be willing to do that, and 2. be patient enough to click through the dialog boxes.

here is what i did :
Rather then including an IFRAME in the DIV tag. I updated the innerHTML to load the IFRAME on request when needed by the user.

Laxmikant is correct that his append method will work, but the over all cause was just the IFRAME in the Div tag...so rather then appending the entire DIV tag, I'm just creating IFRAMES dynamically based on User Events.

Hope that might help.

JW Player

User  
0 rated :

Hi,

I have a similar problem with my website. When I click on the cancel button, it gives a error message. Error on webpage at the status bar. The website works at the firefox and chrome browsers. It gives the error only at the IE8 browser.
Can somebody please help me...

Thanks

Ethan Feldman

JW Player Support Agent  
0 rated :

Can you provide a link?

JW Player

User  
0 rated :

here's my error::

script error
> an error has occurred in the script on this page.
> line: 83
> char:2
> error: unable to get value of the property "replace":object is null or undefined
> code: 0
> URL: vfs://HTMLResouces/js/Message.js
> do you want to continue running scripts on this page?
> yes/ no

dont know what causes it but i always encounter this when playing a online game..

pls help thx!!

Ethan Feldman

JW Player Support Agent  
0 rated :

Link?

This question has received the maximum number of answers.