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

learn more… | top users | synonyms

0
votes
2answers
41 views

Display Profile Image, Can't Select Picture Url

I am attempting to retrieve some profile properties for the current user, and am having a hard time with the profile picture Url specifically. Version is Sharepoint Foundation 2013. When I open the ...
3
votes
2answers
167 views

Display online users (SPO)

I have a requirement for SharePoint Online users to see what other users are currently online. Is there a way to achieve this with client-side code? Javascript/jQuery?
0
votes
0answers
25 views

Problem with the code. Not entering Sp.SOD block

Below code doesn't work as expected. it doesn't throw any error though.What could be the problem? var clientContext; $(document).ready(function () { try { ...
1
vote
1answer
96 views

Using html2Canvas API to generate images of custom aspx pages

So I have an html table I'd like to convert to an image and I found a pretty neat API to do exactly this. It's called html2canvas. I have been able to use it pretty easily using HTML pages in my ...
0
votes
0answers
23 views

SPServices $().SPServices.SPFindPeoplePicker not working for required field

I am using SharePoint 2010 and SPServices to get values from people picker in custom field. It is working fine but not fetching data for required fields. can anyone help me with this. var PP = ...
0
votes
1answer
1k 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 = ...
1
vote
3answers
714 views

Remember filter value using jquery and cookies

I am looking for a solution for the following problem: I have a large list that is related to a second list. The two list web parts are on one page, when you select an item in the first list, the ...
0
votes
0answers
9 views

updating web parts URL dynamically through jquery

Hi, I am adding multiple Page Viewer Web Parts on a Page. I want to change the URL behind these Web Parts through drop down menu. how can i do this.
1
vote
1answer
20 views

Get Video Source from variable

I am currently using SharePoint to query a pages library for a video, the aim is to then display this video in an iframe, I am currently using csom to get the video source from a Page, however this ...
0
votes
1answer
48 views

Add current user (read) to contributor permission group on page load

I want to add current user(read) to contributor permission group on page load but below code is alerting 'undefined': var user; var spGroup; function AddUserToSharePointGroup() { var clientContext = ...
0
votes
0answers
18 views

Change URL link of Page viewer web-part through jquery

I am using a Page Viewer Web Part of a calendar view. One challenge i am facing is to add different links in WebPart of different month views. How can i change the Parameters in URL of Page Viewer Web ...
0
votes
2answers
39 views

update list code doesn't seem to working

I am trying to update to update list when user clicks on "Edit" button but below code doesn't seem to be working.. <h1 align="center">DemoList</h1> <table id="maintable"> <tr> ...
13
votes
4answers
9k views

jQuery accordion for the Quick Launch menu?

Is it possible to turn the left side menu (I think it's the Quick Launch area) into a jQuery Accordion style menu in SharePoint 2010? The jQuery UI Accordion control uses DIV tags, so wasn't sure if ...
1
vote
3answers
42 views

csom error with SP.SOD.executeFunc used twice

I'm trying to do several csom requets. But I can't do it. Here is my first, that works alone : var collListItemToBeUpdatedRevente = ""; var enumeratorRevente; var ...
0
votes
0answers
7 views

jQuery toggleClass in Display Template

I have a display template that I'm attempting to have an accordion effect on. I have used this in the past (but not with display templates): AddPostRenderCallback(ctx, function () { $( ...
-1
votes
0answers
28 views

results property not defined in $.each(data.d.results, function(index, item) [on hold]

var qString= null; qString = getdetails(); $( document ).ready(function() { if(qString != null) { getMyListDetails(); getAdminValue(); } }); function getMyListDetails (){ try{ $.ajax({ url: ...
0
votes
0answers
21 views

Unable to get property 'results' of undefined or null reference [duplicate]

function onSuccess(data){ var title, department = null; $.each(data.d.results, function(index, item){ try{ title = item.Title; ...
-1
votes
0answers
37 views

Unable to get property 'results' of undefined or null reference on debug is coming [closed]

var qString = null; qString = getdetails(); $(document).ready(function () { if (qString != null) { getMyListDetails(); getAdminValue(); } }); function getMyListDetails() { ...
1
vote
1answer
858 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 ...
0
votes
0answers
21 views

need to add a button,which on click,enables “read”users to edit the list value and then save them [closed]

<h1 align="center">DemoList</h1> <table id="maintable"> <tr> <td>Title</td> <td> <input type="text" id="TitleId"/> </td> ...
4
votes
1answer
5k views

How can I create Ctrl-F Functionality from a search field?

I have a long page on SharePoint 2010 that needs to be searchable for keywords on that page. Apparently the target group is "unable/unwilling" to learn Ctrl-F so I was asked to create a permanent ...
2
votes
1answer
1k views

SPServices Autocomplete and dynamic CAML query

I have two Text filter web parts (Project and Customer Name) with Apply Filters button for one list. There is a SPServices.SPAutocomplete on each and it works great. Now, I want to show the values in ...
4
votes
2answers
575 views

Bootstrap in HTML Web Part

I got HTML/CSS from our Designer to implement on a Sharepoint 2010 page. This page is using bootstrap. I implemented it with HTML Web Part and also tried to split the web page layout and work ...
0
votes
2answers
29 views

How to retrieve image description using REST API to use in a webpart?

I want to create a Webpart as image slider which contains the images from an image gallery. I want to show each image's description under it in the image slider. But have some problems regarding that: ...
2
votes
2answers
2k views

Get email and name from people picker SharePoint 2013 online

I've tried retrieving data from a multiple people picker field on a SharePoint 2013 form in numerous ways, the best I've done is getting the display name. If it all possible i'd like to retrieve the ...
0
votes
0answers
17 views

using rest and ajax , i need to get admin field,which has creator name [duplicate]

qString= null; var qString = getdetails(); $( document ).ready(function() { if(qString != null) { $.ajax({ url: _spPageContextInfo.siteAbsoluteUrl + ...
0
votes
2answers
53 views

move list element to another list with Jquery

I have two lists and I would like to move a list item to another list on a webpart button click. Is there a way to move items using jquery in sharepoint? Thanks.
0
votes
0answers
18 views

i want list tool tab to be present on page load rather than appearing after click event

This code is working on click event but not on page load: $(document).ready(function(){ var elem = document.getElementById("MSOZoneCell_WebPartWPQ2"); if(elem != null) { ...
0
votes
0answers
15 views

Dynamically display media content in pager viewer when selecting items from a list

I want to display 2 webparts - side by side - on a page. The left side is a Page Viewer web part that is linked to a panoscan image URL and the right side is a list of panoscans with a URL column. ...
1
vote
2answers
47 views

Select 5 items with caml beginning at the fifth row

I can get the 5 first items of a list with caml : var collListItemToBeUpdated = ""; var listItemToBeUpdated = ""; var enumerator; function getItemsToBeUpdated2() //this function ...
0
votes
1answer
25 views

camlQuery rowlimit not working on a list

I'm trying to update some elements in a list with client object and caml query. It's working, my values are updated, but for all the items (around 15) even I have a rowlimit of 5 : var ...
4
votes
2answers
571 views

Get the node value using js or jquery in SharePoint Designer

<tr> <td width="25%" class="ms-vb"> <b>Inclusion:</b> </td> <td width="75%" class="ms-vb"> <xsl:value-of select="@Inclusion" /> ...
0
votes
1answer
28 views

Sharepoint 2013 Client Side Rich Text Editor saving troubles

I'm trying to get a rich text field from the DOM and save it via javascript and its Sharepoint Client Context.I have an XSL form that creates a Sharepoint Form Field with a structure that's something ...
2
votes
2answers
2k views

Sharepoint custom list: Hiding and showing column based on drop down dependancy

I'm trying to add javascript to the dispform.aspx page of my form to hide certain columns/fields based on a dropdown menu. When I add the code to the CEWP it simply adds text above the fields; the ...
0
votes
3answers
42 views

How i can set the “Due Date” field (on the fly) to be equal to Today date, when the “Status” dropdown list is changed to “In progress”

I am working on an issue tracking list inside SharePoint enterprise server 2013, where it contains these fields:- “Due Date” Item status Now our customer, asked us to implement this ...
1
vote
2answers
2k views

how to access input element in parent from inside iframe in sharepoint

I have the following jquery code and I have inserted it in an html page where I call it inside an iframe in a SharePoint page. I am using this line of code to get the id from the control in the parent ...
0
votes
1answer
27 views

Cancel on modal confirmation dialog not working

I have a simple modal popup dialog launched on the "register" button of a "new element" form : $( ...
0
votes
0answers
13 views

need to set rows into coloured bckgrnd depending on status [duplicate]

Here is my code: (function () { // Create object that have the context information about the field that we want to change it's output render var priorityFiledContext = {}; ...
1
vote
1answer
761 views

Jquery is not loading properly in Internet explorer 11 browser until page refresh

Im using this jquery plugin called Slidorion with SPServices. On firefix,Chrome when the page loads first it works all good. But in IE 11 it doesnt work on first load until i refresh it. I have ...
0
votes
1answer
35 views

Popup dialog to confirm a form

I have a list, and when I want to add an element inside, I want a popup dialog to ask me for a confirmation. If cancel is clicked, it stays on the form, awaiting a user's action on the form ; And if ...
0
votes
0answers
32 views

Get admin(user)name from list item via REST API

While retrieveing list items using ajax rest call, I am not able to get admin (user)name, this is the code qString= null; var qString = getdetails(); $( document ).ready(function() { if(qString != ...
0
votes
2answers
653 views

Conditionally hiding/showing fields on a custom newform using jquery

This is something I have been struggling with for some time now. I have looked all over the internet at different forums and blogs trying to find a solution and I have finally gotten ALMOST there. I ...
0
votes
0answers
21 views

Not able to get “Address” field as it is rich text and multi line column.Error occured :“undefined”

{ $.ajax({ url: _spPageContextInfo.siteAbsoluteUrl + "/_api/web/lists/getbyTitle('My list')/items/? $select=Address &$filter=ID eq "+qString, ...
0
votes
1answer
51 views

why my jquery is not working to validate my form? PLEASE help

I have 3 dropdowns with 3 related textboxes combo so if dropdown 1 is <> 'Yes' then textbox 1 must not be empty, if dropdown 2 is <> 'Yes' then textbox 2 must not be empty and so on. In ...
3
votes
1answer
46 views

Accessing Sharepoint 2013 list from a plain old HTML page (not on SharePoint server)

I have a STRONG need for this. I created dynamic HTML pages that use AJAX to bring in XML files from an Excel spreadsheet. I REALLY want to store the list information in SharePoint 2013 and access ...
0
votes
1answer
23 views

Get the month name using html date control

I am using HTML controls to get interact with SharePoint 2013 list And performing CRUD operations using JSOM between forms and lists My form is having HTML date control.And on the submission of it, ...
0
votes
1answer
57 views

code to get title from list and assign to txtbox..but control doesn't reaches ajax block

var qString = null ; $(document).ready(function () { try { getDetails(); } catch(e) { alert("error occured at ready method" + e.message); } }); if(qString != null) { $.ajax({ ...
0
votes
1answer
33 views

Refresh parent page after calendar event creation

I have created a new page with a default calendar webpart. Below is what I'm doing. Click New Event and the popup gets opened Fill-in the event details Click Save and the event gets saved Calendar ...
0
votes
4answers
33 views

how to get this error solved? error is saying …expected identifier in function getdetails

Below Code giving an error called "expected identifier in function getdetails" $( document ).ready(function() { qString = getdetails(); }); function getdetails( { var result = ...
4
votes
4answers
4k views

In 2013 using JavaScript how do you empty a people picker field?

In SharePoint 2013, I want to delete all existing values in a people picker field using javascript or jquery. Simply using .removeAttr('value') or .val("") does not work.