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

learn more… | top users | synonyms

0
votes
0answers
3 views

Hijack Save command in RTE to perform pre-save (WikiPage)

I'm doing some custom ribbon buttons (sandbox solution) to extend RTE in an Sharepoint Foundation 2010 environment. For this i need to perform some actions on the RTE field using jquery before saving ...
1
vote
1answer
23 views

Caml query To display Upcoming Event From Sharepoint Calender List

Using Jquery & Caml Query Retrieve Upcoming Events form Calendar List.I use below query but it not work. It display only start date of Recursive Event. My caml query is: <Query> <Where&...
2
votes
1answer
41 views

Output of Date of birth column is coming as Tue Dec 15 10:30:00 UTC+0530 1992

I want output as "15/12/1992". My code is as below: function OnLoadSuccess(sender, args) { var listItemEnumerator = collListItem.getEnumerator(); while (listItemEnumerator.moveNext()) { ...
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 ...
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.
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 ...
3
votes
4answers
2k 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 ...
1
vote
1answer
809 views

Force PDF to open in new window/tab

I am using SharePoint Foundation 2010 and attempting to have my PDFs open in a new tab or window. I have been able to get this to work from document libraries by using jQuery. You can see this code ...
2
votes
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 ...
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
21 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
670 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
886 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
47 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
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("...
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
839 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
8 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
22 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
32 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
22 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
32 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
242 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
818 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
24 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
954 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
27 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
639 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
24 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
23k 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
9 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
33 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
32 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
55 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
17 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
190 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
754 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
935 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 ...