We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now


IE javascript error

Medium Priority
Last Modified: 2013-11-19
I am using the following Ajax file upload plugin ( http://valums.com/ajax-upload/comment-page-1/#comment-1005 ) and I am getting the following error:

Message: HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)

The issue only occurs in IE.

Any help?
Watch Question

Shahzad Fateh AliHead Of Engineering - Dawaai.pk

I have tested this plugin and it works fine. Can you paste your html source here for further reference


Here is my local html file.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
	<meta http-equiv="Pragma" content="no-cache"> 
<link rel="stylesheet" type="text/css" href="/css/classic/screen.css" media="screen" />
<link rel="stylesheet" type="text/css" href="/css/classic/print.css" media="print" />
<link rel="stylesheet" type="text/css" href="/css/classic/stylesheet.css" id="stylesheet" />
<link rel="stylesheet" type="text/css" href="/css/classic/proof.css" id="proof" />
<link rel="stylesheet" type="text/css" href="/css/classic/grid.css" />
<link rel="stylesheet" type="text/css" href="/css/classic/dataentry.css" />
<link rel="stylesheet" type="text/css" href="/css/classic/window.css" />
<link rel="stylesheet" type="text/css" href="/css/classic/smallgrid.css" />
<link rel="stylesheet" type="text/css" href="/css/classic/calendar.css" />
<script type="text/javascript" src="/global.js"></script>
<script type="text/javascript" src="/scripts/overlib/overlib.js"></script><!-- overLIB (c) Erik Bosrup -->
<script type="text/javascript" src="/scripts/jquery/jquery-latest.pack.js"></script>
<script type="text/javascript" src="/scripts/jquery/plugins/form/form.js"></script>
<link rel="stylesheet" type="text/css" href="/css/classic/calendar2.css">
<script type="text/javascript" src="/scripts/calendar2.js"></script>
<div align="center">
	<script type="text/javascript" src="ajaxupload.3.2.js"></script>
<script type="text/javascript">
	function setUploader(upload, preview, image) {
		new Ajax_upload(upload, {
			action: '/iselect/media/dsp_upload.cfm',
			name: 'media_filename',
			autoSubmit: true,
			responseType: 'json',
			onChange: function(file, extension) {},
			onSubmit: function(file, extension) {
				$(upload).after('<img src="/images/icons/wait_small.gif" id="loading" />');
			onComplete: function(file, json) {
				if (json.ERROR) {
					// display the error message
					$(preview).attr('src', unescape ( json.SRC  ) );
					$(image).attr('value', '' );
					// disable all input
					$(".metadata").attr("disabled", "disabled");
				} else {
					// display success message
					$(preview).attr('src', unescape ( json.SRC  ) );
					$(image).attr('value', json.FILE);
					$(".metadata").attr("disabled", "");
	//disable all the form fields
	$(".metadata").attr("disabled", "disabled");
<script type="text/javascript">
	var x = setUploader('#upload', '#preview', '#poster');

Open in new window

Head Of Engineering - Dawaai.pk
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview


Perfect. That fixed it. Thanks so much.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.