Followers

Thursday, July 29, 2010

change SharePoint logo

http://serverfault.com/questions/72434/change-sharepoint-logo

JQuery for Everyone: Collapse Text in List View BY Paul Grenier

http://www.endusersharepoint.com/2009/02/20/jquery-for-everyone-collapse-text-in-list-view/

Monday, July 19, 2010

Sending an email in Sharepoint Using Javascript and Custom Forms

http://sharepointjavascript.wordpress.com/2009/10/27/send-e-mail-with-javascript/

Sunday, July 11, 2010

JavaScript for SharePoint List field to populate data from query strings

http://sharepointsolutionsrams.blogspot.com/2010/02/following-javascript-is-used-to.html

Edit SharePoint Field properties, including lookup column list association, with client side code only

http://sharepointjavascript.wordpress.com/2010/03/30/edit-sharepoint-field-properties-including-lookup-column-list-association-with-client-side-code-only/

SharePoint Data View Web Part Extension Functions in the ddwrt Namespace

http://msdn.microsoft.com/en-us/library/dd583143(office.11).aspx

SharePoint: Populating Drop Down List Field with Data from Different Site



http://www.endusersharepoint.com/2010/01/25/sharepoint-populating-drop-down-list-field-with-data-from-different-site/

Wednesday, July 7, 2010

Writing Custom Web Services for SharePoint Products and Technologies

http://msdn.microsoft.com/en-us/library/dd583131(office.11).aspx

Tuesday, July 6, 2010

Customizing Sharepoint List's NewForm.aspx "OK" button click

http://yasuanantha.blogspot.com/2010/05/customizing-sharepoint-lists.html

Setting SharePoint Form Fields Using JavaScript

http://www.sharepointhillbilly.com/archive/2009/07/06/setting-sharepoint-form-fields-using-javascript.aspx

How to dynamically populate a drop-down list by calling a Web service in InfoPath

http://support.microsoft.com/kb/826994

Friday, July 2, 2010

Customizing List Item Forms in Windows SharePoint Services

http://msdn.microsoft.com/en-us/library/dd583142(office.11).aspx

Querying SharePoint List Items using jQuery

http://weblogs.asp.net/jan/archive/2009/05/06/querying-sharepoint-list-items-using-jquery.aspx

Programmatically create a custom SharePoint list from a repeating table in an InfoPath web-based form

http://www.bizsupportonline.net/browserforms/programmatically-create-custom-sharepoint-list-infopath.htm

Thursday, July 1, 2010

Autopopulation the list items in the Sharepoint List

It is a real fun working with javascripts in sharepoint.
I came to across writing a script where my users wanted have the people picker autopopulate with the current user Name.

Here is the code guys


_spBodyOnLoadFunctionNames.push("fillDefaultValues");


function fillDefaultValues() {


var qs = location.search.substring(1, location.search.length);


var args = qs.split("&");


var vals = new Object(getUserDisplayName());


var assignedToInput = getTagFromIdentifierAndTitle("div", "", "People Picker");


assignedToInput.innerHTML = vals;


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



var nameVal = args[i].split("=");


var temp = unescape(nameVal[1]).split('+');


nameVal[1] = temp.join(' ');


vals[nameVal[0]] = nameVal[1];


}


}


function getTagFromIdentifierAndTitle(tagName, identifier, title) {


var len = identifier.length;


var tags = document.getElementsByTagName(tagName);


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



var tempString = tags[i].id;


if (tags[i].title == title && (identifier == ""


tempString.indexOf(identifier) == tempString.length - len)) {


return tags[i];


}


}


return null;


}


function getUserDisplayName() {


var tags = document.getElementsByTagName('a');


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



if(tags[i].innerText.substr(0,7) == 'Welcome') {


return tags[i].innerText.substr(8,tags[i].innerText.length);


}


}


}



Thanks to SkillCrusher's Blog for putting some light on it
http://blogs.vbcity.com/skullcrusher/archive/2008/04/10/9024.aspx