style.display is null or not an object error in sharepoint

Posted on 2009-12-18
Last Modified: 2012-06-27
Hi All, while selecting modify webpart its showing error 'style.display' is null or not an object error in sharepoint. If any one knows the solution please suggest.
Question by:ravibabub
    LVL 7

    Accepted Solution

    It's normally down to some error in a web part, or possibly some conflict between multiple web parts. First thing to do is go to the web part maintenance page, do this by adding "?contents=1" to your url, i.e. if your url is http://sharepoint/site/page.aspx go to http://sharepoint/site/page.aspx?contents=1. This will show all web parts on the page and if there are any that are closed or not in use you can delete them completely from the page to prevent possible conflicts.

    Also if the web part that is triggering the error is a content editor web part, look in it's source and see if there's anything there, possibly some invalid javascript code. Or could your web part be using some custom XSL?


    Author Comment

    Hi StevenMulkerrins,

    Thanks for solution. Here I am getting with Content Editor Webpart. Now I want to delete the content editor webpart, to delete this, when I select edit button its showing javascript error. Please advice the best how I can delete this.

    LVL 7

    Expert Comment

    If you use the web part maintenance page like above (by adding ?contents=1 to the end of the url) it will give you a list of all of the web parts on the page, you can then tick your Content Editor web part and choose to delete it.

    Author Closing Comment

    yaa..its nice

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Last week I faced a strange issue recently, i have deployed SharePoint 2003 servers for one project and one of the requirements was to open SharePoint site from same server. when i was trying to open site from the same server i was getting authentic…
    The vision: A MegaMenu for a SharePoint portal home page The mission: Make it easy to maintain. Allow rich content and sub headers as well as standard links. Factor in frequent changes without involving developers or a lengthy Dev/Test/Prod rel…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now