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

learn more… | top users | synonyms

0
votes
1answer
48 views

change function not working

I have a SP app and one of functions is to change background color but the problem is that when I choose a color in drop down there's nothing happening. <select id ="selectColor"> <...
2
votes
2answers
1k views

Script Editor Web Part not recognizing Jquery

I'm trying to test JQuery in a Script Editor Web Part but it doesn't seem to be recognizing the JQuery. Any suggestions would be greatly appreciated. Code: <div id="testing-jq">Jquery Test - ...
1
vote
1answer
49 views

REST - How to get the maximum of a number

A list has an int field named AccountNumber. Everytime a new record is created through the NewForm.aspx I need to fill out the field AccountNumber with max (AccountNumber for existing items) + 1. I ...
0
votes
1answer
122 views

How to get captions to display in Galleria (for Sharepoint)

I'm using this solution to create image galleries in a SP 2013 Online site: http://www.getinthesky.com/2014/04/sharepoint-image-gallery-doesnt-suck/ The script uses the image alt/title tag to ...
3
votes
4answers
833 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" src="/Test_Library/js/jquery-1.9.1....
0
votes
2answers
455 views

Can't properly “get” attachment binary for certain filetypes

I am performing a "GET" request for a file on my SharePoint site because I need to be able to copy a list item and then copy each of its attachments. I am able to use this code to get the associated ...
1
vote
1answer
228 views

How can I check if a value already exists in a list before submitting a form? (SP 2010)

I have a weekly update form that gets updated at the end of every week, but due to people making more than 1 a week I need to ensure that they can only make one a week. So I want to use the week ...
0
votes
0answers
33 views

Increase Length of Stream Data from Client to Sharepoint Custom List

I am trying to update a column in a SharePoint 2013 Custom list but I am getting this error The maximum number of bytes allowed to be read from the stream has been exceeded. After the last read ...
0
votes
2answers
1k views

Get user details from people picker field using JQuery

I want to display user email address instead of user name when any user is selected from people picker using JQuery. In People Picker control when any name is entered I want to display user's "Email"...
1
vote
2answers
185 views

Disable taxonomy field and pick list through jQuery

I have a SharePoint 2013 taxonomy field in my site called "Status" and I want to disable it in the new form of the list. Here is what I have done. var controlHondaStatus = getManagedMetadataField("...
0
votes
1answer
615 views

Reload Page with added parameter

I have created a Page in SharePoint online and it contains an embed code from another service that we utilize. I want this service to track the user that viewed the page within the embed. To do this, ...
1
vote
0answers
25 views

Aggregate tasks across different sites and display them in custom timeline

I would like to build a timeline where I can aggregate tasks which are located in different subsites. While I was searching around I found this post and I thought to use REST. But my biggest concern ...
0
votes
0answers
266 views

jquery datatabes deferloading response is of text/html; charset=utf-8 content type instead of JSON

I am using SharePoint Search API to search SharePoint lists and using jquery datatables to display the data. In my code I have set the row limit to 100. So getting the first 100 items/results is fine ...
1
vote
1answer
112 views

Get uploaded document id using JQuery

I need to get document ID of newly uploaded document using JQuery, any help highly be appreciated. I'm trying below code which is not working and gives error, 404 not found. function ...
1
vote
0answers
323 views

how to show all search results using jquery Datatable?

I am searching lists using CSOM Search API and displaying the results using jquery DataTable. My problem at the moment is that my search returns 2134 rows in total, but search api has a limit of 500 ...
0
votes
3answers
2k views

How to add link in jquery DataTables column?

I have succeeded adding the link in the column but I can't seem to add the url/path in the href attribute. How can I add the path/url and the title in the function below so that the link will be ...
0
votes
2answers
132 views

CSOM Search Api error: Unable to get property 'ResultRows' of undefined or null reference

The code below is working fine in my dev machine but the moment I tried to test it on our customer's server, I started getting errors. I started having errors with SP.js. So I used the <script ...
2
votes
1answer
251 views

How to validate a sum of percentage from multiple fields before creating a new item?

Here's the situation that I'm facing. I have three (number-type) fields which should add up to 100%. What I want is to be able to dynamically validate that after I input the number into the 3 fields....
0
votes
1answer
134 views

How to display Search API results like SharePoint OOTB list with filtering, sorting, paging

I would like to display Search API results like OOTB Sharepoint list with filtering at least. Is it possible to use SharePoint javascript libraries to achieve this? If not, is there any jquery/...
1
vote
1answer
195 views

Display CSOM search results like OOTB list with filtering and sorting

I would like to display Search API results like OOTB Sharepoint list with filtering at least. Is it possible to use SharePoint javascript libraries to achieve this? If not, is there any jquery/...
4
votes
1answer
682 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
315 views

Using csom search api, how can I search lists based on content types?

I have multiple subsites and each subsite has a list called "Articles". Each has two content types. "News Articles" and "Success Stories". I would like to search based on the content types above using ...
0
votes
1answer
65 views

Please correct my javascript code

Please i need help with my script,I want my page to generate thumbnails directly being read from a share point list, below is the already existing code : <script type="text/javascript"> ...
1
vote
3answers
733 views

Can't get People Picker value on 'Edit' form load

When opening a SharePoint EDIT form, I'm trying to capture a people picker value using JavaScript. Unfortunately, the people picker isn't loaded with data when I call .GetAllUserInfo. I'm using the ...
0
votes
0answers
200 views

Javascript - How to get content of HTML of list items in SharePoint 2013

I want to create a PDF file which will contains information of all items in lists related to a specific itemID. So my idea is create an HTML array of that itemID, then post it to server and use ...
0
votes
1answer
333 views

Dynamic fields in SharePoint 2013 forms

I have a custom SharePoint list form where I would like to have country names(from another list) in one row with a check box in front of each row. On checking of any check box in front of country name,...
0
votes
0answers
21 views

How to reference and dynamically display documents based off of input on a form

I'm using Sharepoint 2013. I'd like users to be able to select a series of drop down boxes of categories and have a list of documents automatically filter based off those choices. I'd also like to ...
0
votes
0answers
93 views

Select2 in Sharepoint Application Page

Have a Sharepoint application Page where I use Select2 4.0 for Searchable Dropdown List. On my development PC everythink works fine but on any Client the CSS seems to be broken (Both use IE11). On ...
2
votes
2answers
394 views

jQuery autocomplete with TextFilter and click not keeping selected data

How can I add autocomplete to a textfilter webpart which keeps the mouse selected value as the textbox value? With the current code user start typing then autocomplete list brings up but once he/she ...
0
votes
1answer
50 views

Jquery code for color coding in sharepoint 2010

I need to do color coding to my sharepoint 2010 calendar. The color coding to be picked up from the lookup column "Event Type" where I have 5-6 values which are dropdown. Could any one please help to ...
0
votes
1answer
1k views

How can I make links in the left navigation open in a new tab?

I'm trying to make two links on the left navigation open up into a new tab as they are external sites. It should be as easy as adding target="_blank" to their HTML element but when I wrote some jQuery ...
0
votes
2answers
330 views

How to copy data from one column to another in sharepoint 2010 using jquery

I need jquery code which can copy the data from one column(look up column) and populate into other column (single text line) in the same list in sharepoint 2010.
1
vote
0answers
209 views

jQuery not showing custom error messages in PreSaveAction method of sharepoint 2013 list “New Form”

I am validating sharepoint list fields on PreSaveAction method of sharepoint list new form. I have done some customization and have put some labels with error messages under the sharepoint formfields. ...
3
votes
4answers
2k views

Adding JQuery and Bootstrap references to Master Page

I'm new to Sharepoint and I've a problem trying to add Jquery and Bootstrap references to a MasterPage. Just created a new master page (copied seatle.master to seatle2.master) and wanted to add: <...
0
votes
0answers
81 views

SharePoint 2013 Dynamic JQuery Web Part Page Taxonomy and Missing Field Errors

I tried to implement this code from Mark Rackley -- it's basically a dynamic lookup. Just an FYI, all of the fields I'm using are managed meta data site column 'created from existing columns' inside ...
0
votes
0answers
399 views

Sharepoint Server 2013 Hide/Show jquery/sputility not working on a New Item List Form — no clue why (answered)

The Point When someone chooses "One" as the value of the urlTotal column, it will hide urlTwo and urlThree columns. I pasted the script link from my site assets folder into a content editor in the ...
1
vote
1answer
209 views

$orderby not working with lookup column Id

I want to sort order my REST results data with a lookup column's Id in my SharePoint list. I tried using $orderby in my REST query, but got no luck. can anyone of you help me out with this ? ...
1
vote
0answers
148 views

Click promoted links tile to reveal another webpart

I have two sets of promoted link tiles. I've placed each set of tiles in their own webpart on a webpart page. What I would like to do is: 1. Hide the second set of tiles, and 2. Reveal the second ...
0
votes
0answers
67 views

Build url with current item's parameters for button on default form page

Using only the browser (No SharePoint Designer) on a default form (DispForm.aspx) I want to add a button and specify that button to go to a certain page, and append the paramerters of the current page ...
1
vote
1answer
173 views

Javascript code to write JQGrid data to excelsheet?

I am working on JQGrid, I found one solution but it is writing whole JQGrid on excelsheet. But I only want JQGrid data on excelsheet. My JQGrid data consists of sharepoint list data. So can anybody ...
0
votes
1answer
447 views

The condition Greater Than (>) cannot work in my jquery code [closed]

I need to check the number of characters in class span, then change CSS according to the number. For example, if length of title is less than 29, the title color should be yellow. If length of title ...
3
votes
2answers
154 views

AJAX Request not firing at Document.Ready

Had a question regarding an AJAX request I'm making via jQuery in my SP site page template. The code in question: //writes CSS classes to body script based on explicitly checked group membership ...
0
votes
1answer
773 views

Prepopulate NewForm.aspx Lookup DropDownList SharePoint 2013 with Javascript

In SP2010 I used the following JavaScript(JS) in a Content Editor on the NewForm.aspx page. This was used to prepopulate a lookup dropdownlist with a value from the Query String Parameter. Now that ...
0
votes
0answers
225 views

GetListItem SPServices don't retrieve data

i'm trying to retrieve data from Sharepoint using SPServices. I created a list called "values" with two field: "Title" (text field) and "values" (numeric field). I created a js file linked to a ...
2
votes
1answer
370 views

Use filtered URL in Ajax call to return JSON data

Currently I am working on sort of a JavaScript function library for all things SharePoint to pass around to some of the SP developers at my work. The idea is to just take some simple features I see ...
1
vote
1answer
1k views

Jquery is not loading properly in Internet explorer 11 browser until page refresh

Im using this jquery plugin called Slidorion with SPServices. On firefix,Chrome when the page loads first it works all good. But in IE 11 it doesnt work on first load until i refresh it. I have ...
0
votes
1answer
331 views

http:<server>/_api/web/webs 401 unauthorized

i'm using a jquery script embedded in a SharePoint page. i am able to load the results of a /_api/web/webs call to REST as myself (site collection admin). However, anyone that visits the page that is ...
0
votes
1answer
214 views

Group by field using jQuery

Say I didn't want to use the Group By option in an out of the box view to group my list by a certain field. Is there a way to achieve this using jQuery, JavaScript or something other front-end code?
5
votes
2answers
119 views

How to display counter

Is there a way to use jQuery and Css to pop up notification to user's breadcrumb area for user's open Tasks. I can drop a web part which gets all the pending tasks for browser's user. I see following ...
0
votes
0answers
34 views

SP 2010 - Freeze Header Row - Cannot get solutions to work

I have been trying to implement a solution to freeze the header row of a list longer than I care to admit. I was able to get this solution to work: [http://techtrainingnotes.blogspot.in/2013/03/...