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

learn more… | top users | synonyms

1
vote
3answers
84 views

Triggering javascript on a SharePoint Form Dropdown Field on Page Load without clicking

I have a NewForm.aspx page which is populated automatically via a query string in the URL, e.g. newform.aspx?Title=New Item&WorkArea=DHIS&Location=London I have some javascript code which ...
1
vote
1answer
31 views

PDF Preview in library

I have a library full of pdf's. Is it possible to show a preview of this documents in the library view? The preview is necessary because there are 5 user which work in the library and add the ...
0
votes
1answer
51 views

Can't get HTML page to display

I have created an html page to display in the Page Viewer Webpart in SP which contains a bit of jQuery. For whatever reason, it will not render in an IE Browser - it just shows a blank white page if ...
2
votes
3answers
336 views

Set default value in people picker javascript/jquery

I want to set current logged in user to people picker by javascript. I can retrieve the value of user(lets say in var user).But how to set it to people control. Any help is much appreciated.
0
votes
2answers
130 views

Auto complete box with multiple values in SharePoint Web Part using J query and SharePoint list web service

SharePoint 2010 Questions. I am trying to create an auto suggesting text-box with multiple values in a SharePoint web part. i am using j query and SharePoint list web services to do it. I am just ...
0
votes
1answer
32 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 ...
1
vote
2answers
64 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
31 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
2answers
221 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 ...
0
votes
1answer
102 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 ...
4
votes
1answer
91 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 ...
0
votes
0answers
43 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 ...
1
vote
4answers
397 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
1answer
131 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
44 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
53 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 ...
0
votes
1answer
29 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?
3
votes
3answers
258 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 ...
0
votes
1answer
109 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
0answers
36 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 ...
0
votes
1answer
51 views

Does GetListItems not work with content types?

I have been trying to use GetListItems using jquery and SOAP to fetch data from a list. The list does not have an 'item' content type but is using two other site content types (both inherited from ...
0
votes
1answer
35 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
29 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 ...
0
votes
1answer
57 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
133 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
31 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
1answer
84 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
0answers
79 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 ...
0
votes
2answers
109 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({ ...
2
votes
1answer
146 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
84 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 ...
0
votes
2answers
172 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. ...
1
vote
1answer
80 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 ...
0
votes
2answers
92 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 ...
0
votes
1answer
137 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
245 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 ...
0
votes
0answers
93 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
316 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
23 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
66 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 ...
0
votes
2answers
62 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
111 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
30 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
515 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...
1
vote
1answer
79 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 ...
2
votes
3answers
189 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 ...
2
votes
1answer
70 views

Do check out in a document with jquery

I'm using SharePoint 2013. I need do check out in a library document using JQuery. Someone help me?
0
votes
1answer
255 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
3answers
255 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? ...
0
votes
0answers
134 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 ...