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

learn more… | top users | synonyms

2
votes
1answer
74 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
57 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
37 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
177 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
73 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
45 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
110 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
690 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
93 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
237 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
46 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
3k 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
515 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
226 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
101 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
45 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
56 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
52 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
33 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
35 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
34 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
15 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
81 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
34 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
69 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
35 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
47 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
534 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
96 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
27 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
44 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
36 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
56 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
98 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. ...
1
vote
1answer
53 views

Rest api add to select append sharepoint list is undefined

If alert view then OK, but is add code select append, not working - undefined Here is code: function getListItemById(webUrl,listName, itemId, success, failure) { var url = webUrl + ...
1
vote
0answers
29 views

Change image name before uploading it to SharePoint library using Javascript or Jquery(Not Drop Zone control)

I would like to change the name of the image before uploading it to SharePoint document library. Below is the code i have written when an image is uploaded using HTML upload control. When the image is ...
1
vote
0answers
30 views

SPServices - open “view item” modal

NOTE: I'm begginer in SharePoint! Ok so my situation is like that: I have a list of Users, with multiple fields. For example there are fields like: Name, Title, Office, Phone and Email. Pretty ...
0
votes
1answer
31 views

Building a To-Do List with jQuery and Local Storage

Hi i am working on a project to do task list where every thing work fine but i am not able to store data in list in following link data is store in var data = ...
0
votes
0answers
19 views

Easy Tabs in SharePoint 2010 & preservation of easy tabs for SharePoint 2013

I am looking into ways to implement easy tabs for the display of a master glossary for my team. I have a code but I am not sure where to put it either in the content editor web part or in the general ...
0
votes
1answer
37 views

Disable text box for few seconds after success message

I'm trying to disable a textbox/and button for few seconds after the "Send button" has been clicked and then enable it again as well empty the textbox. But it doesn't work out. I have an onSuccess() ...
4
votes
1answer
563 views

CSOM Search API does not return all the results

I am having a problem with the code below. It is not returning all the rows/items which are found in different lists. The total number of items is 28, but the code below is returning 19. I have set ...
1
vote
1answer
23 views

Inconsistency in printing SharePoint list items using jQuery REST

I am retrieving data from my SharePoint site and printing it to a html table. The problem is that at times, when I print the data I fetched, my code fails to print all the data I expected. I have ...
1
vote
0answers
50 views

Formatted count by topic

I have been searching for days and I have been unable to figure out if my wish is possible. I have a large list that contains an inventory of active items being utilized, with each item having an ...
1
vote
2answers
236 views

Populate a choice field when another choice field changes

I have two choice fields. When choice field A is equal to Commercial then choice field B should change to Staged. I've found this hide function and was trying to change it to fit my needs but I'm ...
1
vote
2answers
201 views

Is mQuery stable to use instead of using jquery in Sharepoint 2013 and higher?

In my SP2013 environment, I use jquery, but had the issue of the $ clashing with Sharepoint's own $. The original thread was here Does Sharepoint 2013 really have a jquery conflict with $? In there, ...
3
votes
4answers
2k views

SharePoint 2013 / bootstrap.js / only working in edit mode

I am trying to get the twitter bootstrap framework running on our SharePoint 2013 intranet page. When I'm editing the page, the code is working as expected. After saving the web part page, the ...
0
votes
0answers
28 views

Hide Droplist with Jquery

I am working with Sharepoint 2010, i am trying to hide different fields according to role of the current user. My code only works with normal text fields, but it doesn't work with drop list, so i ...