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

learn more… | top users | synonyms

1
vote
1answer
480 views

SharePoint 2013 redirect on save or cancel jquery

I've been battling to get this work for the last day or so and its driving me up the wall. Firstly I'm using the 'SPUtility' jQuery scripts which are great to showing or hiding fields depending on ...
0
votes
1answer
2k views

getEnumerator causing collection has not been initialized error inside of async call inside of a loop in a script editor web part

This is an issue I've been struggling with - What I am doing is using a script editor web part and when a user clicks the button, I check to see if a list exists inside of a loop (in this example, it ...
0
votes
2answers
1k views

Check to see if location exists in sharepoint 2013

I'm developing an application and a part of it involves storing user submitted documents to a document library in sharepoint. Each folder in the document library is identified by the User ID. And ...
1
vote
1answer
15 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 ...
1
vote
1answer
759 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
1answer
608 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
11 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
19 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 ...
0
votes
1answer
737 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
0answers
14 views

SharePoint datetimecontrol Date range selection using jquery/javascript?

currently i'm working on SharePoint visual webpart webpart contains two SharePoint:DateTimeControl trying to select a FROM and TO date in range ,The Date Selection should automatically shade or ...
0
votes
2answers
1k 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
0answers
51 views

SharePoint 2010 navigation rendering on mobile devices

My menu works great and is responsive in all browsers but not on a mobile device. on a mobile device the navigation renders spans and not the ul. my code <div id="topnavbar" class="navbar"> ...
0
votes
0answers
22 views

spfdropdown conflicts with calendar webpart

I am setting up a foundation 2010 site and am using spfdropdown (from this Gist) to mimic dropdown functionality offered in SharePoint server. This solution works great with the exception of not ...
3
votes
2answers
531 views
1
vote
0answers
18 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
15 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 ...
0
votes
1answer
26 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 ...
1
vote
2answers
113 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 ...
2
votes
2answers
745 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 ...
0
votes
0answers
24 views

Dynamically set values for multiselect look up in sharepoint 2013 using jquery

I am trying to set the values of my lookup using jquery. Basically the values are coming from an array from another list. I was able to set the multiselect lookup with my array values. However i was ...
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 ...
3
votes
2answers
52 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
0answers
16 views

SPUpdateMultipleListItems not working

I am trying to update a column in a list, changing all the items to Approved. Below is the script i am using. function approveall() { alert($().SPServices.SPGetCurrentSite()); ...
2
votes
1answer
551 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> ...
0
votes
1answer
38 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
10 views

Java Script Parent Child Default field

I've been using this blog to help me set up parent/child lists in sp2010. It provides the following script: <script type="text/javascript"> function NewTime() { // Get the Query String ...
0
votes
3answers
8k views

jQuery accordion for the Quick Launch in SP2013

EDIT I improved the answer and created a blog post about it here. I followed this post in order to add the jQuery accordion functionality to the Quick Launch in SharePoint. While the code in the ...
0
votes
0answers
13 views

Not getting [Object File] from a File Input HTML Control using JQuery in WebPart Custom Page

I am Using SharePoint Designer 2010 I have a file input control and a button as below: <input type="file" name="Resume" id="upload"></input> <input type="button" id="btnSave" ...
0
votes
1answer
776 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
1answer
16 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 ...
5
votes
2answers
89 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 ...
1
vote
1answer
763 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
84 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 ...
1
vote
1answer
617 views

SharePoint 2013 Rest API OData Query

I am calling rest uri from jQuery ajax with filter string comparison startswith as below ...
0
votes
2answers
9 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
0answers
44 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
31 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 ...
0
votes
1answer
43 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 ...
2
votes
1answer
586 views

Customize InfoPath Form select element

I have an InfoPath form used for ordering inventory from our warehouse. There are drop-down lists with the roughly 180 inventory items available for request. I would like to make hybrid drop-down ...
3
votes
1answer
2k views

How can I create Ctrl-F Functionality from a search field?

I have a long page on SharePoint 2010 that needs to be searchable for keywords on that page. Apparently the target group is "unable/unwilling" to learn Ctrl-F so I was asked to create a permanent ...
0
votes
1answer
30 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?
0
votes
0answers
12 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: ...
0
votes
0answers
20 views

AddUnresolvedUserFromEditor not working in Firefox

I have two people pickers in a list. I use the following snippet, to insert the current user into the people picker: var peoplePickerDiv = $("[id$='ClientPeoplePicker'][title='" + fieldName + "']"); ...
1
vote
3answers
79 views

jquery multi line textbox scroll

I have some long multi line column on my list. In my dispform, newform and editforms I want to change the appearance of this field to have a vertical scrollbar, rather than just displaying the whole ...
2
votes
2answers
6k views

Dropdown lookup column in Sharepoint list form (newform.aspx)

I have a dropdown lookup field in newform.aspx form. Unlike choice dropdown the lookup dropdown is input field and not select So I raise an onchange event using jWuery $(document).ready(function() { ...
1
vote
1answer
812 views

Hiding Column on a List View with Grouping

I have a list that I need to dynamically hide columns on based on user. Sort of a rudimentary Column Level security type deal. This is being done through Javascript and JQuery to simply not display ...
1
vote
2answers
297 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 ...
1
vote
0answers
31 views

How do i query date range comparisions in sharepoint 2013 list using JSOM

I need to compare date ranges the result should be between start date and end date. I am using Sharepoint:DateTimeControl picker and get the date using jquery, then converted date like startDate ...
0
votes
0answers
22 views

Set value to ClientPeoplePicker

I need to set value into a ClientPeoplePicker, my list save the user as a SPUserField, I already get the id from the list. Thanks and greetings
1
vote
3answers
63 views

Get Text box in JSLink of NewForm.aspx in SharePoint 2013

How can i get Text Box Id in SharePoint NewForm.aspx ? Using Js-Link . . i want to bind Color-picker Control of Jquery to Text-box .. Can anyone have an idea about this? kindly give me suggestion. ...