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

learn more… | top users | synonyms

0
votes
0answers
7 views

Change Site Collection Home Link in Global Navigation

I have a script using jQuery that allows me to change the Text of the Site Collection Root in the Global navigation. By default, I always set it to, "Home" using the following code: <script ...
0
votes
1answer
1k views

SPServices - GetRolesAndPermissionsForCurrentUser

I have a list where one group of users is not allowed to delete items but they have view and edit permissions. All items in the list contain an attachment. However, users are not allowed to delete the ...
0
votes
1answer
13 views

JQuery & Team Visitor permissions

Problem: jQuery undefined if user logs in and is put with 'Team Site Visitor' group. If I change the user to be in 'Team Site Member' group the jQuery gets loaded correctly and all subsequent custom ...
0
votes
2answers
18 views

Create a Homepage for TeamSite with SharePoint 365

What I am doing is to set the Home.aspx as the Homepage for my TeamSite. I've added a Web Part as Script Editor and put the jQuery script as below to remove or hide the left menu and the Home. ...
0
votes
2answers
31 views

Can I get relative path of current site with single function?

I am trying to build a breadcrumb using JS and SPServices. When I browse for a page like http://sharepoint.com/sites/News/pages/f1/f2/default.aspx the breadcrumb should show SharePoint.com > ...
1
vote
1answer
693 views

Sharepoint custom list: Hiding and showing column based on drop down dependancy

I'm trying to add javascript to the dispform.aspx page of my form to hide certain columns/fields based on a dropdown menu. When I add the code to the CEWP it simply adds text above the fields; the ...
0
votes
0answers
16 views

SharePoint 2013 - Display Hyperlink Field using JQuery/Datatables

I'm trying to display a Hyperlink field in a table using JQuery & Datatables. However, I'm getting the following error message response: DataTables warning: table id={id} - Requested unknown ...
1
vote
1answer
958 views

SPServices Autocomplete and dynamic CAML query

I have two Text filter web parts (Project and Customer Name) with Apply Filters button for one list. There is a SPServices.SPAutocomplete on each and it works great. Now, I want to show the values in ...
0
votes
1answer
583 views

A script on this page may be busy, or It may have stopped responding

there is one webpart on page that rotate the images so i added a jquery to rotate images and its working fine but after sometime it gives error like A script on this page may be busy, or It may have ...
0
votes
0answers
6 views

Cascading Dropdown using JSLink

I have created custom dropdown in newform using JSLink. Both are working fine. Now i want to make cascading dropdown. I searched a lot but i got using SPServices and other third party JS. I want to ...
0
votes
2answers
500 views

Ajax Odata 400 bad request

I get a 400 Bad Request from this code, hard to debug, what can the problem be? function saveSelectedAnswer(radioValue) { var requestUri = _spPageContextInfo.webAbsoluteUrl + ...
0
votes
0answers
15 views

Can I load the contents of a webpart from another site?

Say I have a content editor webpart in one of my sites. Is it possible to load that webpart's content from another site inside the same install of SharePoint ? I tried using jQuery load with the ...
3
votes
2answers
519 views

Get the node value using js or jquery in SharePoint Designer

<tr> <td width="25%" class="ms-vb"> <b>Inclusion:</b> </td> <td ...
0
votes
0answers
7 views

Insert value in Publishing Hyperlink column using ResT API [duplicate]

I have a "Hyperlink" field type of "Publishing Hyperlink". I want to save data into list using JQuery. But this field return an error. var item = { "__metadata": { "type": ...
0
votes
2answers
952 views

how to access input element in parent from inside iframe in sharepoint

I have the following jquery code and I have inserted it in an html page where I call it inside an iframe in a SharePoint page. I am using this line of code to get the id from the control in the parent ...
0
votes
1answer
25 views

How to insert value in Publishing LinkField using JQuery?

I want to save data into list but it gives me error when used following code. var item = { "__metadata": { "type": "SP.Data.ListNameListItem" }, "Hyperlink": { Url: ...
0
votes
2answers
21 views

SharePoint Online Plan 1 and jQuery

I'm working on a SharePoint Online Plan 1 Site Collection in preparation for our Office 365 deployment and I'm getting a lot of requests for small UI changes and tweaks (make certain Library Columns ...
0
votes
1answer
14 views

jquery code that searches for an item in a list

Looking for jquery code that searches for an item in a list, like ID or Title.
0
votes
3answers
128 views

Is it possible to have a lookup field with autocomplete feature

I have defined a lookup field with multiple values over a contact list inside my SP 2013 team site, and by default I got a select list as follow:- So is there a way to have the lookup field with ...
0
votes
1answer
31 views

Disable column header filter and sorting

I am using SP2013 on-premise. On a list view all the columns' header come with a filter+sorter function. It is not useful on some columns (e.g. photo, which show a picture and no point to sort, and ...
0
votes
0answers
6 views

using slidorion plugin slider in sharepoint

Im using this jquery plugin slider in Sharepoint.When i hardcode the html inside a script editor or CEWP it works well. But when i load the html dynamically from a list. It doesnt work and render ...
2
votes
2answers
591 views

Get email and name from people picker SharePoint 2013 online

I've tried retrieving data from a multiple people picker field on a SharePoint 2013 form in numerous ways, the best I've done is getting the display name. If it all possible i'd like to retrieve the ...
1
vote
1answer
2k views

set multiselect lookup column using jquery

I have a Multi select Look up column which as you all know is a control with two list boxes and "Add or Remove" Buttons. The user populates the right-hand side of the control with some values by ...
0
votes
1answer
683 views

SPServices SPGetLastItem returns last id for current user

The function SPGetLastItem from SPServices returns last id for items that only the current user has created. I want a function that returns the last id for any user.
0
votes
1answer
19 views

Set Audience targeting on left navigation with Javascript/Jquery

I want to set Audience targeting on left navigation bar of SharePoint, though there are around 50 links on which i need to set the targeting on. Every time I take a template and restore it, I manually ...
0
votes
1answer
27 views

Change value when item is approved

I have a MySQL table which contains the name and the quantity of a material. I access it from a Sharepoint page using Javascript and JQUERY Ajax (jsonp). The user adds a request to retrieve a ...
0
votes
2answers
29 views

Change NewFrom using JSLink

I have to customize the NewForm and EditForm using JSLink. Perhaps there is another way of doing this. So what I would like to know are these: How can I make a field required or not depending on ...
0
votes
1answer
46 views

How to use 3rd party JQuery file uploader with SharePoint

The OOTB attaching of files in a share point list is a one by one process. I wanted to create a front end solution which would enable multiple attachment of files at once. I researched a lot and the ...
0
votes
3answers
57 views

SharePoint online jquery link

I'm getting a jQuery undefined error because my library isn't loading from CDN. On my html master page I've got this reference. I'm a little new to SharePoint branding and have seen lots of ...
1
vote
1answer
515 views

How to add link to Title field when list data is fetched using REST API and rendered through Datatable.js

<table width="100%" cellpadding="0" cellspacing="0" border="0" class="display" id="example"> <thead> <tr> <th>Title</th> ...
1
vote
1answer
37 views

Select All check-boxes in choice field on document library form using jquery

I have a document library form on which there are two multiple choice fields as shown in below image. Now when user select the option "Select All" in "Vertical" field all check-boxes in "Vertical" ...
0
votes
2answers
36 views

How to avoid that the jQuery file loads after a custom js file? Sometimes I got $ not defined?

I have add in the master a jQuery registration and a custom js file in the header. After the custom js file I start running a function which is existing in my custom js file. Sometimes I got the ...
0
votes
1answer
20 views

Access php through jquery ajax in Sharepoint

I have the following code within a Sharepoint page $(document).ready(function(){ $.ajax({ type:"POST", url:"http://somesite.ro/helper.php", dataType: 'jsonp', // Notice! JSONP ...
0
votes
0answers
16 views

Sharepoint 2010, Jquery to get User Image from mysite on seperate server

I am working within an environment where I only have HTML rights and cannot run shell commands or access master pages. There are 2 sites. a SharePoint 2013 mysite and the 2010 SharePoint site. ...
0
votes
1answer
19 views

jQuery 2.0.2 doesnt work in IE8 - code compatible? [closed]

I know jQuery 2.0 doesn't support IE8. Is there a way to change the j Query code in our JS file, to ensure jQuery 2.0.2 for compatibility with IE8?
1
vote
1answer
9 views

Changing standard SP Spinner “working on it” in a Modal Dialog

Im trying to find way to change all standard green spinners in our custom SharePoint 2010 solution to another gif. I dont want to replace the actuall gif-files in the SharePoint Hive as these will ...
0
votes
0answers
21 views

Add multiple items to a list

Need a form like a datatable where a user can add multiple items and the press submit, this then creates individual items in a list. The fields are of different types which include lookups. One of ...
0
votes
0answers
15 views

Jquery hide/show function in Sharepoint 2013 working on one laptop, but not the other

I have a simple jquery change method which will hide or show form fields based on a selection from a dropdown. the issue i am having is the jquery function is working on my laptop and 5 others, but ...
1
vote
1answer
342 views

How to get the distinct values from sharepoint list using GetListItem and bind to dropdown?

I am Passing the XML for getting List item and binding to dropdown. Here i have shown the code.. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ...
1
vote
1answer
40 views

Open check in form with JQuery

It's possible open the check in form with JQuery? I need do this to force the user to do check in in the document.
1
vote
1answer
271 views

How can I display user picture from sharepoint in datatables

Sorry if this is stupid easy but I'm trying to display user pictures from sharepoint in datatables. I can see the link in JSON data coming back from the ajax query in the "Picture" field so I added: ...
1
vote
1answer
722 views

Getting Calendar items on Office 365 using REST API

Hi SharePoint Ninjas, I am having trouble with a REST call using jQuery on Office 365 and was wondering if you guys have ever experienced something similar and could give me some hints? What I am ...
1
vote
1answer
67 views

Dilemma… jQuery, SharePoint publishing page layouts, and dynamic page properties

Dilemma: I am trying to create/edit a publishing page layout with jQuery accordions that pull in dynamic page properties. When I implement my solution, it works; however, I am no longer able to edit ...
0
votes
3answers
28 views

jquery appended option not posting in default new form

we have a list for travel schedules. We have a dropdown for Monday to Friday then individual mulitselects for each day. i am trying to use the following code to auto populate the selected item for ...
0
votes
1answer
20 views

Working with SharePoint mobile view and jquery mobile

I have a SharePoint Online site, https://[mysite].sharepoint.com. My goal is to have a couple pages on this site that utilize jquery mobile to give an app-like feel to the user. As it stands, I have a ...
0
votes
1answer
716 views

Hover effect over an image in SharePoint 2010

I would like to add a kind of hover effect over an image. My source code in JavaScript looks like the following: _spBodyOnLoadFunctionNames.push("color"); function color(){ var $th = ...
0
votes
2answers
50 views

Need to pause While loop

I am using SharePoint 2013 in the cloud. Due to restrictions in the site, I am using JSOM and jQuery to customize a site. I have modified a Document Library edit form to create Tasks for each person ...
0
votes
1answer
30 views

color coding in a list view is lost when any of the columns are arranged by clicking on the column header

I have some JavaScript that will colour row in a SharePoint list View web part depending on values in certain column. This part works fine and the rows are coloured correctly upon page load. The issue ...
1
vote
2answers
77 views

Custom Jquery script to hide fields inside my New & Edit form is not working on Iphone safari web browser

I have defined the following jQuery script to hide some columns inside my Edit & New built-in forms:- $( document ).ready(function() { $('.ms-formtable nobr:contains("Item ...
0
votes
0answers
36 views

modify the min length for the “People or Group” auto complete

i have a "People or Group" field inside my team site, and currently the built-in autocomplete will work after typing 3 characters. so how i can modify this to allow the autocomplete to work after ...