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

learn more… | top users | synonyms

0
votes
3answers
486 views

Using REST call and Datatables plugin to retrieve SharePoint Date field

I'm having an issue with a REST call that's giving me some headaches. This is the code I'm using: function LoadAIP(state) { var call = $.ajax({ url: "https://xxxx/xxxx/_vti_bin/listdata.svc/AIPList? ...
4
votes
1answer
138 views

SharePoint 2010 - Using REST to validate unique list item

I'm attempting to validate that a duplicate combination of staff (person/group field) + parent ID (lookup field) does not already exist in a list. Below you can see that I've added an ajax call to the ...
1
vote
4answers
1k views

Filter list data using SPServices, CAML Query, and dropdown list

I'm trying to create a table using SPServices to fetch the data, and filter it using CAML Query and a drop down list. I would like to create three conditions: A. If no item from the list is selected, ...
0
votes
0answers
110 views

Error: The value of the property 'Menu_Unhover' is null or undefined, not a Function object

I would appreciate it if someone could help me out here. I have a SharePoint global navigation bar that I'm using in SharePoint 2010. Every time I apply this script, I get the following error ...
0
votes
0answers
46 views

Webpart squezzed after jQuery hide() and show()

I have the following problem: I exported on the mysite https://mysite.intranet.i/personal/user/AllTasks.aspx the tasks webpart. I imported it on another page in another Sitecollection -> works, all ...
2
votes
6answers
5k views

How to update multiple ListItems with a “Where Clause” using SPServices?

I've searched the jQuery SPServices code examples and MSDN references for an simple example how to update several ListItems using a Where-Clause. Code for updating a single ListItem with ID = 500, ...
0
votes
1answer
350 views

Create Next and Previous Paging Using Sharepoint List and SpServices

can anyone help me in Creating Next and Previous Paging for SharePoint List Using Sp-services With Client Side Template Binding . Below is the Code Which I was Using. $().SPServices({ operation: ...
0
votes
1answer
71 views

Unable to system.string to system. guid - CSOM

I have a picture slideshow webpart which displays images from a particular library with a particular view. I want to change the webpart property - view using jquery. I have used CSOM to get the ...
0
votes
1answer
120 views

Creating a Status notification SP 2013. Script to make it fade?

I have some code that creates a new status bar but it just stays on top without fading. It doesn't even have an 'x' to close it manually. The following is how I am adding a new SP status from code ...
1
vote
3answers
573 views

Jquery clickable Tooltip inside SharePoint WebPart

I have a requirement in which when ever user hover over a text(hyperlink) a tool-tip should appear that should contain images which are clickable using JQuery $('.cover_beholder').hover( function ...
0
votes
1answer
32 views

SP 2013 Form Customization

How can I change the checkboxes and radio buttons in a SharePoint list form to be horizontal rather than OOTB vertical to save space?
1
vote
1answer
3k views

jQuery SP.JS objects to test if current SharePoint user has full control / owner rigths?

As an example, the below jQuery displays current SharePoint user title. Excellent! :) Is it possible to use the sp.js objects to test If the current user has Full Control on the current page or ...
0
votes
2answers
368 views

PageViewer web part - busy indicator using jQuery

I have MySites displaying through an iFrame via the PageViewer Web part which takes some time to load initially. The user is unaware of content loading as it only shows a blank page until finished. ...
0
votes
1answer
62 views

JS execute before data loading

I don't understand something. I have a js code in the $(document).ready() function. I got: function functionTest() { var elem = document.getElementById("MSOZoneCell_WebPartWPQ2"); if (elem ...
0
votes
0answers
47 views

SharePoint list freeze pane header width incorrect display in Chrome

I have a SharePoint list named "Open Question". I tried to put some jQuery code (also avoiding the 'expression' thing in the CSS style, for it might not be supported by all browsers) in the content ...
2
votes
2answers
1k views

How to modify the sharepoint 2010 NewItem2 function?

In sharepoint 2010, I want to add javascript to the alerts popup window page, but I don't want to modify the actual layouts file. I want to dynamically insert javascript in it. Basically the button to ...
0
votes
1answer
117 views

Retrieve current site name (not url) programmatically?

I want to create a code that only generates a link for certain users in a group, but this group name changes across the many subsites that my users have. The group name = [Site Title] + ' Creators' ...
0
votes
1answer
173 views

Using UpdateListItems for multiple items?

I would like to use UpdateListItems or something similar to allow my users to pass in some variable (e.g., a name) so I can use a caml query to find all items where SomeUserField = 'John B Smith' and ...
0
votes
2answers
714 views

Include js file in Page Layout, after jQuery file in Master Page

I'm trying to include a javascript file in my page layout file. I already have it inside the "PlaceHolderAdditionalPageHead" Content Placeholder, and it includes the file, however I need it to be ...
0
votes
1answer
46 views

Mobile Design not working on WIndows Phone [closed]

I have following jquery script $('#difoot').click(function (e) { $('#visdis').toggle(); $('#disfootr').toggle(100); ...
0
votes
0answers
117 views

Document Library EditForm that Saves then Redirects to Page with Query String

In SharePoint 2010, with a document library, the default editform resets the Source parameter in the URL which prevents you from navigating users back to source after selecting the Save button. This ...
2
votes
1answer
239 views

CORS with SPServices + jQuery

I need to access from a different domaine on a mobile a sharepoint list. Here is my code, a simple get request : $.support.cors = true; $(function() { $().SPServices({ operation: "GetListItems", ...
0
votes
1answer
131 views

Need to take list item count on 2010 based on the selected value

I have a Sample list named as LISTA. In which i have title column, the title column values are Title A b c A b c c I need to take the count of item count of a,b,c. using soap ...
1
vote
1answer
100 views

How to configure security (IIS, token, etc.) for a website that uses SharePoint 2013 REST API?

I have a website that uses the SharePoint 2013 REST API to render list data (via JQuery AJAX) on the website. It is pretty straightforward and works fine, but my challenge is figuring out the security ...
0
votes
2answers
209 views

How to upload jQuery library into web parts without master page

I am in the process of migrating from SP2010 to SP2013. In SP2010 the Scriptlink feature was used to upload all of the jQuery libraries from the master page. Currently I want to test some web parts in ...
1
vote
2answers
369 views

Javascript Object Model; possible to return whether item has permissions under inheritence or not?

So if I am using the COM/JSOM, and normal GetListItem, can is there something I can add to the Include method, that will allow me to see if the item returned has permissions under default inheritance ...
1
vote
1answer
144 views

Disable drag and drop option for multiple file uploader

These are the screenshots of multiple file uploader from the same SharePoint 2010 site. Some users are seeing the first and some are seeing the second one. Is it possible to disable the second ...
1
vote
1answer
598 views

Updating Choice Person/Group columns using listData.svc in SharePoint 2010

I am trying to use JQuery and the listData.svc to update a list that has a choice column. I am using Postman to generate my http requests, can someone please show me examples of how to update choice ...
0
votes
1answer
272 views

Get NewForm.aspx Controls and Events (jQuery)

I have been able to hide/show form controls using JavaScript. Is there a way to capture jQuery events on these controls? For instance, I want an onclick function to work on my form control. How ...
0
votes
2answers
625 views

sharepoint 2010 - 2013 web parts migraiton: jQuery is undefined error

I posted this in the general Stack overflow site but this seems like a better place to post a sharepoint question. I am trying to move a custom web app (contacts list) from sharepoint 2010 to ...
1
vote
1answer
135 views

Footer does fill the whole width. Scrolling in document library

I have a problem with the footer not extending to the right side when scrolling to the right. (In a document library with way to many columns). Meaning the footer have a blank spot in the right side ...
0
votes
0answers
176 views

How to wait for a Function to return values and finish to run another Function with Javascript

As the thread's title with SharePoint 2010, this worked well with all browsers as the demo below. However, when I'd tried to get the information from another link (it must be another thread of ...
0
votes
0answers
31 views

How to edit in newpost.aspx in blog site?

i want to edit the newpost.aspx page in blog site. i want to add fields and hide other fields. so what is the best way to edit the newpost.aspx? i am trying to use jquery but i don't know how to use ...
0
votes
1answer
85 views

Why does v4.master suddenly strip out URLs?

I am working in SharePoint 2010, and using jquery to modify some display and edit forms throughout a site. To do so, I'm including a reference to the jquery library in the site's v4.master page so I ...
1
vote
1answer
576 views

accessing remote web services(cross domain applications) using jquery jsonp

Here is My code ..could anyone please solve this problem..I was struggling from morning..below code is not working.Actually i should get the data when we send jasondata as input..but i am getting ...
2
votes
3answers
336 views

Enhanced Rich Text Field removes my default text

Im trying to set default text using jquery on a mentioned field type. I can briefly see my text as I open a new form, but then it disappears. I tried various methods - .text() .html() .append() but i ...
0
votes
2answers
110 views

Error referencing external jquery library in master page

Background - I added a webpart to hold my jquery script on a single Sharepoint page. It works fine. In the HTML of the source editor, the script begins: <script ...
0
votes
1answer
187 views

Need help troubleshooting JQuery call to workflow

Running SP 2013. I've got SPServices 2014.01 and JQuery 1.11.0 both copied to my site collection and loading in my masterpage, plus I've confirmed they're loading with the page in question. I've got a ...
1
vote
0answers
34 views

Open check in form with JQuery

It's possible open the check in form with JQuery? I need do this to force the user to do check in in the document.
0
votes
2answers
887 views

Client side date validation in SharePoint List form using jquery

I want a validation for no past dates i.e something like StartDate>=Today Is this possible can anyone help? Thanks...
0
votes
2answers
275 views

How do I show a field in dispform that's been hidden in content type?

Sharepoint 2010 Enterprise. This is document library for word documents. I have some fields that are set by workflow that I want end user to see but not be able to edit. I was going to just use ...
6
votes
8answers
4k views

REST ListData service and anonymous authentication

I’ve been trying to use ListData.svc to get a REST feed from a list (actually a pages library) using something like: ...
0
votes
0answers
235 views

Overriding styles on a SP2013 calendar overlay

I'm using a calendar overlay to roll up several calendar views into one, with each item being color-coded according to view (category). We use specific colors for these categories elsewhere, so I need ...
1
vote
2answers
105 views

How to run the JS with on() function with Javascript

In the Calendar with Add button, after the JS Calendar starts completely, the HTML below appears and I would like to run my JS with AsynchronousViewDefault_CalendarView attribute. However, it doesn't ...
1
vote
3answers
519 views

How to replace all href elements when mouseovers with Javascript

In the Calendar with Add button, I would like to replace all href="javascript:void(0)" to href="http://google.com" when mouseover the image caladd.gif with Javascript and jQuery. Summary: That means ...
0
votes
2answers
2k views

REST post with metadata column?

I have a jquery script that uploads a file to document library. I'm trying to set a choice column in the same call, but can't seem to get it to work. The upload is working, but Col1 is a choice ...
0
votes
1answer
109 views

Attachment option customization in data form webpart

We have requirement that Implement attachment control same (Like InfoPath form screen shot) as it is in the default form of new item. Please let me know if any one have solution / workaround. 1) ...
1
vote
0answers
35 views

How to query “Followed Count” for each user?

I found follow this REST API: http://msdn.microsoft.com/en-us/library/dn194080.aspx#bk_FollowedCount By using My/followedcount, I can get current user's count of items he or she currently following. ...
0
votes
0answers
121 views

sharepoint list manage multiline text column width in Chrome

I have a SharePoint list that consists of single line text fields and multiline text files (plain text). In the list view, I tried to use following jQuery codes to manipulate the width and other ...
1
vote
1answer
3k views

Creating dynamic accordion from a custom list using jQuery and jQuery UI in SharePoint not displaying as should

I am trying to dynamically build accordion from list of items returned using JavaScript, jQuery and jQuery UI. Below is my code: <div> Search List <input type="text" ...