An open-source, cross-platform JavaScript library, now endorsed by Microsoft

learn more… | top users | synonyms

3
votes
4answers
68 views

Upload files on SharePoint 2013 document library using jQuery

How to upload files on SharePoint 2013 document library using jQuery? I am stuck with this.
1
vote
4answers
4k views

'SPServices' is null or not an object

I need to find out if logged in user belongs to a specific sharepoint group (2010). I am using below code to get it. but getting javascript error as 'SPServices is null or not an object'. ...
0
votes
2answers
23 views

SharePoint Forms Fields depend on User

I hope you all are doing good. I have an query regarding SharePoint forms I hope if anyone can help me out. I want to create a SharePoint form where a member from any department can ask for a leave, ...
0
votes
1answer
40 views

Display Profile Image, Can't Select Picture Url

I am attempting to retrieve some profile properties for the current user, and am having a hard time with the profile picture Url specifically. Version is Sharepoint Foundation 2013. When I open the ...
0
votes
0answers
24 views

how to append description column using jquery

I am trying to append description column from list using jquery but am unable to get the out put. Can some one help me out. function fnCallBack(xData, Status) { var ctrFirst = 1; var liText ...
-1
votes
2answers
376 views
0
votes
1answer
39 views

Logical operators are not working in JS file

Everything is fine I am able to fetching the data from SharePoint 2013 List using CAML query in my js file. But when i try to get the data via dropdown conditions my code is executing in the else ...
3
votes
1answer
77 views

Getting item id from newly created item

I am using SharePoint 2013 Enterprise version. I am using below rest api code to add the record I kept below code in common js file function CreateListItemWithDetails(listName, webUrl, newItem, ...
0
votes
1answer
39 views

Highlight upcoming/overdue calculated column dates in a training list

I have a list to track customer training. Two of the trainig items are recurring; Ethics - annual and GPC Refresher - biannual (every two years). The due dates for each training requirement were ...
0
votes
1answer
166 views

editform jquery value returns undefined

I've added the following code into a CEWP part at the top of the Editform.aspx page (using SharePoint 2013) <html> <script src="https://oursites/jquery-1.11.3.js" ...
0
votes
1answer
29 views

Required field validator is not working in jquery

Here is my code Index.cshtml I gave Javascript functions but validations is not working please check this where i did mistake in this code.Thanks in Advance. enter code here<div class="row"> ...
1
vote
1answer
58 views

Get start and end date of current week which starts in one month and ends in another month

I have to get start date and and end date of current week. I used this code but end date is getting previous month name if week start in one month and ends in another month. Date.prototype.getWeek = ...
1
vote
0answers
20 views

Chaining rest calls

I've got a page where I want users to add themselves to a sharepoint group and then read the contents of the library. This requires three things, get the current user, add to group, and read the ...
2
votes
1answer
66 views

Display image(preloaders) before content is loaded WebPart - SharePoint 2013

I'm using a plug-in called lightSlider and I notice it doesn't display the whole content on first load until I refresh. I have tried using 1. windows.load, 2. ExecuteOrDelayUntilScriptLoaded, 3. ...
2
votes
1answer
49 views

Async wait till variable is set in the display template

I have a problem with excuting the script in the right order. I have a custom.js which is loaded at the top of the masterpage. The following function is included: var results; var followers; ...
0
votes
2answers
31 views

CSOM not retreiving count of items in a list

I'm trying to get a count of specific items in a SharePoint 2010 list but I keep getting a count of ALL the items in the list. Here is my code: var clientContext = null; var web = null; ...
3
votes
4answers
171 views

Approaching to have a third part web application inside SharePoint 2013

I am working on SharePoint enterprise server 2013, and I am trying to find the best approach I can follow to achieve this requirement:- Our customer has a web page which list their employees info. ...
1
vote
1answer
59 views

How can i add css reference to app parts which is rendered in iframe from the master page

I have been trying to apply the CSS to Office365 App parts, the reference of the CSS is included in the header section of master page(which must not be tenant specific). I tried several codes. One of ...
1
vote
2answers
44 views

The bootsrap glyphs not displayed on SharePoint public site

I recently connected a domain to my public website on SharePoint Online (Developer tenant). When I connected the template with the master page and page layout works flawlessly on: ...
0
votes
1answer
91 views

GetListItems return undefined if query applied

I'm using GetListItems with query on SP page called for eg. "A" and everything is working there. Now I copied same code to second list B and in this list xData.responseXML is empty when I'm using ...
2
votes
4answers
649 views

Display Announcements List in HTML Table on a SharePoint 2010

Consider this as my code for displaying Announcements list in a site page on my SharePoint 2010 site: <html> <head> <script type="text/javascript" ...
1
vote
3answers
4k views

how to get Relative Url using Jquery in Sharepoint Site?

in my sharepoint site first i want to get Host URL(/Site URL ),and user enter Relative URL in TextBox then i want to append that relative url with Host Url Using JQuery and nedd to check that url ...
0
votes
1answer
73 views

Iterate through list items stored in array JavaScript

I am currently using SharePoint 2013 Online and I have some code which I am running to retrieve list items. I can successfully get the list items and store them in an array however I then need to ...
2
votes
3answers
199 views

Get GUID of SharePoint list using jQuery

I have different sites like http://SP.abc.com/SPSite1 http://SP.abc.com/SPSite2 http://SP.abc.com/SPSite3 and each having one Library with the same name called Lib1. Now I want to get GUID of ...
-1
votes
1answer
37 views

Show the images from the shared drive with C# MVC [closed]

I want to show the images from the shared drive, I have published the solution and hosted in the IIS and created one directory named as "Images" which directs to the another server's shared folder ...
1
vote
1answer
2k views

Onchange People Picker

I have a problem changing a people picker in a custom form. Need when writing or changing the value in the people picker I know, I'm using javascript using jquery. Already tried using this code: ...
3
votes
4answers
413 views

Javacript only executed on first page load

I have javascript code included in my sharepoint site. When I load the page the first time, it is executed, but when I load it the second time, it is not running. It get's loaded in correct order but ...
0
votes
1answer
114 views

Auto fill People Picker Column with current user in 2013 in new and Edit Form

I want to auto fill the new People picker column in SharePoint 2013. I want to do it in Edit and New form. It could be current user or anyother user.
1
vote
2answers
78 views

show Doc icon of SharePoint document library using jquery in jqgrid

My scenario is to show doc icon in Jquery Grid for sharepoint document library. My Data is in JSON. here is how i am fetching the data and building the array object and Pass it to JSON.Now in my ...
1
vote
0answers
40 views

SharePoint List filter web part - remember selection jQuery

I have a SharePoint list filter web part connected to other web parts which filters content based on the our clients names, everything it working great but I have one issues: When i select a client ...
0
votes
2answers
55 views

Can't access SharePoint List in document.ready function [closed]

A function (F1) has the implementation to access a SP list. This function gets executed and successfully accesses the SP List if this function is called in the click event of a button on the form. ...
0
votes
1answer
49 views

How to Cascade Lookup columns in sharepoint 2013

I have two lists called "ProjectManagers" and "Projects". In ProjectManagers list I have added some names in Title column. In Projects list I have created a column(Projectmanagernames) which is ...
0
votes
0answers
24 views

Autofill Text Column upon Selecting an Autocomplete Suggestion in New Form in SharePoint 2013

I have autocomplete working as far as it producing suggestions, I would like to fill the text field with the value of the autocomplete suggestion that renders upon entering the first few characters. ...
0
votes
0answers
24 views

How to add header labels between columns in list?

How to add a header label between columns in custom list new form or edit form using jquery or any other solutions? ex: Project name : textbox Project Management and Implementation Phase. ...
1
vote
0answers
28 views

Script Editor Web Part works but main page does not fires script sections

Like many question I have seen the jQuery document.ready works in the web-part during editing but not after I save the page. I found this code on SO and thought I run a couple of test to see what was ...
0
votes
4answers
1k views

How to get the list item column values based on the html drop down and display in the alert box using Javascript?

I have a html dropdown list(team name) which contains three values A,B,C I have a sharepoint 2010 List A which contains Team name and Email. List A Teamname Email A A@test.com B ...
1
vote
0answers
14 views

jquery plugin defaults with ajax.load [closed]

Im creating a jQuery (ajax.load) plugin which triggers the plugin based on a set data-attribuut. The value of this attribute overwrites the default setting. All works fine, but: 1) if the value is ...
1
vote
1answer
63 views

jQuery script for new list item form only works in edit mode

Newbie question. With Sharepoint Online, on a new List I'm modifying the Default New Form and I've added a Content Editor web part. I've linked the Content Editor to a script file that I've uploaded ...
0
votes
0answers
30 views

Running total of choice data from several lists

I'm using SP 2010. I have a few lists that have many of the same set of Choice columns. I want to be able to output a running total of how many there are of each choice from all lists. Maybe in a ...
3
votes
3answers
56 views

How to force PDF to get downloaded

I have developed a Windows 8.1 App using HTML5 and Javascript which is accessing the List, Libraries and Files from my Sharepoint site. Everthing is working fine except one issue i.e. The PDF files ...
0
votes
0answers
33 views

Slideshow web part with clickable pictures

I am looking for building a web part for slideshow with pictures being clickable. As of now I used picture library slideshow web part and it has ability to click on pictures and opens the picture on ...
0
votes
0answers
35 views

SharePoint 2013 List Box view customize web part display

I am referencing a list in a web part on a SharePoint page. In that web part I am using the "Boxed" view. However, I would like to customize the way that box looks a bit. Some examples would be to ...
0
votes
1answer
523 views

Getting error “Object doesn't support property or method 'commitPopup'” when saving a new alert in SP 2010

In my SP 2010 environment, I have a html page, that has an iframe, and the iframe is the page where you create a new alert for a list. In the html page, I dynamically create the iframe and then insert ...
1
vote
2answers
91 views

jQuery - Hide empty field in a list

I have the code that hides empty fields in a list and it works great, the problem is it also hides the edit field and icon which I would like to keep, what would I need to change in the code to stop ...
1
vote
0answers
26 views

Problems with SharePoint DelegateControl

We have created a Delegated control for People Picker. Implementation Details: We have a ascx control which is using jquery Select2 plugin. This control is calling some webservice to get details. ...
0
votes
1answer
39 views

SP 2007 - Make picture library thumbnail unclickable

SP 2007 / Moss: I have a picture library where I want to show the thumbnail in the list view but make it unclickable. Right now when I click on it, it goes to the display form. When I go into the ...
0
votes
1answer
35 views

Jquery mobile rendering issue in webpart page

I have below HTML inside html file which is referred in webpart page CEWP. Though this works fine as independant html page, while rendering in sharepoint , it is somehow showing up data-ico attribute ...
0
votes
0answers
20 views

Change the language of the form data upon on selection of choice field

I have a list with a choice column that shows two values English and Spanish if Spanish is selected then the content below the form say "Hi this form is customized" should be translated Spanish ...
0
votes
1answer
46 views

How to apply a Date Filter on a list with JS

I have a Date Filter webpart connected to a List on page. I am setting the default value of the list with JQuery (it sets that value to the next Wednesday). Here's a jfiddle showing how we are ...
3
votes
1answer
89 views

Security Error while doing REST update on the SP list

I am trying to make update with the usage of REST but I got an error: -2130575251, Microsoft.SharePoint.SPException. The security validation for this page is invalid and might be corrupted. ...