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

learn more… | top users | synonyms

0
votes
2answers
18 views

How to pass parameter from modal popup to parent window

I have a parent window which is a Display page of a list item. This page comes as a result of some redirection with custom querystring parameters to it. one of the querystring parameter is ...
0
votes
1answer
15 views

Accordion on sharepoint 2013 depending on User Permission

For my Quick Launch jquery Accordion, I used this link : http://sharingtothepoint.blogspot.ch/2013/10/how-to-make-accordion-menu-for-subsite.html Everything works fine because I'm the administrator of ...
0
votes
1answer
9 views

DispForm.aspx get value with :contains not working

I want to get a value from a field on the DispForm with jS / jQuery. I tried the following Code: var question = $('h3:contains("Frage")').closest('td').next('td').text(); However it doesn't work. ...
0
votes
0answers
11 views

Bind Custom List to Gridview using javascript in sharepoint designer

This is my javascript code to bind <script type="text/javascript"> function BindGridView() { $.ajax({ type: "POST", url: "AllItems.aspx/PPB", data: "{}", contentType: ...
2
votes
2answers
36 views

How can I generate new ID for new list item (NewForm.aspx)?

I wanted to add a new ID on NewForm.aspx unfortunately that can't be done because a new ID has not actually generated yet. However, I thought maybe there is a way, by getting the current list's last ...
0
votes
0answers
17 views

Changing New/Edit/Disp Forms using JS and JQuery and adding web parts

I used JS, and JQuery in the pasted to change the New/Edit/Disp forms on Custom List before. Is there a way I can add OOTB web parts to the JS file? For instance I have a list called clients could ...
0
votes
2answers
22 views

Table of Contents not Displaying

I am trying to create a Table of Contents on my SharePoint page and I was successful in css but it is enclosed in a content editor and after I add it it looks fine but doesn't add the links so that I ...
1
vote
1answer
34 views

Display loading/processing while processing using CSOM

My current implementation includes following, User adds an item, once saved it is redirected to the display form of the same item. I have implemented this requirement using below steps. On ...
0
votes
1answer
28 views

Sharepoint 2010: Search list without a multiple filter, jQuery

I need to do a customized search for SharePoint. It needs to search in all the columns and rows of the list without having to select the column, in other words it cannot have filter. I cannot edit the ...
0
votes
1answer
33 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
140 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
26 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
32 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
54 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
69 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
27 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
114 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
36 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
64 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
58 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
29 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
60 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
109 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
50 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
11 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
46 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
19 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
19 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
43 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: ...
1
vote
1answer
44 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
1answer
81 views

How to get ClientPeoplePicker value using javascript

can anyone please tell me, How to get ClientPeoplePicker value using javascript.?
0
votes
2answers
24 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
84 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
33 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
32 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
40 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
64 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
119 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
71 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
32 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
18 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
112 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
73 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
39 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
110 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
73 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
29 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
50 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
2answers
249 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
116 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 ...