[jQuery] this.appendChild(E) error
<html>
<body>
Hello folks,
I'm getting an IE-only error (IE6/7) on a page for which I cannot find a
solution. IE reports an error (Unexpected call to method or
property access) at line 12. The Script Debugger is pointing to
"this.appendChild(E) " in jquery (v1.3.2 rev. 6246).
The context of the code is below - IE chokes at the line indicated.
I have loaded the json field 'doeditor' with nothing and with simple text
and the error is still thrown, so I don't believe it is anything in the
field per se that is causing the problem.
Any directions gratefully accepted.
Thanks,
Bruce
<tt>function showResponse(json) {
if (json.fields) {
$("#busy").hide();
for (var i = 0; i < json.fields.length; i++) {
var field = json.fields[i];
switch(field.zone) {
case "newtext":
switch(field.yesno) {
case "Y":
<x-tab> </x-tab>
$('#newfile,#sidebar,#selectlist,#archiveOff').hide();
<x-tab> </x-tab>
$('#contentwrapper').css('background-image','url(images/blank.gif)');
-->
$("#editorbox").html(field.doeditor).fadeIn(500);
<x-tab> </x-tab>
$("#editor > ul").tabs({fxFade: true, fxSpeed:
"fast",selected: 1});
<x-tab> </x-tab>
$("a.showarchive").bind("click",function(){getArchive(this.id);return
false});
<x-tab> </x-tab>
setTinyMCE('400px');
<x-tab> </x-tab> var
options = {dataType: 'json', beforeSubmit: showRequest,success:
showResponse};
<x-tab> </x-tab>
$('#editor_form').submit(function()
{tinyMCE.triggerSave();$(this).ajaxSubmit(options);return
false;});
<x-tab> </x-tab>break;
case "N":
<x-tab> </x-tab>
$("#addnewpage").animate({backgroundColor:'red'},2000).animate({backgroundColor:'#FFF'},1000);
<x-tab> </x-tab>
$("#xfback").html(field.msg);
}
break;
[snip]
</body>
</html>