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

learn more… | top users | synonyms

0
votes
1answer
52 views

How to extract data from the list and put it in the form using jquery

I want to extract data from the list and put it in the form using jquery! I succeeded to know how to import data from "Last Name" and "First Name" of the list into text fields "Last name" and "First ...
5
votes
3answers
487 views

Updating a single list item based on relative URL

Is it possible, using SPServices, to update a specific list item when all I have is the file path? For example, I have a file located at /site/library/folder/file.txt and I want to update a single ...
0
votes
1answer
27 views

Differentiating CEWP Headings

If I have a web part page with a number of Content Editor Web Parts and Custom Lists attached to them, how would I go about visually identifying them? Changing the display txt isn't an option as ...
1
vote
1answer
65 views

Did the hidden input for dropdowns change?

Recently we had a Windows Update applied to our SharePoint server (Foundation 2010 SP1). We use the jQuery and SPServices libraries extensively. After this update almost all of our custom pages ...
1
vote
2answers
120 views

jQuery not working properly

In the editform.aspx of an item, I am trying to use jQuery to cause a pop up to go off anytime a field is changed (sort of silly, but once I get this to work, I plan on moving to doing more). However, ...
2
votes
2answers
514 views

Get List Item ID from NewForm.aspx

SharePoint 2010 Enterprise Version I have a Custom List and i have created a copy of NewForm.aspx and saved it as CustomNewForm.aspx. When I save the item i want to get the saved items ID and ...
0
votes
1answer
54 views

Move the 'Add new Item' button to the top of a specific webpart

I have a page with multiple web parts. Now I'm trying to move the "add new item" button on top of a webpart after the web part title. I did this using jQuery, using the unique web part I want, but ...
4
votes
3answers
198 views

JavaScript is breaking my theme in SharePoint 2013

I am having an unusual problem. I have a site in SharePoint 2013 I just stood up, and starting to experiment with JavaScript and jQuery. I am using one of the OOTB themes, not ready to monkey around ...
1
vote
1answer
2k views

how to get a <td> value after clicking the row [closed]

I want to get the third column in a selected row. my jquery is $(document).ready(function() { $(function() { $("#dialog").dialog({ autoOpen: false }); ...
1
vote
2answers
112 views

SharePoint Parent/Child List form

I'm using SharePoint 2010 standard edition and I want to create a Parent/Child list form. I noticed that Query string webpart is part of enterprise edition as shown here http://bit.ly/1tF8rkG and ...
0
votes
1answer
71 views

SP2013: Custom script interfering with OOTB ribbon controls

I've got a weird one here, and my JavaScript/SP2013 skills aren't up to the task apparently. I've got a custom script that I made by bashing together other scripts & snippets from around the web. ...
0
votes
0answers
38 views

jquery cascade is acting up. All of the sudden the child and grand child does not match from edit form to view and view properties

I am attaching 3 print shots for editform, view properties and view. The view shows category, subgroup and subtypes which does not match edit form values. The values in the edit form are correct. What ...
2
votes
2answers
148 views

Customize a SharePoint 2010 survey required field user message

I've created a survey with rating questions and branch logic and most are required fields. Any suggestions/ideas on how to use Javascript/JQuery to change the OOTB required field user message "You ...
2
votes
2answers
202 views

How can I ScrollTop in SharePoint 2010 with JQuery

I try to scroll the SharePoint page after the page loaded. Using the following code: $(document).ready(function(){ $('html, body').animate({scrollTop: $('#WebPartWPQ1').offset().top}, 1000); }); ...
0
votes
2answers
164 views

How to find current logged in user alias not username in SharePoint 2013 using javascript or jQuery?

I am using _spPageContextInfo object to get currently logged in username in SharePoint 2013.In this process first i will get userId value and then i will make an ajax call with this userId value and i ...
0
votes
0answers
25 views

Default Title from filter applied in connected list WebPart

I have a WebPart page with two lists. One for an Event and another for an Action on that event. They are connected by the Title field (so the user would click the double arrow by Event 1 and all the ...
1
vote
2answers
233 views

function(xdata, status) explanation - SPServices jQuery

I have recently started learning SPServices library. So if this sounds like a silly question, forgive me. I notice these lines in almost all the examples: completefunc: function(xData, Status) { ...
1
vote
0answers
44 views

Sharepoint 2010 metadata filters- Driving from a link or script

The "old style" list filters in Sharepoint List views (e.g. when the user clicks on a column to filter or sort on column values) use an http GET, so the filter paramaters are transmitted in the page ...
0
votes
0answers
40 views

Jquery plugin to show videos from video library in sharepoint 2010

I have video library where more than 10 videos have been uploaded. I want to show video list on my page and let user select video to play from that list. any jquery pulgin.? i got some plugin but ...
1
vote
0answers
126 views

How can I display user picture from sharepoint in datatables

Sorry if this is stupid easy but I'm trying to display user pictures from sharepoint in datatables. I can see the link in JSON data coming back from the ajax query in the "Picture" field so I added: ...
2
votes
1answer
298 views

Form validate - New item

I have a list on Sharepoint, and when some user add a New item, I need to validate fields... I would like something in jQuery... something that if the field is not validated, it shows a msg error and ...
3
votes
2answers
769 views

How to get ClientPeoplePicker value using javascript

can anyone please tell me, How to get ClientPeoplePicker value using javascript.?
0
votes
2answers
32 views

Apply jquery to personal sites

I am adding jQuery to sharepoint like this: <SharePoint:ScriptLink ID="ScriptLink6" language="javascript" name="~sitecollection/Style Library/jquery.min.js" runat="server" OnDemand="False" ...
0
votes
3answers
202 views

Could JQuery or JS disable core.js?

I have a strange situation. I using the code below in a Java Script file and referencing it from CEWP. For some reason, I can't do Page or Site Action Edit anymore, it does not do nothing. However, if ...
0
votes
1answer
86 views

changing the intialprompt searchbox webpart javascript/jquery

I have a page_layout in which I plan to be used by many pages, this page layout has a searchbox webpart, at the moment it has a generic 'Search...'. However what I want is to change it so it says ...
0
votes
2answers
50 views

Inconsistent ExecuteOrDelayUntilScriptLoaded(function () behaviour in my pages

My users are reporting some strange behaviour with some pages created with the same custom layout pages and custom master page in a sp2013 publishing site Essentially, I have function referenced in ...
0
votes
1answer
109 views

Filter DataView web part using SPServices

Ok, this is the issue: I have a Data View web part which I would like to filter depending the "office" the user logged in belongs. I can get this using SPServices (GetUserProfileByName): JS ...
0
votes
0answers
113 views

Errors Implementing jQuery UI Tabs in a Sub-Joined Data View

I am trying to implement jQuery UI tabs onto my site using a subjoined data view, but I am experiencing some issues. I believe it has to do with my XSL markup, but have been hitting my head against a ...
0
votes
0answers
254 views

Quick launch Collapse / Expand sharepoint 2013

I need to custom Quick launch accordion menu, here is my code (from magali post : How to make an accordion menu for a subsite in SharePoint 2013): function accordionMe(selector, initalOpeningClass) { ...
0
votes
1answer
119 views

Linking an Excel document to a List

I have an excel document which is sent daily to me. I have a SharePoint List that is then update daily by me with all the excel documents information (complete overwrite each day). The list is used ...
0
votes
2answers
54 views

how to give popup for a panel?

I have panel control in my web part. I used some 10 controls in this panel with in a div so I need to show this div in the popup .so which I need to keep in popup either with panel ID or div ID. ...
0
votes
0answers
55 views

ko is not defined - Knockout and SharePoint 2013 Code Embed?

Any special considerations when loading Knockout with code embed on a SharePoint 2013 Page? <script type="text/javascript" ...
0
votes
2answers
2k views

Expandable lists that expand and collapse with one click

I have a lot of text based lists on one page, so I threw them into content editor web parts so i can expand / minimize the lists. However, two clicks (one on the arrow and then one on "restore") is ...
1
vote
1answer
193 views

SharePoint Online 2013 Page Code Embed and Javascript - output disappears

I noticed I can't embed inline javascript in an SPO 2013 Web Part page, but can reference a library. I'm outputting a table from that js. If I put alerts that table displays but then disappears ...
1
vote
0answers
135 views

ValidatorEnable jquery function not working for people picker validator

I have a form with a dynamically generated people picker control, that is required if the checkbox above it is selected(not required otherwise) This is how I created the control. var people = new ...
3
votes
2answers
190 views

Using jQuery in SharePoint 2013

I'm trying to implement a solution in SP 2013 where the global navigation docks to the top of the browser as you scroll down. Like on this site. The dev at this site provided the jquery he used to ...
1
vote
3answers
149 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
35 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
76 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
5answers
2k 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
257 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 ...
1
vote
1answer
76 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
82 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
51 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
895 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
352 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
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 ...
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 ...
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
1answer
349 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: ...