SharePoint - JavaScript code to hide Webpart Zone using content editor webpart
Asked By ankit on 26-Jun-12 10:35 AM
Hi,
I need to hide an empty webpart zone which in on right vertical coloumn of other webpart zone. I dont want to use Designer. Just seeking if any java scripts can be provided to content editor webpart to hide this zone.
thanks
[)ia6l0 iii replied to ankit on 26-Jun-12 10:11 PM
Add a function:
function hideunwantedwebpart()
{
var tn = document.getElementsByTagName("tablename")
var ele = tn.uniqueidentifier.
ele.style.display="none";
}
As you see, you will have to identify the unique name for the webpart that is rendered, and then decide to call it via this function.
Push the function to be run on OnLoad
_spBodyOnLoadFunctionNames.push("hideunwantedwebpart")
Hope this helps you start.
Jitendra Faye replied to ankit on 27-Jun-12 01:09 AM
Using css alos you can hide this-
use this css-
<style>
.ms-navframe
{
display:none;
}
<style>
add this css using following steps-
Hide the Quick Launch in a Content Editor Web Part (CEWP).
1. Edit the page.
2. Add Content Editor Webpart to a Web Part Zone.
3. Select Edit - Modify Shared Web Part
4. Under Appearance, change title to Hide Quick Launch.
5. Under Layout, check the Hidden option.
6. Click the Source Editor button and add the above markup.
hope this will help you.
refer this link also-
http://sharepointking.blogspot.in/2008/11/hide-quick-launch-using-content-editor.html
Asked By ankit on 27-Jun-12 06:12 AM
naah..its not working..do i need to put some unique ID in this code. Kindly let me know how to get this. I want to add the javascript code to CEWP. which hide that particular webpart zone
Asked By ankit on 27-Jun-12 06:34 AM
Hey, I know how to insert javascript code to CEWP. but the code is not there. the one you provided didn't work. wanted to know if i need to do some modification in the code you provided.
Let me give you a detail description of my issue:
In My SharePoint page. I have an extra empty webpart zone which is on vertically right side of the page. I need to remove this webpart zone so that the extra blank space on my page disappears. I cannot do this by SharePoint Designer as unghosting is nt recommende by admin. Kindly provide javascript code which can be added to CEWP to hide this WEB part Zone. Thanks in advance!!
Please note i have to remove a webpart zone not a webpart.

How to use custom control (developed in VS) in SharePoint Designer SharePoint
Hello All! Can I use custom control for displaying data in SharePoint Designer at DataFormWebPart? - - Thanks! Alexander Sapozhkov SharePoint Development Discussions Visual Studio (1) SharePoint (1) DataFormWebPart (1) Evangelist (1) Sapozhkov (1) Galipeau (1 Webpart (1) Shurick (1) If you created a custom control in Visual Studio you can use
Sharepoint Designer cannot open webpartpage SharePoint
I installed Sharepoint Designer to do some changes on a page. But I cannot access any page of my I said the web part page (any page I tried) cannot be opened because a webpart is causing an exception - which doesn't happen when I open it in a web browser. All pages contain custom webparts. SharePoint Portal Server Dev Discussions TR (1) MSDN (1 Sharepoint (1) Designer (1) Installed (1) Uninstalled (1) Development (1) Webpartpage (1) We commonly had issues
Hey, I created a Blank Webpart page in team site and want to edit in the SharePoint Designer 2007, while i am trying to edit it its popping up with two options 1 edit page layout. http: / / en.csharp-online.net / SharePoint_Designer_Introduction%E2%80%94File_CheckIn_CheckOut Hope this will help you. keywords: SharePoint Designer 2007, SharePoint, Page, Webpart Page description: Issues with opening a Webpart Page in SharePoint
WebPart to display non-sharepoint SQL data SharePoint
Does anyone know of a webpart that I can use to display SQL data (non- sharepoint)? SharePoint Development Discussions SharePoint (1) WebPart (1) SSO (1) If you use SharePoint Designer you can connect a data view web
Would it be possible to link Email system (Exchange / Lotus notes) from SharePoint list columns. Ex: Name Title Phone Fax Email So, when user clicks on Email link column, It opens a new webpart or link direct to Email system like To: From: CC: Sub: Msg: Do I need to programming in SharePoint Designer or can able to work with existing webparts. Thank's for the advice. Check here for detailed information on how to integrate the lotus notes and excahnge server to sharepoint. . Lotus notes and sharepoint: http: / / www.ibm.com / developerworks / lotus / library / domino-sharepoint / index.html
Create a WebPart template from an existing WebPart? SharePoint
Hi, I have added a basic DataFormWebPart to a page in SharePoint Designer, and have it customised to precisely how I want it - is it possible to create a new self contained webpart from this one that I can add to Sharepoints WebPart gallery? Cheers Richard SharePoint Design Discussions SharePoint (1) DataFormWebPart (1) RichardWith (1) WebPart (1) Gallery (1) Solves (1) Dwp
Interactive Buttons in SharePoint Designer SharePoint
Hi I am editing a site created in MOSS 2007 using SharePoint Designer 2007. I inserted hyperlink Interactive Buttons using SharePoint Designer. The buttons are displayed on the MOSS site, but once I close off SharePoint Designer, the image is no longer displayed. . . . . . . . . . it just shows an "x". I can click
Creating a webpart (SharePoint Designer) SharePoint
Hello. Is there an easy way to create some webpart (or some site) that its content and formatting would be taken from an another location changes would affect our website. Thank you very much and have a good day! Pista SharePoint Design Discussions SharePoint Server 2007 (1) SharePoint (1) Pista (1) Webpart (1) Tpoint (1) Day (1) Hi Pista, Don't know if
Creating Custom content in Sharepoint Designer - Simple Question SharePoint
Q: I'm a fairly new user to SharePoint 3.0 and SharePoint Designer 2007 and I am attempting to make a customer template which filters the data from customer list (accounting Webpage) to a single customer (new Webpage). I can perform this in sharepoint by creating a Dataview and setting a filter, but if I create a template from this sample site, anyone that would use the template would have to have sharepoint to go in and modify the filter. This seems kludgy - I have to believe that
Direct / external link to webpart SharePoint
Hi all, Is it possible to externally link directly to a sharepoint webpart? I've a sharepoint site running with several webparts on it. However there is another (none asp.net) information wants to use an Iframe or such to embed and visualize some of my dynamic sharepoint webparts. Is that somehow possible? Or if not, link to the webpart zone, or page without the masterpage. idealy there would be a link, such as: http mysharepointsite.com / mylibrary / mywebpartpage.aspx?WebPart = {webparttitle or Id} is it anyhow possible with the whole asp.net rendering / hosting order