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

learn more… | top users | synonyms

0
votes
1answer
21 views

Hide and display things if user member of group

i have group, were i have some users, if the current logged in user is a member of my group then display that, if the user is not a member of the group then dont display. Right now it first says the ...
1
vote
2answers
36 views

jquery.done runs before when - deferred promise

I have placed a SEWP in an editform and the code is supposed to do the following: check if the logged in user is site administrator and web administrator - if not then hide a specific field. These two ...
1
vote
1answer
18 views

Custom calendar colors when move forward or backwards in months

I've been able to get custom colors working on my calendar, but when I go to previous month or next month the colors don't persist. To attempt to remedy this I've tried making a click event to get ...
1
vote
0answers
13 views

Can't load google maps JavaScript file in SharePoint hosted app

I am building a SharePoint hosted app where I am retrieving the user's location in coordinates. I am trying to reverse geocode these coordinates using google maps api. But I can't load the google maps ...
0
votes
1answer
22 views

Javascript + SPServices while executing the code doesn't show a loading modal nor modifies a button attribute

basically this is my code $('#saveButton').click(function(){ showLoadingDiv(); $('#saveButton').attr('disable','disable'); }); function showLoadingDiv(){ ...
0
votes
0answers
19 views

Retrieve data from listdata.svc of an FBA site using jquery

I am trying to retrieve data from listdata.svc of an FBA site using jQuery but no success. Here is my code: <script> $(document).ready(function() { //use the getJSON mehtod of ...
0
votes
3answers
23 views

SPServices getListItems CAMLQuery Issue

Attempting to retrieve items from a list where field School_id is equal to a school_id javascript variable, and using SPServices GetListItems operation. If I run the script without the CAMLQuery: ...
0
votes
1answer
11 views

SharePoint 2013 Search - Open PDF in new browser

I have some jquery(as suggested by someone on StackExchange) to open PDFs in a new browser window from the out of the box search restuls web part. The code works in Chrome and Firefox but not IE8. ...
0
votes
1answer
28 views

How to get SharePoint ID given only item URL?

Looking for the simplest possible solution, but needs to be JavaScript/jQuery if at all possible. I have an XML document that I am transforming using XSLT to render an HTML page. This XML document ...
0
votes
1answer
12 views

Accordian Jquery Events for Customised List forms

Want to understand how do we differentiate Submit/save event in customized list forms. eg: When we are in Section 1 the submit/save should correspond to data being submitted in section1 when we are ...
0
votes
2answers
42 views

How to collapse Ribbons bar when page is loaded?

When user click on an item display view (DispForm.aspx) the "View" ribbon is always expanded by default. It is annoying sometimes. How can I to make it collapse (not hide) by default? When user need ...
0
votes
0answers
18 views

One script blocks other

I have been developing a workflow app on our SharePoint 2013 site. I have two scripts that I want to add to the custom new item form. Each of them (if only one is present on the site) works fine. The ...
0
votes
0answers
27 views

Get listitem through another listitem on the same row (select changed)

I'm sorry about the mess! but here I go My sharepoint list has 3 columns= Title, Priority, Status I want to get all the Status items into a dropdownlist, and when i click any of these Status items i ...
1
vote
0answers
10 views

Save the Webpage content as document to Document library in SharePoint 2010

We have a requirement to save the webpage content as document (PDF/XPS/Image) to SharePoint Document library on a button click. Only client side scripts (Javascript/Jquery) are allowed to acheive ...
0
votes
3answers
66 views

jquery to color code a line with negative value in a SP list

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.0/jquery.min.js"> </script> <script type="text/javascript"> $(document).ready(function(){ ...
-1
votes
0answers
17 views

Need to fix header when scrolling down [closed]

I need to freeze the header and first column of an html table.How to achieve this.Should I use any plugin?
0
votes
2answers
41 views

Should we consolidate all form customization javascript into one file?

On the project I am working on (SP2013 on-premise), almost all the form pages (Newform.aspx, DispForm.aspx and Editform.aspx) have added a Script editor webpart with JQuery to customize form layout ...
1
vote
1answer
26 views

How to add Font awesome and jQuery Link in SharePoint Master Page or any other page

I am using SharePoint 2013, I want to use font awesome in my pages But when I put the link in Master page or in any page, when I want to access the page it give message like: Show All content My ...
0
votes
1answer
76 views

Jquery fullcalendar - how to make current month (days) unselectable

I am building a SharePoint-hosted app in SharePoint. Basicaly it is a time planning app. I used a jquery calendar plugin (fullcalendar). My question is I have a "lock" button. When user clicks the ...
2
votes
0answers
12 views

Restrict Adding User to SPGroup Based on a User Property

I have an SPGroup that has permissions that are common to several users but my requirement is only one user (of a given parameter) should be in this SPGroup. For example, I have a list of Company ...
2
votes
1answer
39 views

Forbidden error when trying to copyTo document from list to Document Library

I am on a SharePoint 2013 cloud setup (but for testing purposes, it is a prem server). I am customizing an Edit form for a list, so that when a user checks a box the preSave event will copy the ...
0
votes
2answers
19 views

Conditional formatting on list based on a user/person/AD entity

I have found many how-to guides on JavaScripts to render a colored line in a SP list based on a word in some column. I tried it with a 'person' (a people column) and it did not work. The value in ...
1
vote
2answers
30 views

SharePoint 2010 - Jquery - Installed on Server

My company has jquery installed on every SharePoint, and while I have years of SP experience including design, very new to jquery. My problem is I need to use a jquery solution to freeze the ...
0
votes
0answers
28 views

Calling Cross Domain Java Based web service by JQuery AJAX from SharePoint 2013

I am trying to call the Java based Web Service by Jquery Ajax, The URl of the Service is "http://vmABCapp01-staging.domain.com:7083/UserIDCheckService/CheckUserIDServiceImpl". The Jquery Code to ...
0
votes
0answers
5 views

How to view xml code of a list view when multiple filters are applied

Is there a way to get xml data when multiple filters are applied to listview on a sharepoint page. For single filters its working fine. code: var ...
0
votes
0answers
20 views

Filtered lookup using SPServices

I have 3 lists: Schools, Interactions, Contacts In the new form for a Interaction item I have a lookup field displaying a long list of contacts, however I need to filter this list to only display ...
1
vote
0answers
14 views

Function call in selection event

I want to call the following function in a selection event function name calcDay(). var p = getList("Compulsory Leave"); When i put it inside the selection event function it generated error : p is ...
1
vote
1answer
18 views

Check SP datetime control is empty or not

I want to check whether a Sharepoint datetime control is empty or not. How can I do this using jQuery?
0
votes
1answer
36 views

Get the user name

I am working with SharePoint 2010 lists and I am trying to populate the list data in a page using a text box and button where in text box I enter the name of the person and click on button which gives ...
0
votes
0answers
16 views

Reading/Writing to excel

I have a requirement to read/write to excel. I am aware that it can be achieved by using Sandbox solution or provider hosted app. I am trying to do this via jquery. I came across this site which looks ...
0
votes
2answers
37 views

Loop through Radio Button with jquery and get values

I'm trying to loop through radio buttons on a form and get their value to compare to another value. If the values are equal it will check the radio button. The issue I'm having is that the loop only ...
0
votes
0answers
8 views

How to Attach Information to the Beginning of Each Paragraph in a Single Entity?

I am using SPServices to append information from a SharePoint (2010) list onto a page. This information is a summary written by a user, so it can contain multiple paragraphs or it can contain one, ...
0
votes
1answer
20 views

JQuery Hover not Working in SharePoint 2013 Calendar list

I used following URL for loading all resources item in SharePoint 2013 Calendar List and Its working fine as per my expectation. ...
0
votes
2answers
41 views

How do I get custom input values to save when I click the save button in a form

I currently have a list form that I am included custom fields on. I'm using jquery to store the values. To store the values I've create a function that will be called when the Save button is clicked. ...
0
votes
1answer
26 views

Get image from SharePoint by URL

I try to get an Image from SharePoint by using JavaScript code. I have the complete URL of the image which is stored in a SharePoint Assets Library. My app is SharePoint hosted. This code does not ...
0
votes
1answer
20 views

SCRIPT5007: Unable to set property 'ListId' of undefined or null reference

I am working on an enterprise wiki site collection, now when the user edit the properties of the page he will be redirected to the following page :- so i wanted to hide all the fields except the ...
0
votes
2answers
26 views

Issues with hiding <tr> elements in sharepoint form using jquery

I'm running into issue trying to hide elements in my sharepoint NewForm. I've added the jquery script to my NewForm <script src="/SiteScripts/jquery-ui-1.8.24.min.js"></script> I have ...
0
votes
0answers
80 views

List Form Jquery Save Button (validate, save, redirect) error. Is there anything wrong with our syntax?

We have a custom list form that we are trying to save, validate, and redirect. We can get the button to save and validate, but not redirect. And vice versa. We have tried several variations on the ...
0
votes
2answers
64 views

Problems while Accessing SharePoint List items in SharePoint 2013 using REST API in NAPA tool

I am trying to access the list item using an APP in my office 365 share point hosted trial environment.It seems like the call REST call is failing, the alert in error function is getting executed. ...
1
vote
1answer
48 views

Get the permission list for a group using jQuery AJAX requests REST API

How can i get the group permissions for a list using an AJAX request with the REST API? I could add or remove permissions for the group but i want to know the actual permissions of the group over the ...
0
votes
2answers
47 views

Hide field after checking if user is admin - deferred promise?

I am attempting to hide a field from a newform, but only if the user is not a site collection administrator and not assigned full control of the (sub)web currently on. I am not well experienced in ...
0
votes
1answer
45 views

Add Item to List on JSLink with jQuery

I have a JSLink on my Webpart Custom List, and I need to add an item before render a view. (function () { var overrideCtx = {}; overrideCtx.Templates = {}; ...
0
votes
0answers
19 views

How can I take some user input (html or markdown), transform with XSLT, and write the resulting file to a library?

Not looking for a solution here, just something to get me started in the right direction. I would like to create a page that takes some user input from a textbox (markdown would be cool, but HTML is ...
0
votes
1answer
11 views

Need help rendering .prepend text in SharePoint

Folks, I am trying to use the jQuery .prepend method to display some text on the top of a web part page (underneath the main header). Unfortunately, the text is not rendering across the hole page, ...
2
votes
1answer
26 views

Is there any api for Microsoft Global Address list?

I would like to get the name of a user from the global address list, using their email address. How can I do that?
0
votes
1answer
41 views

Retrieve SP-List data cross domain via SPServices?

I am trying to retrieve data from a SharePoint List hosted in a different server/domain. We are still running SP 2010 but about to migrate to 2013. I am not sure if jQuery.SPServices and CORS are the ...
0
votes
1answer
40 views

get the title of the list

I have a list with title as one of the column which is of clickable and am using jQuery to show the list items in one of my SharePoint page I am getting the name of the title but unable to make it ...
0
votes
0answers
33 views

Ajax call stopped working

I wrote a code to get userProfile from sharePonit in jquery/javascript. few days ago, i tune up my internet speed and the code simple, stop working. I got this conclusion after put a break point and ...
1
vote
1answer
30 views

Get current user's wiki rankings

I am using SharePoint 2013, cloud version. We are very limited in what we can customize. I have created a site that uses the Enterprise Wiki template. A feature that was requested is to show a list ...
3
votes
2answers
91 views

jQuery not working on 2nd page of SharePoint list

On our SharePoint list, we have anchor tags opening in a new window via: <script type="text/javascript" src="/SiteAssets/jquery-latest.min.js"></script> <script ...