Re: Content Editor Web Part Javascript error with more than 2 on a

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



johnrichter33@xxxxxxxxx wrote:
On Oct 29, 11:33 am, Stephen <Step...@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:
I have not found any solution or figured out how to replicate the issue. I
have heard nothing from MS regarding this matter either. I was hoping since
We now have at least 5 diffrent people with this problem that
something/someone might come out with a fix or atleast acknowledge an issue
was occuring but not yet.

-Stephen"rebecca_mar...@xxxxxxxxxxx" wrote:
On Sep 11, 9:02 am, Stephen <Step...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Paul, It occurs on a somewhat random basis. Basiclly when adding more than 2
CEWP on a blank web part page I get the error. I have tried with a custom
master and also a default master. Both work in some places, both don't work
in others.
"galvin.p...@xxxxxxxxx" wrote:
On Sep 10, 4:36 pm, PJ-Winona <PJ-Win...@xxxxxxxxxxxxxxxxxxxxxxxxx>
wrote:
I am getting this EXACT same situation. Please somebody help. My content
managers are going to kill me."Stephen" wrote:
When I do the following I get get a javascript error:
1. Create a new page, blank web part template
2. Add 2 content edirot web parts
3. Add content to them
4. Add an additional web part to the page.
5. Attempt to open up the 'modify web part' or use the little drop down menu
I get the following error.
line: 2135
Char: 4
Error: 'style.display' is null or not an object
code: 0
If i take the content editrors off. I don't get a problem.
I have tried this on mutiple servers, QA and PROD, with a custom MP or with
a regular one.
Any body have any ideas?
I am not seeing that behavior.
What is your 3rd web part? Maybe it's specific to that kind?
What about the content? I just entered some simple text: "first ctwp"
and "second ctwp" respectively.
--Paul Galvin- Hide quoted text -
- Show quoted text -
I am seeing the same behavior when there are more than 2 document
library web parts on my MOSS 2007 site. Were you able to resolve this
issue? I cannot readily reproduce the issue in my test or dev
environment however was able to do a restore of my prod to dev and see
the issue. I am using next to zero customizations. Please let me
know if you are still seeing the issue or how you corrected it, thank
you!!!!
Does anyone have an update on this issue?

Hey Stephen,

I am having the exact same issue ... WSS 3, SharePoint 2007 ...

When attempting to edit a web part I receive the following pop-up
error ...

Line: 2135
Char: 4
Error: 'style.display' is null or not an object

When I move the web part to a lower part of the page (for example) I
receive another pop-up error:

Error: 84
Unspecified error

When I attempt to move the web part to another zone I receive the
generic SharePoint error page saying: "An unexpected error has
occurred." ... and it will not more the web part to another zone


I was having the exact same problem. IE7 returns a "'style.display' is null or not an object" error whenever I try to use the drop down menu on a content web part after I've populated it with content. Funny enough, it didn't happen every time or with all my content editors.

I did some testing and it appears that if you copy the entire text from another web part displayed in IE (I've only tried from other content editors) it will copy not just the text, but it's formatting _and_ a <div> tag. It's this tag that causes the problem in my case. After removing it (using Source Editor before exiting Edit Mode), the content editor drop down works fine.

With the error appearing the source code looks like this;

<td class="ms-WPBorder" valign="top">
<div WebPartID="8d6c1262-f5c7-4785-955e-d30a71eb3256" HasPers="false" id="WebPartWPQ2" width="100%" class="ms-WPBody" SelectedWebPart="true" style="" ><FONT color=#ffffff>
<DIV class=ms-WPBody id=WebPartWPQ2 WebPartID="e11467e9-5f5d-482a-80ac-76dde74fb48e" HasPers="false" width="100%" allowDelete="false">
<P><FONT color=#ffffff>...</FONT></P>
<P><FONT color=#ffffff>...</FONT></P>
<P><FONT color=#ffffff>...</FONT></P></DIV></FONT></div></td>

Pasting the text from IE to Word, and then into the Rich Text editor yields this source code:

<td class="ms-WPBorder" valign="top">
<div WebPartID="8d6c1262-f5c7-4785-955e-d30a71eb3256" HasPers="false" id="WebPartWPQ2" width="100%" class="ms-WPBody" SelectedWebPart="true" style="" >
<P class=MsoNormal>....</P>
<P class=MsoNormal>...</P>
<P class=MsoNormal>...</P></div></td>

Notice the double Div tag in the first code, with the same id.

I don't know if this is the case for everybody else, but it solved the problem for me by using Word (or any other text processor) as an in-between step for copy and paste to strip out any formatting.

I apologize if I'm being unclear. Please feel free to comment.
.



Relevant Pages

  • editor for direct editing of the syntax tree: possible?
    ... an editor, I could move around the atoms and lists (widen/narrow ... the Lisp system should somehow save the forms ... If I choose a symbol, I see the source code for it, can edit ... about a source-code representation system, ...
    (comp.lang.lisp)
  • Re: OFF TOPIC:Re: C compiler question (I hope this is on topic)
    ... If you take a compiler like lcc-win for instance, you will see that the following instructions are ... People have a different kind of circuit than a computer. ... source code in one side, and outputs fully folded proteins/enzymes, whatever ... In the same vein we have a text editor, ...
    (comp.lang.c)
  • OFF TOPIC: Re: C compiler question (I hope this is on topic)
    ... How does the object know that the value 5 of type char at run time if ... People have a different kind of circuit than a computer. ... source code in one side, and outputs fully folded proteins/enzymes, whatever ... In the same vein we have a text editor, ...
    (comp.lang.c)
  • OFF TOPIC:Re: C compiler question (I hope this is on topic)
    ... > char x; ... People have a different kind of circuit than a computer. ... source code in one side, and outputs fully folded proteins/enzymes, whatever ... In the same vein we have a text editor, ...
    (comp.lang.c)
  • Re: Notes from a volcano cam tourist--OT writing
    ... I got better margins left and right by sticking this after the BODY ... I really must get a regular HTML editor, ... the suggestions, too, using whatever spacing and other format ...
    (sci.geo.geology)