Thanks Jordon - but alas this adjustment made no difference to IE.

Bruce


At 09:57 a.m. 20/04/2009, you wrote:
Try doing $("#editorbox").fadeIn(500).html(field.doeditor);

From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Bruce MacKay
Sent: Sunday, April 19, 2009 4:16 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] this.appendChild(E) error

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

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":
         $('#newfile,#sidebar,#selectlist,#archiveOff').hide();

$('#contentwrapper').css('background-image','url(images/blank.gif)');
-->   $("#editorbox").html(field.doeditor).fadeIn(500);
         $("#editor > ul").tabs({fxFade: true, fxSpeed: "fast",selected: 1});

$("a.showarchive").bind("click",function(){getArchive(this.id);return false});
         setTinyMCE('400px');
var options = {dataType: 'json', beforeSubmit: showRequest,success: showResponse}; $('#editor_form').submit(function() {tinyMCE.triggerSave();$(this).ajaxSubmit(options);return false;});
        break;
case "N":

$("#addnewpage").animate({backgroundColor:'red'},2000).animate({backgroundColor:'#FFF'},1000);
         $("#xfback").html(field.msg);
}
break;
[snip]

Reply via email to