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

learn more… | top users | synonyms

1
vote
1answer
97 views

sharepoint profile picture

Is there any possibility to change profile picture or uploading a new profile picture in SharePoint Online by using SharePoint hosted app, via JavaScript or jQuery? How do you solve it?
0
votes
1answer
22 views

SP WebPart Jquery reference

Has anyone a reference to Jquery file in Visual web part to show. I need to se how it looks like. Mine looks lke this : <script src="c:\users\wss_setup\documents\visual studio 2013\Projects\...
3
votes
1answer
100 views

.find().filternode().each() v/s .find().each()

I came across a lot of articles and discussions by Marc D Anderson and Steve Workman regarding performance gains using .filternode(). I also read an article by Steve Workman I also tried to ...
0
votes
0answers
114 views

Programatically submit list quick search query in SharePoint online

I'm trying to enter a string into the quick search box in the list header and submit the search to filter the list. This image shows the search box I'm talking about: I'm using jQuery to select and ...
1
vote
1answer
54 views

jQuery Blur function in Content Editor web part in SharePoint 2010 List form

Want to know how to use a jQuery blur function for my SPNumberField, single line of text etc fields.I do not have the ID of the field, also how to get the ID for using the same in jQuery function? ...
0
votes
1answer
333 views

How to set a value in a Choice Field based on the text box change SP 2010 in list newform.aspx

I am having few fields like single line of text, choice field, rich text on my customnewform.aspx of my SP 2010 SPList. Now if I enter a value say USA on the text box, I need to set the dropdown/...
0
votes
0answers
63 views

AutoLogonPolicy with XMLHttpRequest() or Ajax

I would like to open a website with XMLHttpRequest / Ajax to get data and paste it to a SharePoint list. The site requires login and I see that • it starts with the original url www....
0
votes
3answers
890 views

Get the value from Textbox and dropdownlist in NewForm.aspx using jQuery and JavaScript

I am trying to retrieve the value of Textbox and dropdownlist in NewForm.aspx using jQuery and JavaScript when PreSaveaction is called. Below is my code: But both cases, I am not able to get values ...
2
votes
1answer
442 views

Sum Calculated Column (SP 2013)

There is a very nice solution below from ViewMaster (http://www.viewmaster365.com/#/Create/Sum) that involves some scripting within the formula of a calculated column itself. However, the Sum will be ...
0
votes
1answer
282 views

Date Validation on PreSaveAction in SharePoint 2010 list newform.aspx

I need to validate few dates in my SP 2010 customnewform.aspx page. I added the content editor web part, added the script but not able to get the result. ReqstDate : Should not be greater than ...
0
votes
1answer
232 views

Expand Collapse a row in table [closed]

I have 3 rows in my table of which I need to have expand collapse functionality on 2 rows i.e. 1st and 3rd row. I was able to comeup with something on JSFiddle (https://jsfiddle.net/01u0k7o3/). ...
0
votes
0answers
132 views

Validate checkboxes and textboxes in SP 2010 List NewForm.aspx on Save Click -PreSaveAction

I am having a new form created on my SP 2010 List, mycustomnewform.aspx and i have some 6 checkboxes and 6 textboxes.Now I need to validate these textboxes' value when a checkbox is checked. I ...
0
votes
1answer
262 views

How to create people picker using jquery [duplicate]

How to create people picker in sandbox solutions using jquery? I need design part also. Any idea?
0
votes
0answers
36 views

Get broken inheritance items via spServices (SharePoint 2010)

Is it possible to get all items of a list, where the inheritance is broken? There´s an additional property for items via CSOM (HasUniqueRoleAssignments), but my task is to write code which can fetch ...
0
votes
1answer
985 views

Set value of peoplepicker using javascript

I have a newrequest.aspx page in a Sharepoint 2013 App with a form on it to get details from my users to submit a leave request,this is then submitted to a Sharepoint list to hold all of the requests ...
0
votes
2answers
492 views

Bind the DateTimeField field with Today's date using SPServices and jQuery

How to bind the DateTimeField field with today's date using SPServices and jQuery ? I cant use the default Today to set the column in the Sharepoint UI to use Today's Date as the default value in my ...
0
votes
1answer
219 views

Progress Bar on DropDown Selected Event

I have a dropdown list in my SharePoint Webpart and upon selection of a value from the dropdown list (selectindexchanged) I am showing a aspnet treeview. The issue I face is the TreeView control takes ...
0
votes
0answers
41 views

DOM Manipulation Improvement

I am using jQuery selectors as post processors in my SharePoint application - jQuery post processing works out well in terms of DOM manipulation but the performance is extremely slow. Can anyone ...
1
vote
1answer
361 views

Javascript running before SPServices call is complete

Note: I am a beginner and new to SharePoint and not a regular with SharePoint based projects. Kindly refer commented out code only if needed. I am building a sample page and displaying it on ...
0
votes
0answers
52 views

JavaScript broken after upgrade to 2013

We have upgraded from Sharepoint 2010 to 2013 and my assession number function stopped working. Need some help. Number is not generating <script type="text/javascript" src="/_layouts/js/...
2
votes
1answer
349 views

Keypress enter key does not work in Chrome

I am replacing the default datepicker for the jquery picker and I have a Javascript code to handle that. I also have a keypress event when I go to the element with tab and press enter it show me the ...
0
votes
1answer
94 views

Set a calenders Start/EndTime on the NewForm using Javascript/Jquery?

I'm trying to set the start- and end time when creating a new event in a calendar to 00.00 for both fields but i had little to no success as i know very little about client side coding. I've been ...
0
votes
1answer
213 views

Display an Announcement List inside <div> tag

Here is my code to fetch Announcements List and display it as HTML table: <script type="text/javascript" src="/Test_Library/js/jquery-1.11.3.js"></script> <script type="text/javascript"...
1
vote
2answers
296 views

Javascript code for Autocomplete/suggest function for a textbox

I have a question with around 1000 possible choices (we need to know a email in a share point list). Because a drop down list would be to long, we would let the users submit their answer in a text ...
8
votes
2answers
803 views

Use SharePoint 2013 “Working on it…” during ajax call

I'm trying to use the SharePoint 2013 "Working on it..." during ajax call. This is the code: function ShowWaitDialog() { SP.UI.ModalDialog.showWaitScreenWithNoClose(SP.Res.dialogLoading15); } ...
0
votes
1answer
86 views

How can I respond to a click event from an HTML button server-side?

I'm creating a button on a Sharepoint page dynamically (in C#) in my *.ascx.cs file: Button btnSave = null; protected void Page_Load(object sender, EventArgs e) { base.OnPreRender(e); ...
0
votes
0answers
69 views

Async webpart - the best approach to access outer data source from webpart

I've already tried to search the web but I always get to some point from which I don't know how to get further. I have a Visual web part which needs to load data from external sources (different ...
1
vote
1answer
71 views

Get exception messages from a custom SharePoint REST service

I am experiencing some difficulties in managing errors raised from a custom REST web service deployed to SharePoint ISAPI folder I developed. My service is pretty simple. I deployed an .svc file to ...
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
118 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
744 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
426 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
203 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
32 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
978 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
170 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
527 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
24 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
240 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
96 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
304 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
121 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
237 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
126 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
193 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
617 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
269 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 ...