Javascript is a dynamic computer programming language, most commonly used as part of web browsers, whose implementations allow client-side scripts to interact with the user, control the browser, communicate asynchronously, and alter the document content that is displayed.

learn more… | top users | synonyms (2)

0
votes
1answer
45 views

Please correct my javascript code

Please i need help with my script,I want my page to generate thumbnails directly being read from a share point list, below is the already existing code : <script type="text/javascript"> ...
0
votes
1answer
451 views

SharePoint 2013 App Office 365 copy list item

I try to build an SharePoint hosted app, have started with a custom menu action. When I choose it I want to copy the selected item and automatically change some metadata for it. Problem is I can't ...
0
votes
0answers
26 views

App for Office (Office Add-in) Web Page Possibilities

I am trying to develop a task pane add-in for Word. Everything online says that at a minimum, the add-in requires a web page, javascript file, and a manifest. Does the web page have to be done in ...
0
votes
3answers
36 views

CRUD Operations in Sharepoint Online using JavaScript on external site

I am currently trying to create a List Item in my SharePoint 2013 online environment using JavaScript Code on an external Website and domain. Basically I have no idea where to start and I am not sure ...
0
votes
2answers
23 views

Get data from a Sharepoint site for a web application

I would like to get data from the SharePoint site, but I don’t know if it is possible by using JavaScript or PHP or something else. After getting this and saving it in variables, I would do different ...
0
votes
1answer
11 views

Own Title on hover - load other field

I have custom list named LIST1 with fields ID,Title,ShortComment,LongComment. I'am using view webpart , where only fields ID,Title,ShortComment are visible. Is there some way to show field ...
1
vote
1answer
1k views

Obtain FedAuth Cookie with RST token

I've got a phone gap application which should contact ADFS with a RST to obtain a SAML token then should pass this token to STS to obtain a FedAuth Cookie which is finally used in the header of REST ...
0
votes
0answers
41 views

Using d3 in sharepoint web interface

I am building a website for a research center under my university domain. I am trying to create a data-driven document, with autoupdate based on lists. Yet since server-side access to sharepoint lists ...
3
votes
2answers
3k views

Help with getting the value of a look up field

Currently, I am using an ajax request to access the list items. The fields that are not lookups come as expected but the lookup fields come across as an ID of the object that corresponds to its ...
0
votes
1answer
1k views

Upload a document in a specific folder

I would like to set a specific folder when I open the upload.aspx page to help. I tryed to look in the dll but the license of reflector is expired. UPDATED Maybe this post can help ...
1
vote
1answer
549 views

How to get server datetime without postback using JSOM or services

My application page may be long time without reloading, and user changed system date and time. And I need to know datetime from server, not from client.
3
votes
1answer
3k views

Getting Version History and What Field has Changed

I am using the GetVersionCollection to get the history information from my list. This seems to be working fine; however, what I need to do is get the version history of the individual item which has ...
0
votes
0answers
15 views

How can I customize a Navigation?

I have a navigation bar that contains links to other parts of my site. It wasn't created by me initially, so I wanted to dismantle the script that customized it to see how it worked. I screwed up ...
0
votes
1answer
23 views

Getting error from display multiple selected external list item javascript

So here's the javascript I use to display item name of selected item from an external list: <script type="text/javascript"> var targetListItem; function ShowSelectedItems() { ...
0
votes
4answers
1k views

SP2013 online : set_formDigestHandlingEnabled Error

I get the error : Object doesn't support property or method 'set_formDigestHandlingEnabled' when I try to get the current SPContext object from javascript code in an Office 365 site. I am ...
1
vote
1answer
34 views

Copying all the field's value of a list to other list using javascript

This JavaScript code copies title field of one list to other list. <script type="text/javascript"> ExecuteOrDelayUntilScriptLoaded(retrieveListItems, "sp.js"); var siteUrl = 'url'; ...
0
votes
0answers
21 views

How to create custom user profile properties using javascript?

Is there any way to create an user profile property using the sharepoint online javascript api? if not which is the correct way to provision custom user profile properties for an app Thanks
2
votes
2answers
2k views

How to modify the sharepoint 2010 NewItem2 function?

In sharepoint 2010, I want to add javascript to the alerts popup window page, but I don't want to modify the actual layouts file. I want to dynamically insert javascript in it. Basically the button to ...
-4
votes
3answers
109 views

Get all items from list

How do i get all items from list? Here is my code, function checkFreebookingdateTime() { getListCalender = document.getElementById('CalenderListDrop').value; spHostUrl = ...
0
votes
0answers
22 views

Send meeting invite to Lotus Notes

Using jQuery ajax and SendEmail to send messages from SP to Lotus Notes. (Anders help me get it working in this thread)[SP.Utilities.Utility.SendEmail with additional headers [javascript] (Thank ...
1
vote
2answers
31 views

Get ID after inserting Item into SharePoint 2013 Host Web List

I am currently creating a SharePoint 2013 hosted app on Office 365 and I currently have some JavaScript that inserts item into a host web list. I wondering if it is possible to get the ID of the item ...
3
votes
3answers
243 views

Custom calendar display template / JS Link

I'm looking for a nice custom calendar. Display template or jslink, doesn't matter. Something like that would be awesome: http://deviprsd21.github.io/Calendario/index2.html Has someone tried to ...
10
votes
2answers
260 views

SP.Utilities.Utility.SendEmail with additional headers [javascript]

Want to use the built in SendEmail with javascript and jquery. Found this code and got it working -- sends the email -- using the code below: var appweburl = "https://example.com/site"; var ...
5
votes
4answers
8k views

How to add javascript and css to a SharePoint 2010 webpart?

What is the proper way (i.e. without having to manually copy the assets to any sharepoint folder or anything like that) to add custom javascript and CSS to a SP 2010 web part? I would like them to be ...
0
votes
0answers
35 views

Javascript - How to get content of HTML of list items in SharePoint 2013

I want to create a PDF file which will contains information of all items in lists related to a specific itemID. So my idea is create an HTML array of that itemID, then post it to server and use ...
0
votes
5answers
1k views

get the attachement files from REST API

I use REST API SharePoint 2013 to get the items from list: And and I want to get the Attachments Files, How can i do that? This the code : function getListItems(url, listname, query, complete, ...
0
votes
0answers
34 views

JS Link with same exact code only works on some lists

I have tested the same code on multiple lists using JSLink and it only works on some lists. I am using the right path and the code is the same so why doesn't it work?
0
votes
1answer
25 views

How to authenticate a SharePoint 2013 REST API request from an HTML Application?

I am creating an HTML application that needs to access data from SharePoint 2013 List using REST APIs. eg - sharePointsite/_api/web/lists/GetByTitle('Test')/items. The HTML application is on a ...
2
votes
1answer
1k views

How to open file in adobe reader using command line without checkout from Javascript?

I am working on print functionality. I am printing the PDF files (uploaded in SharePoint Library) using Adobe Reader command line from javascript. I am using ActiveX object to call the cmd. refer ...
0
votes
1answer
843 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 = ...
2
votes
3answers
6k views

REST Adding New List Item

I am currently using office 365 and lots of REST queries to display data. However I am now creating my own forms using bootstrap and JQuery. However, how do I use REST to add the data to the list. ...
3
votes
1answer
950 views

Get selected items from JavaScript in the document library view

I have a page in which I have placed XsltListView web part to show the view of the picture library. Above that view I have placed a link using Content Editor Web Part which redirects to other web ...
1
vote
1answer
28 views

Set Like to folder (Video) from Javascript

Right now I get the information from a video like this: var ctx = new SP.ClientContext(siteUrl); var site = ctx.get_site(); var web = site.openWeb(webUrl); var folder = ...
0
votes
1answer
27 views

Get video item from list with Url with Javascript

right now I have the Url from a video item, that im showing in a Video native webpart, but i need to get the title and description for processing. For that, I only can use Javascript, so, I get the ...
0
votes
1answer
65 views

Using SPServices operation 'GetListItems' how to construct a CAML Query joining two lists?

Using SP2013 - JavaScript - $().SPServices() - operation 'GetListItems' - how would I construct a CAML query that will join two lists where list 'A' has a reference to list 'B' specifically having a ...
0
votes
4answers
1k views

Check user from sharepoint group and redirect

My requirement is when someone login to site and if he belong to 'owner' group it need to navigate immediately to specific site and if he belong to member group then need to navigate to another ...
0
votes
2answers
2k views

How to Get User Active Directory Groups in Sharepoint Online

I can't find any documentation or a way to find if a user belongs to an AD group with Javascript neither with the REST API or with the client model JSOM. I have a page in a Sharepoint site and I want ...
1
vote
1answer
22 views

Best Practices for small changes from Quality to Production

I am at a new job, and how they manage development and then deployment to production is strange. So, I was curious what is the best practice for this scenario? A user just wanted a form field to have ...
0
votes
4answers
81 views

number field to limited digits without comma in sharepoint list

On my SharePoint online site I have a custom list with a Number field.I want to apply validation on this field so that the Number should not be less than or greater than 5 digits and it should be ...
1
vote
0answers
23 views

Invalid JSON error while checkin of file on IE

I am facing an issue while checking in the file using REST API. The code below works Chrome Firefox and IE except the version 11.0.9600.17914. I tested it on my local IE version 11.0.9600.17905 and ...
0
votes
1answer
515 views

loading multiple files from custom action with SP.ClientContext

I made a custom action that calls GetSelectedListItemAsString(). it should load the files 1 by 1 but somehow it does not load the files can somebody help me with it underneat a code snippet of the ...
0
votes
1answer
23 views

Hide Fields and Columns on SharePoint List form [duplicate]

I have a situation where I want to show/hide my SharePoint list column / Fields in a list form based on the value of some other field on the form. Example : I have 2 dropdowns say "IssueType", ...
0
votes
0answers
50 views

Commit using JavaScript

I 'm looking for a solution to submit an item using JavaScript for a button already placed on the form like this..... $( ...
50
votes
10answers
23k views

How do I know if the page is in Edit Mode from JavaScript?

Is there a way to find out if a page is in Edit Mode from JavaScript? I know in on the server-side can be found using SPContext.Current.FormContext.FormMode but I can't find any means of doing it ...
1
vote
1answer
859 views

Hiding Column on a List View with Grouping

I have a list that I need to dynamically hide columns on based on user. Sort of a rudimentary Column Level security type deal. This is being done through Javascript and JQuery to simply not display ...
2
votes
2answers
56 views

How to set custom DIV error message using JavaScript

On Validation error of columns I would like to set a custom div with an error message. I currently have the working code to populate the div however I do not know how to make the IF statement to show ...
2
votes
1answer
28 views

Auto populate Share On Your Newsfeed Text

I have a requirement i want to auto-populate the text in the "Share on Your Newsfeed" textbox with some dynamic text. The background is we have a quiz and at the end of that we want user to share ...
2
votes
3answers
8k views

SharePoint COM - SP.ClientContext(siteUrl) - Object doesn't support this action

Using the SharePoint COM to update a list item, but my function is failing. function updateProjectEC(projID, totalEC) { if(totalEC !== 0) { console.log("projID: " + projID); ...
1
vote
1answer
27 views

SharePoint REST API Post date from Input value

I am currently developing a SharePoint 2013 app and I have ran into an issue. I have REST api that runs when the user tries to submit data, I have managed to get the Title field to submit the ...
0
votes
1answer
469 views

Copy a file from the RootSite to a SubSite

I'm trying to add a file from a Rootsite to a SubSite using REST API. There some code: $.ajax ( { url : _spPageContextInfo.siteAbsoluteUrl + "/_api/web/getFileByServerRelativeUrl('" + selected + ...