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

learn more… | top users | synonyms

1
vote
3answers
688 views

Autocomplete with multiple values .from a list

I need to implement a lookup column to a big list, I will probably use SPServices, but so far all examples I have seen is for only one value, and I need it to be multiple values. I need to be able ...
0
votes
1answer
26 views

Display a single item from list in main site to subsite

I want to display a single(filtered) item from a list on my main site, to the homepage on a subsite. I've initially tried the CQWP but it was to limiting when it came to what fields it displayed by ...
0
votes
2answers
126 views

SharePoint list as data source for jQuery DataTables plugin

I trying to create a table using a SharePoint list as source. I followed this tutorial and it worked perfectly. But this method would not work if you need to reload the data using, let's say a drop ...
1
vote
2answers
62 views

jQuery: what version we must using in Sharepoint 2013?

I have a full responsive site in SP2013 with several webparts developed by a very huge developers group. We have centralized custom scriptLink and javascript API (and/or frameworks) in two ...
0
votes
1answer
28 views

Exposing WCF for client Scripts from SharePoint 2010

I am developing a SharePoint 2010 site and in need to access my WCF Web Methods from a client script from SharePoint. I am not sure on how to do this. Two approaches in my mind are. Add reference ...
0
votes
1answer
58 views

Reading excel cell value in Excel Web Access Webpart

I need to read excel cell value.Excel web access webpart is used to display excel file stored in a SharePoint 2013 document library.I need to use Jquery to read the data of excel file currently ...
0
votes
1answer
174 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> <th>Id</th> </tr> ...
0
votes
2answers
92 views

Use Google Visualization with Datatables plugin and which get data from REST

I have this code that get the data from SharePoint using ajax, and the datatable plugin creates the table. function LoadAIP(state){ var call = $.ajax({ ...
0
votes
3answers
171 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
72 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
246 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
31 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
32 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
4k 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
87 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
41 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
40 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 ...
2
votes
2answers
170 views

Add Ribbon Button via JavaScript

I have specific requirements from my client that he wants to add some additional Ribbon Button "but only" via JavaScript (including EnableScript reading value from some other list). They don't want to ...
2
votes
1answer
8k views

Where to put javascript files, problem with _layouts

I'd like to add jQuery and SPServices. I added the following code: <SharePoint:ScriptLink runat="server" Name="/Style%20Library/Scripts/jquery-1.7.2.min.js" ...
1
vote
3answers
483 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
27 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
2k 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
1answer
68 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
2answers
115 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
30 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
18 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
908 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
80 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
43 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
86 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
25 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
63 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
128 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
72 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
69 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
76 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
256 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
64 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
182 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 ...
1
vote
1answer
292 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
100 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
144 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
107 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
57 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
1answer
190 views

Loading My Sites within iFrame - Hide SuiteBar div

I am loading MySites in an iFrame within another Site Collection. This works with a PageViewer webpart but I would like to hide the new Suitebar since there is already one on the parent page. Any ...
0
votes
0answers
21 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
61 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
461 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
131 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
48 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 ...