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

learn more… | top users | synonyms

1
vote
2answers
5k 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
3answers
17 views

jQuery - Detect value change on page and call routine

On an EditForm.aspx page I have a routine to hide/unhide a field based on the change of another field. It works fine on pageload, but I want to fire the change on the page itself if the user makes a ...
0
votes
1answer
662 views

Retrieve SP-List data cross domain via SPServices?

I am trying to retrieve data from a SharePoint List hosted in a different server/domain. We are still running SP 2010 but about to migrate to 2013. I am not sure if jQuery.SPServices and CORS are the ...
0
votes
1answer
876 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
3answers
43 views

Disable Hyperlink & convert the link to text in sharepoint [duplicate]

Posting it again, but with more information. I want to disable Hyperlink and convert the link to text in SharePoint. I`m using Jquery and below is the code. the code works fine for the first time, ...
0
votes
1answer
2k 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 = $("div[Name='...
1
vote
2answers
182 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("...
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
3answers
828 views

Conditionally hiding/showing fields on a custom newform using jquery

This is something I have been struggling with for some time now. I have looked all over the internet at different forums and blogs trying to find a solution and I have finally gotten ALMOST there. I ...
0
votes
0answers
7 views

FullCalendar ViewRender after postback showing NaN - Calendar events disappear in safari

I am using fullcalendar js in my SharePoint 2010 site. I am having two dropdown filters in the calendar view. The first dropdown will perform a postback call using a c# webmethod and will fetch event ...
1
vote
0answers
18 views

Post JSON ajax request with cors not working in IE10/Edge

Background:- I created a WCF service hosted in SharePoint server IIS. Service exposes GET/POST method and cross domain enabled and can be accessed using https too. To make it accessible, self signed ...
0
votes
1answer
30 views

Disable Hyperlink on a SharePoint 2013 page

I want to disable the hyperlink for a specific class part of Site Feeds in SharePoint 2013. I`m using Jquery to do the same, but it is not working for me. Code for reference <script src="https://...
0
votes
0answers
12 views

Method to get list headers & filters via jQuery SPServices CAML GetListItems or similar?

Is there a method similar to GetListItems to grab the column headers and/or filters for a list? Or a way to use GetListItems to get that information?
0
votes
1answer
31 views

SharePoint list filter jquery

I was able to create a SharePoint list filter as per the steps in this solution. Page a list via A-Z Now I am trying to highlight the selected letter through CSS (.selected) but not able to achieve ...
1
vote
1answer
32 views

Error while iterating list

I tried this: var itemArray = []; var clientContext = SP.ClientContext.get_current(); var oList = clientContext.get_web().get_lists().getByTitle('FlexMasterList'); var oListItem; ...
2
votes
1answer
238 views

Get value from JSON from SharePoint REST [closed]

If I use below line, I get output='1'. data.d.results[i].ID; But instead of giving hardcoded ID, Is there any way to pass by variable? I already tried like: var array=["ID","Title"]; data.d....
2
votes
3answers
803 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 ...
0
votes
1answer
22 views

How do I hide specific check boxes using JQuery?

I am trying to learn JQuery to customise the way forms are displayed in SharePoint (in particular, to hide/show the options available in choice fields). I have managed to hide options/values within a ...
0
votes
1answer
21 views

how to prevent duplicate values for people and group column sharepoint 2010

I've column in a list where we are adding the user name(column type = user and group). If the user is already added in the list and same user if I want to save I should get error message user already ...
0
votes
1answer
21 views

Disable Item Created By Permissions in SP2007?

I have been editing the editform.aspx for a list I manage. I used some jquery and javascript in order to hide certain fields. However there comes a point in my workflow where I need to disable the ...
0
votes
0answers
24 views

how to merge two items in a single list

In SharePoint 2010 List how to merge two item id in new item while clicking on button using JAVASCRIPT/JQUERY/SPSERVICES. For example I've List1 in this two item inserted. Now once I'll select both ...
0
votes
0answers
22 views

How to insert image into SharePoint Attachments column from HTML FileUploadControl using jsom

I need to insert image into SharePoint list Attachments field from HTML ImageUploadControl by using javascript/jquery. I have used this code but getting error of MoveTo is not a function. ...
3
votes
4answers
929 views

Getting Value of Radio Button on SharePoint 2013 Edit Form using jQuery

EDIT: updated verbiage to reflect this is specifically a Radio Button choice field. The below script works when the choice is set to display in a drop down. I'd like to be able to do the equivalent ...
0
votes
0answers
22 views

Hidden Fields in Custom Editform Don't Populate

I'm hiding a field in a custom Editform by adding a CEWP and some jQuery to hide the table row for the field. The form shows correctly and everything is hidden nicely. My issue is this... it seems ...
0
votes
1answer
635 views

How to get Web Application url in SharePoint 2013 in Javascript? [duplicate]

I'm looking for a "beautiful" and the fastest way to get only the web application url (don't want to trim or substring or anything else).
0
votes
1answer
19 views

Site Assets Javascript file will not update

So I have the weirdest problem I have seen in SharePoint yet. So I am trying to practice using javascript and I can't figure out what is wrong with my methodology. For a background, I am trying to ...
10
votes
4answers
22k views

REST API filter by start and end dates using 'today'

I'm new to filtering dates with REST in SP but am trying to do something like below but am not sure how to get today's date in as a variable into the request. I don't think I'm too far off so any help ...
0
votes
0answers
8 views

Trying to compare People Picker entries and Created By on EditForm SP2007

Been beating myself up with this since last week. I have zero luck getting answers (usually Im told my question sucks on every exchange forum) around here but I am desperate again. This is for SP2007....
0
votes
1answer
30 views

Jquery for document querying

How would one go about finding the correct JS/Jquery methods to accomplish the following? I would like to retrieve the URL parameter passed to the page(the parameter being projectCode) and then using ...
1
vote
2answers
30 views

JQuery add class to url when on page in current navigation menu

I'm currently using the SharePoint Web Control spnavigationmanager to create a navigation for sites that are easily configurable by going to Site Settings > Navigation and making changes there. I'm ...
-1
votes
0answers
29 views

Internal RSS Feed

Sharepoint 2013 Foundation: I am using Discussion Board as a method of serving news, I would like this to be displayed as a RSS animated news ticker. I have started using 'zRSSFeed' which works with ...
0
votes
2answers
54 views

filter ListView using RestApi in sharepoint APP

Please let me know is there any way to filter list inside listview using restapi Example: TestList And below is my custom search:(currently it is configured on Title field) Now after filter(Title=...
0
votes
0answers
14 views

SP2010 Add/Update multi-select lookup column REST

I have a list named CAG_QUESTION with a multi select lookup column to a list named CAG_REFERENCES. I have been unable to get an update to work that includes the lookup column. I thought I needed to ...
5
votes
1answer
6k 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
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
1answer
7k views

Getting 401 error when connecting to the list.asmx web service using JQUERY

I'm attempting to do a pretty straightforward query to the list.asmx web service and I keep getting a 401 error. I've spent a couple of hours attempting to solve it with no luck. My jQuery Code: ...
2
votes
1answer
185 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 ...
3
votes
4answers
725 views

Javacript only executed on first page load

I have javascript code included in my sharepoint site. When I load the page the first time, it is executed, but when I load it the second time, it is not running. It get's loaded in correct order but ...
1
vote
1answer
930 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
25 views

onchange event handler not working properly

I've created on onchange event handler using jQuery in SharePoint that is not working properly. After the page loads and the Request Type field is changed the other fields that are displayed will ...
3
votes
2answers
6k views

How can I get rid of the columns header when the style 'Boxed' was selected?

I created a new list view with style = 'Boxed' in SP2013. The problem is that this view is showing the columns header in the top when there's no need to do it. So, how can I remove or hide it? I tried ...
0
votes
1answer
26 views

How can I use JQuery to conditionally require the people picker field on edit form?

Environment: SharePoint 2013 foundation I'd like to make/validate the People Picker field required conditionally in the edit form of a task list. If the task status is changed to Completed, I want ...
0
votes
3answers
36 views

REST API : fetch the listitem details using it's url

I need to fetch the listitem details using it's url with REST API. The list item url is like : http://<webappname>/Sites/<sitecollection name>/en-US/Pages/TVM3.aspx I want to fetch the ...
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 + "/...
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 ...
1
vote
2answers
38 views

How to get the return value from SP.SOD.executeFunc?

I have the same scenario as what this below question has: How to get the return value of an on demand executed function? I have SP.SOD.executeFunc('sp.js', 'SP.ClientContext', getPageTitle); ...
2
votes
1answer
1k 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 ...
4
votes
2answers
656 views

Bootstrap in HTML Web Part

I got HTML/CSS from our Designer to implement on a Sharepoint 2010 page. This page is using bootstrap. I implemented it with HTML Web Part and also tried to split the web page layout and work ...
0
votes
0answers
34 views

I've added people picker and I want to add its values to column in a list

I have a column of type group or people. I've implemented people picker on aspx page using jQuery. I want to add picked users to my column in list my code is: $(document).ready(function () { // ...
1
vote
3answers
55 views

My jQuery code is not kicking off in DisplayForm in SharePoint

I have added some jQuery code to the DisplayForm as follow- <asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1....