SharePoint Modal Dialog Popup, Return Values

Tuesday, 13 September 2011 08:22 by tariq

Whilst working out a problem with how to return values from a SharePoint Modal Dialog I found an interesting link to a page in the his book online explaining the works.

Firstly here is how values are returned from a SPModalDialog to its calling page

http://www.learningsharepoint.com/2010/07/22/programming-with-dialog-in-sharepoint-2010/

and here is the page with stuff on the javascript functions within the popup frame

link

You can find the book here

Tags:   ,
Categories:   sharepoint
Actions:   E-mail | Permalink | Comments (78) | Comment RSSRSS comment feed

Editing Field/Schema Display patterns

Thursday, 18 August 2011 14:02 by tariq

Here are some usefull resources on how to change the way your field is rendered in SharePoint 2010 Lists

1. SharePoint uses XSLT to render the views in SPS 2010. Here is a sample on how to customize the rendering of a field

http://msdn.microsoft.com/en-us/library/ff606773.aspx

 

2. The <xsl:template … element requires a mode attribute. Here is how to find the mode attribute for your field type

http://www.silver-it.com/node/66

Tags:   , , ,
Categories:   sharepoint
Actions:   E-mail | Permalink | Comments (25) | Comment RSSRSS comment feed

SharePoint SPBasePermission Decimal Values

Wednesday, 17 August 2011 09:30 by tariq

I have been hunting around the web for the decimal representation of the SPBasePermission enum values on more than one occasion for permissions stuff. Usually finding a good resource surf up on Google et al is a bit tough.

So I am bookmarking James’s blog post on it

http://www.jamestsai.net/Blog/post/Understand-SharePoint-Permissions-Part-1-SPBasePermissions-in-Hex2c-Decimal-and-Binary-The-Basics.aspx

MOSS–Weird Ajax Issue

Monday, 25 April 2011 08:13 by tariq

Thought I should bring this to attention since it’s a weird issue and the solution isn’t obvious when googling.

The issue is - In MOSS an Ajax-Partial postback, causes the page to loose its page title. Like shown below

So whats the fix?

Appaprently additional spaces between the <title> and the <asp:ContentPlaceHolder> cause this issue.

The solution is to remove the spaces.

<title id=”onetidTitle”><asp:ContentPlaceHolder id=”PlaceHolderPageTitle” runat=”server”/></title>

Original Source: http://www.directsharepoint.com/2011/04/page-title-disappears-after-ajax-post.html

Tags:   , ,
Categories:   sharepoint
Actions:   E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed

Minimal Master Page Ajax Issue

Friday, 8 April 2011 11:55 by tariq

Hi All, just wanted to point out a teensy weensy but maybe very useful tip. It might be outdated information if you are using SharePoint 2010, but if you are using SharePoint 2007 then you might find this useful.

I am sure all of you working with SharePoint has come across Heather Solomon through her blog, it being a really wonderful resource for skinning SharePoint. Heather also has provided a ton of help to the SharePoint community by sharing the minimal masterpages for WSS and MOSS.

What I wanted to point out is that if you are suffering from AJAX controls not working propperly on the above mentioned master pages you might want to change

 

<WebPartPages:SPWebPartManager runat="server"/>
    <form runat="server" onsubmit="return _spFormOnSubmitWrapper();">

to

<form runat="server" onsubmit="return _spFormOnSubmitWrapper();">

<WebPartPages:SPWebPartManager runat="server"/>

Tags:   , ,
Categories:   sharepoint
Actions:   E-mail | Permalink | Comments (33) | Comment RSSRSS comment feed

jQuery Primer for SharePoint

Thursday, 31 March 2011 17:12 by tariq

fyi - http://sharepointmagazine.net/articles/a-jquery-primer-for-sharepoint-selectors-attributes-and-traversing-oh-my

Tags:   ,
Categories:   sharepoint
Actions:   E-mail | Permalink | Comments (11) | Comment RSSRSS comment feed

On SharePoint, Hide the ‘Sign-in As A Different User’ option through JQuery

Thursday, 31 March 2011 17:10 by tariq

A simple script you can add to your master page or content editor etc. to hide the “Sign in As a Different User” option that is available in the Personal Actions Menu.

<script src="/jQuery/jquery-1.4.1.js" type="text/javascript"></script>

<script type="text/JavaScript">

jQuery(document).ready(function($) {

var objects = document.getElementsByTagName("ie:menuitem");

for (var i = 0; i < objects.length; i++) {

itm = objects[i];

if (('#' + itm.id).indexOf("LoginAsDifferentUser") != -1) {

$('#' + itm.id).remove();

}

}

})

</script>

This is a modification of the original script found here