IE8 and SharePoint 2003 / WSS 2.0 Rich Text Editor
I have a server running SharePoint Portal Server 2003 SP3 / WSS 2.0 SP3 and I am testing this SharePoint site using a fully patched Windows XP client running Office 2007 / IE 8.0 prior to the roll out of Office 2007 / IE 8.0 to our organisation. However with this client machine an error occurs when using the Rich Text Editor toolbar, e.g. to insert an image. The error is: Line: 1937 Error: Object expected Line 1937 of the HTMLEdit.aspx file is C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\TEMPLATE\LAYOUTS\1033\HTMLEdit.aspx causes the error and the code at the line is as follows: 1935: if (element.TBUSERONCLICK) 1936: { 1937: eval(element.TBUSERONCLICK + "anonymous()"); 1938: } The code actually being executed (lifted from debugger) is as follows: function onclick() { return DECMD_IMAGE_onclick; }anonymous() It has taken me a while and some poking, but I have tried a number of things to resolve this problem from various news groups, all with no sucess. The actions I have tried are as follows: * Installed KB941204 (on the server) * Re-registered the OCX and DLL in C:\Program Files\Common Files\Microsoft Shared\Triedit (dhtmled.ocx and regsvr32 triedit.dll) on the client machine. * Tried changing the zone of the intranet to a fully trusted zone rather than the intranet zone * Tried clearing the cache / cookies * Added <meta http-equiv="X-UA-Compatible" content="IE=7" /> to the HTMLEdit.aspx page to ask IE 8 to treat the page as an IE7 page The problem remains, even after these 'fixes'. I think the problem is some sort of trust / permissions issue between the browser and the DLL / OCX on the client machine, but I have no idea what to do to resolve it. I am therefore at a total loss as to what to do - does anyone have any suggestions? Thanks!!!
June 16th, 2009 5:44pm

Nothing ECM about this that I can see. Moving to the normal Admin forum.WSS FAQ sites: http://wssv2faq.mindsharp.com and http://wssv3faq.mindsharp.com Total list of WSS 3.0 / MOSS 2007 Books (including foreign language) http://wssv3faq.mindsharp.com/Lists/v3%20WSS%20FAQ/V%20Books.aspx
Free Windows Admin Tool Kit Click here and download it now
June 16th, 2009 9:03pm

This is a known error with IE8 and sharepoint 2003. Microsoft says they are not going to make any changes to Sharepoint 2003 since mainstream support ended Q1-2009.Workaround if you want to use the RTF editor is to open Word, write and format your text and copy and paste it to the RTF part in SharePoint webpart. That works for me.Also another problem with Sharepoint 2003 and IE8 is that if you are in a library or list and that is filled with entries that fills upp the webpage, then go down to one of the documents and entries at the bottom and try to activate the taskmenue for that entry (like edit in xxx, chec-in check out etc) the popup does not resize correctly on the screen making some of the functions fall out of the screen so you cant reach them.Microsoft gave the same answer to this problem - they wont fix it.Solution there is to resize your ie8 window to a smaller size so that all functions will fit on the screen.kaj
August 12th, 2009 2:30pm

Hi Kaj,Thanks for your input - I have experienced a few more similar problems around menus as well (in my case click on the drop down menu of a document library generates a javascript error). I suspect they all relate to the same underlying issue. At least I have a definitive answer for the people here.I have been championing an upgrade to SharePoint 2007 for sometime, which is gathering some support now the organisation is rolling out IE8 and Office 2007and problems are being encountered. Incidently IE 8 is not working with a couple of other major systems here.The dilema I have now is whether to upgrade to SharePoint 2007 as soon as practical or whether to hang on for SharePoint 2010 and go straight to that version. Ho hum, time will tell I guess.Simon.
Free Windows Admin Tool Kit Click here and download it now
September 10th, 2009 1:32pm

Hi!I was investigated the same problem and found a reason for this error. When using older IE browsers object element.TBUSERONCLICK contains code like this: function anonymous(){ return <original function to be called>} On IE8 element.TBUSERONCLICK contains this code instead: function onclick(){ return <original function to be called>} The problem arises when the method anonymous() is called in IE8 because that method does not exists.I made this kind of modification to code and now the editor is working also in IE8. ORIGINAL:if (element.TBUSERONCLICK) { eval(element.TBUSERONCLICK + "anonymous()");} MODIFIED:if (element.TBUSERONCLICK) { var str = element.TBUSERONCLICK.toString(); var pos = str.indexOf("anonymous"); if (pos >= 0) { eval(element.TBUSERONCLICK + "anonymous()"); } else { eval(element.TBUSERONCLICK +"onclick()"); }} Hope this helps someone. -Antti Mikkonen
February 5th, 2010 10:59am

A Mikkonen: Please don't propose your own posts as answers. propose the good answers of *other people* as that helps the Moderators. (Moderator)FAQ sites: (SP 2010) http://wssv4faq.mindsharp.com; (v3) http://wssv3faq.mindsharp.com and (WSS 2.0) http://wssv2faq.mindsharp.com Complete Book Lists (incl. foreign language) on each site.
Free Windows Admin Tool Kit Click here and download it now
February 12th, 2010 8:41am

Mikkonen,Thank you so much for this solution. I've spent 2 days troubleshooting this IE 8 issue and your solution took care of it.
February 17th, 2010 10:02pm

Chad Alexander: Your reply is not an answer. Propose the post that provided you with the solution, not your post saying that someone else's post gave you the solution. P.S. Mikkonen's post *now* marked as Answer because there was a post from *someone else* saying it was a solution. (Moderator) FAQ sites: (SP 2010) http://wssv4faq.mindsharp.com; (v3) http://wssv3faq.mindsharp.com and (WSS 2.0) http://wssv2faq.mindsharp.com Complete Book Lists (incl. foreign language) on each site.
Free Windows Admin Tool Kit Click here and download it now
February 18th, 2010 7:29am

Sorry, my mistake. Answered first time to this forum so couple of extra mouse clicks... ;-) Won't happen again. Sorry.
February 22nd, 2010 11:37am

Hi Antti, yes you certainly did help me, that fix worked a treat. Thanks very much, you are a star :-) Andrew
Free Windows Admin Tool Kit Click here and download it now
April 30th, 2010 6:21am

Hi! I was investigated the same problem and found a reason for this error. When using older IE browsers object element.TBUSERONCLICK contains code like this: function anonymous() { return <original function to be called> } On IE8 element.TBUSERONCLICK contains this code instead: function onclick() { return <original function to be called> } The problem arises when the method anonymous() is called in IE8 because that method does not exists. I made this kind of modification to code and now the editor is working also in IE8. ORIGINAL: if (element.TBUSERONCLICK) { eval(element.TBUSERONCLICK + "anonymous()"); } MODIFIED: if (element.TBUSERONCLICK) { var str = element.TBUSERONCLICK.toString(); var pos = str.indexOf("anonymous"); if (pos >= 0) { eval(element.TBUSERONCLICK + "anonymous()"); } else { eval(element.TBUSERONCLICK +"onclick()"); } } Hope this helps someone. -Antti Mikkonen Thank you Mikkonen ,it is working fine for me with your solution in IE8.
June 11th, 2010 1:12pm

It is working fine in IE8
Free Windows Admin Tool Kit Click here and download it now
June 11th, 2010 1:14pm

This fix worked perfectly. SharePoint 2003 SP3 Windows XP SP3 IE 8
July 15th, 2010 6:29pm

Thanks Antti, Worked like a charm! Regards SimoniThink SharePoint (http://ithinksharepoint.blogspot.com)
Free Windows Admin Tool Kit Click here and download it now
July 21st, 2010 12:36pm

Thanks Antti. It works great.
February 26th, 2011 9:32am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics