Hi,
I have a problem about fckeditor. When using IE 7 (I really hate it) I get an error when I try to create a fckeditor instance from php. I'm calling the data editing form with an ajax call. I get the form and all it's element from this request and put just update the div element's inner html. When I try to submit this form (also with ajax); as there are errors, form does not submit properly. The submit error occurs only with IE and not with firefox, but when I try to call the link which IE points that there is an error (fckeditor.html file), firefox also generates an error.
I think the problem is in the fckeditorcode_ie.js. I have tracked down the error first on ie and then firefox's firebug extension and reached the fckeditorcode_gecko.js. I suppose it's divided for different browser types, so I guess the problem is in ie's js file. I keep getting that "this.LinkedField.value is null or not an object on line 33" and I'm really clueless on what to do.
I wasted nearly 2 hours to track the code because of this one line of codes (does it really increase the performance to write down just A and B, and dlete all the spaces and new lines?) just to fix the problem myself but I couldn't. I have only made a search inside the fckeditorcode_ie.js so there can be some wrong debugging here because I know nearly nothing about how fckeditor works.
this.LinkedField.value is used in:
and this function was called from here:
After I have returned empty string I found these lines:
and this is the part where I can't debug the error anymore. Because at the end of the setData function I have added an alert function and it works, so the code is parsed without any problem till there. I'm not very good with js and I do not know how to create an element_node or a frameset_node to further debug and I wasn't pretty sure what it was for, so I gave up.
I would be really glad if you could give me some clues about what to do, with only "one" lines and As and Bs and Cs and Ds and without any comment on the I'm completely lost.
thank you for your time
I have a problem about fckeditor. When using IE 7 (I really hate it) I get an error when I try to create a fckeditor instance from php. I'm calling the data editing form with an ajax call. I get the form and all it's element from this request and put just update the div element's inner html. When I try to submit this form (also with ajax); as there are errors, form does not submit properly. The submit error occurs only with IE and not with firefox, but when I try to call the link which IE points that there is an error (fckeditor.html file), firefox also generates an error.
I think the problem is in the fckeditorcode_ie.js. I have tracked down the error first on ie and then firefox's firebug extension and reached the fckeditorcode_gecko.js. I suppose it's divided for different browser types, so I guess the problem is in ie's js file. I keep getting that "this.LinkedField.value is null or not an object on line 33" and I'm really clueless on what to do.
I wasted nearly 2 hours to track the code because of this one line of codes (does it really increase the performance to write down just A and B, and dlete all the spaces and new lines?) just to fix the problem myself but I couldn't. I have only made a search inside the fckeditorcode_ie.js so there can be some wrong debugging here because I know nearly nothing about how fckeditor works.
this.LinkedField.value is used in:
...
var FCK={
Name:FCKURLParams['InstanceName'],
Status:0,
....
GetLinkedFieldValue:function(){
//return ""; //I have added this line to find out where the returned value was used...
return this.LinkedField.value;
},
...
and this function was called from here:
...
StartEditor:function(){
this.TempBaseTag=FCKConfig.BaseHref.length>0?'<base href="'+FCKConfig.BaseHref+'" _fcktemp="true"></base>':'';
...
this.SetData(this.GetLinkedFieldValue(),true); //Here!
....
After I have returned empty string I found these lines:
...
var FCKFocusManager=FCK.FocusManager={
IsLocked:false,
AddWindow:function(A,B){
var C;
if (FCKBrowserInfo.IsIE) C=A.nodeType==1?A:A.frameElement?A.frameElement:A.document; //This is the line where I take the error
else if (FCKBrowserInfo.IsSafari) C=A;
else C=A.document;
FCKTools.AddEventListener(C,'blur',FCKFocusManager_Win_OnBlur);
FCKTools.AddEventListener(C,'focus',B?FCKFocusManager_Win_OnFocus_Area:FCKFocusManager_Win_OnFocus);
},
...and this is the part where I can't debug the error anymore. Because at the end of the setData function I have added an alert function and it works, so the code is parsed without any problem till there. I'm not very good with js and I do not know how to create an element_node or a frameset_node to further debug and I wasn't pretty sure what it was for, so I gave up.
I would be really glad if you could give me some clues about what to do, with only "one" lines and As and Bs and Cs and Ds and without any comment on the I'm completely lost.
thank you for your time

Re: fckeditorcode_ie.js this.LinkField.value is null error
Re: fckeditorcode_ie.js this.LinkField.value is null error
Re: fckeditorcode_ie.js this.LinkField.value is null error
Please I really need to solve this problem.
Re: fckeditorcode_ie.js this.LinkField.value is null error
Re: fckeditorcode_ie.js this.LinkField.value is null error
Do you run FCKEditor on PHP5 server?
Re: fckeditorcode_ie.js this.LinkField.value is null error
One tiny bit of extra evidence: I use a personalized config script with my menu selection and my own stylesheet. When the editor crashes under IE7, all the edit-button controls and settings from the fckconfig.js are on show, rather than my personalized settings and selections. So it seems to crash before my personalized config has been loaded and activated.
Thanks for any advice
pete
Re: fckeditorcode_ie.js this.LinkField.value is null error
And I wonder how you want people to find out any problem if you don't provide a web page to test the problem.
Re: fckeditorcode_ie.js this.LinkField.value is null error
Re: fckeditorcode_ie.js this.LinkField.value is null error
jmsuperstar@vip.qq.com