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

learn more… | top users | synonyms

0
votes
1answer
17 views

Jquery mobile rendering issue in webpart page

I have below HTML inside html file which is referred in webpart page CEWP. Though this works fine as independant html page, while rendering in sharepoint , it is somehow showing up data-ico attribute ...
0
votes
0answers
10 views

Change the language of the form data upon on selection of choice field

I have a list with a choice column that shows two values English and Spanish if Spanish is selected then the content below the form say "Hi this form is customized" should be translated Spanish ...
1
vote
3answers
1k 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
1answer
15 views

How to apply a Date Filter on a list with JS

I have a Date Filter webpart connected to a List on page. I am setting the default value of the list with JQuery (it sets that value to the next Wednesday). Here's a jfiddle showing how we are ...
0
votes
1answer
1k 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
19 views

SP 2007 - Make picture library thumbnail unclickable

SP 2007 / Moss: I have a picture library where I want to show the thumbnail in the list view but make it unclickable. Right now when I click on it, it goes to the display form. When I go into the ...
3
votes
1answer
48 views

Security Error while doing REST update on the SP list

I am trying to make update with the usage of REST but I got an error: -2130575251, Microsoft.SharePoint.SPException. The security validation for this page is invalid and might be corrupted. ...
1
vote
1answer
22 views

Rest api add to select append sharepoint list is undefined

If alert view then OK, but is add code select append, not working - undefined Here is code: function getListItemById(webUrl,listName, itemId, success, failure) { var url = webUrl + ...
1
vote
0answers
29 views

jQuery - Hide empty field in a list

I have the code that hides empty fields in a list and it works great, the problem is it also hides the edit field and icon which I would like to keep, what would I need to change in the code to stop ...
1
vote
0answers
19 views

Change image name before uploading it to SharePoint library using Javascript or Jquery(Not Drop Zone control)

I would like to change the name of the image before uploading it to SharePoint document library. Below is the code i have written when an image is uploaded using HTML upload control. When the image is ...
4
votes
2answers
5k views

How to get ClientPeoplePicker value using javascript

can anyone please tell me, How to get ClientPeoplePicker value using javascript.?
1
vote
0answers
22 views

SPServices - open “view item” modal

NOTE: I'm begginer in SharePoint! Ok so my situation is like that: I have a list of Users, with multiple fields. For example there are fields like: Name, Title, Office, Phone and Email. Pretty ...
1
vote
0answers
10 views

How can i add css reference to app parts which is rendered in iframe from the master page

I have been trying to apply the CSS to Office365 App parts, the reference of the CSS is included in the header section of master page(which must not be tenant specific). I tried several codes. One of ...
0
votes
1answer
12 views

Building a To-Do List with jQuery and Local Storage

Hi i am working on a project to do task list where every thing work fine but i am not able to store data in list in following link data is store in var data = ...
1
vote
2answers
1k views

Getting Calendar items on Office 365 using REST API

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 trying to achieve is to ...
0
votes
0answers
16 views

Easy Tabs in SharePoint 2010 & preservation of easy tabs for SharePoint 2013

I am looking into ways to implement easy tabs for the display of a master glossary for my team. I have a code but I am not sure where to put it either in the content editor web part or in the general ...
1
vote
1answer
770 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 ...
0
votes
1answer
24 views

Disable text box for few seconds after success message

I'm trying to disable a textbox/and button for few seconds after the "Send button" has been clicked and then enable it again as well empty the textbox. But it doesn't work out. I have an onSuccess() ...
4
votes
1answer
331 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
3answers
557 views

Remember filter value using jquery and cookies

I am looking for a solution for the following problem: I have a large list that is related to a second list. The two list web parts are on one page, when you select an item in the first list, the ...
1
vote
0answers
13 views

Using html2Canvas API to generate images of custom aspx pages

So I have an html table I'd like to convert to an image and I found a pretty neat API to do exactly this. It's called html2canvas. I have been able to use it pretty easily using HTML pages in my ...
1
vote
1answer
13 views

Inconsistency in printing SharePoint list items using jQuery REST

I am retrieving data from my SharePoint site and printing it to a html table. The problem is that at times, when I print the data I fetched, my code fails to print all the data I expected. I have ...
1
vote
0answers
38 views

Formatted count by topic

I have been searching for days and I have been unable to figure out if my wish is possible. I have a large list that contains an inventory of active items being utilized, with each item having an ...
1
vote
1answer
2k 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 ...
2
votes
0answers
29 views

Async wait till variable is set in the display template

I have a problem with excuting the script in the right order. I have a custom.js which is loaded at the top of the masterpage. The following function is included: var results; var followers; ...
1
vote
2answers
37 views

Populate a choice field when another choice field changes

I have two choice fields. When choice field A is equal to Commercial then choice field B should change to Staged. I've found this hide function and was trying to change it to fit my needs but I'm ...
2
votes
2answers
2k 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
1answer
1k 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
2answers
56 views

Is mQuery stable to use instead of using jquery in Sharepoint 2013 and higher?

In my SP2013 environment, I use jquery, but had the issue of the $ clashing with Sharepoint's own $. The original thread was here Does Sharepoint 2013 really have a jquery conflict with $? In there, ...
1
vote
2answers
4k 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 ...
3
votes
4answers
2k views

SharePoint 2013 / bootstrap.js / only working in edit mode

I am trying to get the twitter bootstrap framework running on our SharePoint 2013 intranet page. When I'm editing the page, the code is working as expected. After saving the web part page, the ...
0
votes
0answers
24 views

Hide Droplist with Jquery

I am working with Sharepoint 2010, i am trying to hide different fields according to role of the current user. My code only works with normal text fields, but it doesn't work with drop list, so i ...
1
vote
0answers
13 views

Create custom list in sharepoint with a list template using JQuery [duplicate]

I need to create a custom list in Sharepoint 2007 using JQuery (only!) using a custom list template. I'm using Sharepoint 2007. Is there any way to do it? I already know to create the list and update ...
4
votes
1answer
4k 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 ...
1
vote
2answers
2k 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 ...
2
votes
2answers
1k views

Help with SPCascadeDropdowns cascading lookup column

I have this jquery added to my editform.aspx in SharePoint. I want the childcolumn to also have unique values, although it may contain duplicates example below. Example. When I select mycountry, I ...
2
votes
2answers
151 views

Does Sharepoint 2013 really have a jquery conflict with $?

I have been working on SharePoint 2013 recently, and noticed that under variation sites, SharePoint 2013 has a java script file that defines a global variable called $ which overwrites the jquery $ ...
0
votes
0answers
21 views

SP services to filter list form web part

I have a project requirement where I need to filter the column value based on current logged in user. This needs to be done in Designer using either Javascript/Jquery or SP Services. NOTE: The ...
0
votes
1answer
55 views

Hide fields until a value in a radio button is selected

My requirement is that i have a radio button on a New Item form with the values of Yes/No. If No is selected, i need to be able to have 10 fields appear (single line of text) so that the end user can ...
1
vote
0answers
38 views

Smooth scrolling with anchors on Sharepoint site

I have a SharePoint 2013 site which I am trying to include smooth scrolling using jQuery. There is a menu which becomes sticky after scrolling past, and each menu item should highlight as it goes ...
3
votes
1answer
46 views

Create custom list in sharepoint 2007 using JQuery

I need to create a custom list in Sharepoint 2007 using JQuery (only!). I'm using Sharepoint 2007. Is there any way to do it?
1
vote
1answer
39 views

Create custom list in SPServices

Is there a way to create a new custom list with SPServices? There are ways to create new list items, but I couldn't find a way to create a list.
3
votes
1answer
40 views

How to change webpart title background for only 1 webpart?

I have three webparts and each of these have titles. I want to change the background of a single title. I have the following webparts: I want to change title background for only this Title called ...
2
votes
1answer
1k 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 ...
0
votes
1answer
764 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 ...
2
votes
3answers
682 views

Need a way to identify files which have no checked in version

I wrote a script that traverses a collection, it's document libraries and gets a list of all files. I'm trying to find all the documents which do not have a checked in version and require a user to go ...
0
votes
2answers
2k views

Google charts disappear on refresh/F5 of a browser

I have a Sharpeoint list which gets updated everyday. From that list I made dymanic Bar graph to display the data. Graph is working fine but I am encountring issue on Refresh or F5 of a browser. Once ...
3
votes
2answers
55 views

How to consume SP REST using only JavaScript\CSS\HTML5 (from CRM, outside Sharepoint, same AD)

How do I do to consume a REST DataSet using only something like JQuery? For example, if I have the items in a list\library and retrieve them as follows: ...
1
vote
0answers
19 views

How to make a page automatically redirect if a field item called “arch” is yes or checked?

Edit: Apologies that was a bit broad. The list item is named "Redacted" It is a checkbox ( true or false ). If it is toggled to be true then when the page is loaded or was clicked on the user is ...
0
votes
2answers
20 views

Setting colors to list items of a column in Moss 2007

My req: I have a column called status and I want to set the colors to the columns values based and not the entire row. So if status is 'approved' then set the approved value to color green..etc. I ...