sharepoint-2010

Delay running a function for 3 seconds?

放肆的年华 提交于 2019-12-24 14:12:33
问题 I'm looking to delay running this function for 3 seconds: <script type="text/javascript"> $('#FormsPageID table tr:nth-child(12) td:nth-child(2) div span span input') .on('focus', function(){ var $this = $(this); if($this.val() == '4/11/2013'){ $this.val(''); } }) .on('blur', function(){ var $this = $(this); if($this.val() == ''){ $this.val('4/11/2013'); } }); </script> The examples I've come across all involve using setTimeout to or show an element after X seconds. But I'm unsure how that

Sharepoint 2010 / Jquery - Multiple attributes added in content Editor webpart edit / save

寵の児 提交于 2019-12-24 10:49:59
问题 I’m currently performing a migration of our CMS from MCMS 2002 to SharePoint 2010. One of the MCMS templates allowed the users to add their own CSS and scripts. So that the scripts and styles are not stripped I have had to import their content into a Content Editor Web Part. The following code is an example of what gets imported. <style type="text/css"> ul#oakTabs { margin-left: 0; width: 100%; } ul#oakTabs li { display:inline; border: 1px solid #00CC99; cursor: pointer; background-color:

Using an SPMetal entity class

风格不统一 提交于 2019-12-24 10:40:03
问题 I'm executing the code below to get information about a page via LINQ. It works fine, but how do I convert this and using the entity class generated by the SPMetal command? Guid siteGuid = SPContext.Current.Site.ID; using (SPSite site = new SPSite(siteGuid)) { using (SPWeb web = site.OpenWeb()) { SPList lespages = web.Lists["Pages"]; var resultat = from SPListItem page in lespages.Items where page.ContentType.Name.Equals("PageNews") && page.ModerationInformation.Status.Equals

Sharepoint 2010 Site collection url

我只是一个虾纸丫 提交于 2019-12-24 10:29:30
问题 We have created the following sharepoint 2010 site collection using an internal url. http://pdc.wlroot.companyname.com/sites/Extranet How would i map a url another domain http://extranet.companyname.com to this? OR I think it would be easier to change the site collection url from /sites/Extranet to / -How would I do this? thanks in advance, Jason 回答1: What you need to do is to Extend the Web Application. Below steps will help to achive this. Go to SharePoint 2010 Central Administration Site -

Replace default search box in SharePoint 2010 with custom one

ぐ巨炮叔叔 提交于 2019-12-24 10:24:37
问题 On every new SharePoint 2010 site you get the default search box (In the MasterPage) that allows you to just do a normal search. I would like to replace this with some item that will allow you to pick Advanced or People Search, something like this......... Is it possible to replace/alter the default search box in the MasterPage? 回答1: The search box is a so called delegate control, so it is not that easy to customize as you would have to overwrite the control with your own to change it. There

Allowing UserProfileManager Permissions in SharePoint 2010

谁说胖子不能爱 提交于 2019-12-24 09:16:30
问题 I am trying to display a list of users in a custom webpart using the UserProfileManager. For some reason, I can view the webpart and all profiles are output to the screen (maybe because I am an administrator). But when a standard user logs in, they encounter a 403 page. I have done some reading up on this and I know its something to do with permissions. This is what I have in my code: private DataTable GetProfiles() { DataTable dtUserProfile = new DataTable(); //...DataTable Columns

CAML Query for Week and Month not working

孤街醉人 提交于 2019-12-24 05:55:17
问题 I following CAML Query does not work: <Where><DateRangesOverlap><FieldRef Name=\"EventDate\" /><FieldRef Name=\"RecurrenceID\" /><Value Type=\"DateTime\"><Week /></Value></DateRangesOverlap></Where> AND <Where><DateRangesOverlap><FieldRef Name=\"EventDate\" /><FieldRef Name=\"RecurrenceID\" /><Value Type=\"DateTime\"><Month/></Value></DateRangesOverlap></Where> But this one works: <Where><DateRangesOverlap><FieldRef Name=\"EventDate\" /><FieldRef Name=\"RecurrenceID\" /><Value Type=\"DateTime

Convert current list view filter into CAML query

别等时光非礼了梦想. 提交于 2019-12-24 05:46:27
问题 I am working in sharepoint2010, I have a custom list. Employees . http:/lists/employees/allitems.aspx I do some filtering in the list, so the URL will automatically become like this http:///lists/employees/allitems.aspx?View={guid}&filterField1=fieldname&FilterValue1=123...... I want to convert this URL into CAML query, or in any other way i want to get the filtered datas as DataTable. Is there any feature available in SharePoint SDK or any suggestion for this? Thanks in advance. 回答1: your

Upload > 5 MB files to sharepoint 2013 programmatically

北慕城南 提交于 2019-12-24 05:07:25
问题 I am having troubles uploading large files to my sharepoint 2013/office 365 site. I am using Visual Stuidos 2010 and .NET 4.0 I have tried code from these questions: SP2010 Client Object Model 3 MB limit - updating maxReceivedMessageSize doesnt get applied maximum file upload size in sharepoint Upload large files 100mb+ to Sharepoint 2010 via c# Web Service How to download/upload files from/to SharePoint 2013 using CSOM? But nothing is working. So I need a little help. Here is code that I