Jump to content

jQuery appendTo Problem in IE


beta0x64

Recommended Posts

Sourecode:

<script type="text/javascript" src="http://jqueryui.com/latest/jquery-1.4.2.js"></script> 
<script type="text/javascript" src="jquery.tablesorter.js"></script>
<script type="text/javascript" src="jquery.table2csv.js"></script>
<script type="text/javascript" src="jquery.livequery.min.js"></script>
<script type="text/javascript">                                         
   // we will add our javascript code here                                     
$(document).ready(function() {
	$("table").addClass("tablesorter").tablesorter();
	$("button").livequery("click", function() {
		$("td input").each(function (idx, elem) {
			var val = $(this).attr("value");
			$(this).html(val);
		});
		$("table").table2csv({
			callback: function(csva, name) {
				$("<form action='gridparser.php' method='post'><input type='hidden' name='filename' value='" + name + "' /><input type='hidden' name='csv' value='" + csva + "' /></form>").appendTo('body').submit().remove();
			}
		});
	});
});

</script> 

 

if you upload a csv file, then export that csv, it gives the error:

 

Unexpected call to method or property access.  jquery-1.4.2.js, line 4075 character 5

 

That code is:

	append: function() {
	return this.domManip(arguments, true, function( elem ) {
		if ( this.nodeType === 1 ) {
			this.appendChild( elem );
		}
	});
},

 

Any clues? I tried toying with the IE8 developer tool, but to no avail.

Link to comment
https://forums.phpfreaks.com/topic/205652-jquery-appendto-problem-in-ie/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.