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

learn more… | top users | synonyms

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
39 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
68 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
66 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 ...
0
votes
2answers
73 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
3answers
59 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 capability:...
0
votes
1answer
34 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 = {}; priorityFiledContext....
0
votes
1answer
58 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
43 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
0answers
23 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
2answers
54 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: ...
3
votes
1answer
80 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
27 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
72 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
1answer
61 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
4answers
36 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 = window....
0
votes
1answer
66 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 ...
0
votes
1answer
36 views

Jquery to display formatted value in content editor

I'm completely new to jquery and by now I'm not able to use it. Can anyone help to write a piece of code, which will display single item (given ID) from the list 'CounterList', column 'Counter' to a ...
0
votes
1answer
39 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 ...
1
vote
1answer
36 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
59 views

how to refresh the page when i click the asp image button? [closed]

When i click the image button, page should refresh and show the data i tried in javascipt ,jquery but i am not getting please someone help for this.. Thanks in Advance. here is my code : roport....
0
votes
1answer
30 views

Switch list webpart view

I am looking for following solution with use of jQuery/SPdesigner: Page with some buttons on the top as a control to switch list view located below. Right now I have webparts showing different ...
0
votes
1answer
45 views

Finding Column Average

Created a custom list in SharePoint 2013. I have a column that is full of numbers. I would like to find the average per column. To solve this issue I created a calculated column and applied this ...
1
vote
2answers
89 views

Hide a specific list from 'View All Site Content' using JSOM/CSOM?

I see you can make a list hidden by using SharePoint Designer (http://www.sharepointdiary.com/2013/06/how-to-hide-list-or-library-in-sharepoint.html) which I am not interested in. It is okay if the ...
1
vote
2answers
79 views

HillbillyTabs 3.0 in SharePoint 2013 Select Box Bug

I've got Hillbilly Tabs working great in my on-prem 2013 environment. The only issue I'm running into is with selecting items or documents in the web parts when they are inside tabs. This seems to be ...
2
votes
1answer
58 views

Best Practice for adding jQuery reference in Master Page [duplicate]

I have a site collection on the root directory http://pc51:1001 and a site collection under the sites directory http://pc51:1001/sites/First . I am trying to add jQuery file reference in Master ...
0
votes
0answers
26 views

GET Column data Through query or javascript

I have a table and after table tag one button when button click then get 4th column data Email table...All Email of customer and store in a array. Kindly help me to find out the problem.
0
votes
1answer
46 views

SharePoint Rest API and Javascript Issue

I am using SharePoint 2013 Enterprise. I have 3 List. Now I am creating custom form which fully in jQuery and javascript. From the 3 list, 2 list works as detail so I have two tables where we can add ...
0
votes
1answer
40 views

jQuery doesn't execute in Sharepoint

I'm on Sharepoint project for a client, and I took over the development of website, but the client has the lead of project. Based on a Bootstrap Theme, the project works on local. But, when I try on ...
1
vote
0answers
111 views

SharePoint DateTime Control Change Event

I have SharePoint DateTime control and I want to execute some code whenever the user changes the date using JQuery or JavaScript. Thanks
0
votes
1answer
35 views

ListData.svc not pulling all items from the list

I creating a map using Highcharts and jQuery. The data is being pulled form SharePoint. Everything works just fine, except the fact that the list which contains almost every State is bot pulling all ...
2
votes
3answers
376 views

SharePoint 2013 Top Navigation increasing the size width of the menu drop box to fit text using JQuery

I have made the borders visible for the top navigation menu items. When the size of the text is not long the text appears to be fitting the menu drop box, However when the size increase of the text, ...
0
votes
1answer
34 views

Appending stylesheet from master page to all the iframes(App parts)

I am trying to append stylesheet from master page to all the app parts included in the master page using javascript. Here is the piece of code i worked upon: var d= frames[0].document; d.open(); d....
2
votes
1answer
38 views

i am retrieving date of birth from list..but my o/p is coming as Tue Dec 15 10:30:00 UTC+0530 1992

function OnLoadSuccess(sender, args) { var listItemEnumerator = collListItem.getEnumerator(); while (listItemEnumerator.moveNext()) { var oListItem = listItemEnumerator.get_current();...
1
vote
1answer
56 views

I am getting “<div>​Manyata embassy,Bangalore</div>” with extra div tags,but i want only Manyata…bangallore to be retrieved in sharepoint list

function OnLoadSuccess(sender, args) { var listItemEnumerator = collListItem.getEnumerator(); while (listItemEnumerator.moveNext()) { var oListItem = listItemEnumerator.get_current();...
2
votes
0answers
33 views

Kendo ui Map not working with SharePoint 2010 [closed]

I have to use the kendo ui map for the publishing site. I have added all the references like css, js and added all the html Map rendering code and added with the script editor, it only shows the ...
0
votes
2answers
71 views

In SharePoint 2010, is there a way to display the total number of items that were submitted for the current month?

Example: I entered 10 items in a list this month and now I would like to see the number 10 display in another web part in another page. I don't want to see the individual items I just want to ...
0
votes
0answers
40 views

Add New Calendar item default All Day Event BUT reset when unchecked

I have the below code for setting all day event to yes ( checked) BUT I wanted to do the resetting to the original when unchecked in SharePoint 2010 Calendar event: <script> $(document)....
1
vote
2answers
118 views

Is there any init function in sharepoint hosted app, It should run once when app is installing

I have to create list when SharePoint hosted app is installing. Is there any function call in SharePoint which runs when app is adding or installing in SharePoint site.
0
votes
2answers
97 views

disable people picker 2010

I am using following "code" to disable people picker in custom edit form: $("div[id$='_UserField_upLevelDiv']").attr("contentEditable",false);//Disabling People picker $("span[id$='_UserField']")....
3
votes
2answers
68 views

How to restrict the number of lines to show using jquery or css?

i have created simple Custom webpart. It looks like in that web part, Description display multiple line . i have used html P tag to display Description value <p>​Loream Ipsum​Loream Ipsum​...
0
votes
0answers
30 views

Copying more that 3000 items from custom one list to another by making use of jQuery SP Services in SharePoint 2013

I have a requirement to copy more that 3000 records from one custom list to another by making use of CSOM/jQuery SP Services in SharePoint 2013. My custom list contains around 160 columns. I have did ...
0
votes
1answer
67 views

ModalDialog // change title when dialog openned

I open popup modal dialog with something like this: openInDialog: function (dlgWidth, dlgHeight, dlgAllowMaximize, dlgShowClose, needCallbackFunction, pageUrl) { var options = { autoSize: ...
0
votes
1answer
143 views

Uploading File with rest api and HTML5 api

I am using SharePoint 2013 on premise. I am trying to upload file to the custom list from custom webpart purely jQuery and javascript. In my form I have hyperlink, when I click on it, it will open ...
1
vote
4answers
283 views

change SharePoint list field color using jquery code base on value?

I am working with SharePoint list and I need to change the Number field color if it is greater than 60. I tried to change the code below but it did't work. I also checked all answers but none of them ...
0
votes
1answer
155 views

Fetch the document name from Document Library using Document ID

I have a Document Library with multiple documents. One can select multiple documents even all the documents at a time. I need to fetch the documents name which are selected in Javascript using JQuery &...
3
votes
1answer
48 views

How to know which people picker is which

I'm trying to replace all of the "bad" old-style people pickers on our custom new/edit forms with the new good client-people pickers. With this thread I came up with the idea to use jquery to find ...
0
votes
1answer
24 views

when i fetch Admin name from list , it gives result as “[object Object]” and not the proper admin name

My List Name Age DOB Indian Title Admins Doc Name Doc Id Address <script type="text/javascript" src="https://dept-dev.int.ally.com/sites/EA/Style%20Library/...
0
votes
0answers
31 views

in a list, i have lookup fields and i want to fetch lookup:My Name field to one of text box in html named DocNameId…please provide me code

<h1 align="center">My List</h1> <table id="maintable"> <tr> <td>Name</td> <td> <input type="text" id="NameId"/> </td> <td>Age</td> <...