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
18 views

Put a file in a library with a File-Upload on sharepoint designer

I work on sharepoint designer 2013 and I try to put a file(The file can be an image, a text file, a powerPoint, a videos or any type of file) in a library with a FileUpload. I didn't find any code ...
1
vote
0answers
8 views

Determine when a boolean function has changed from true to false [closed]

I have a Print button on a web page that opens a PDF in a new window. I have function, lets call it pWindowNeeded this holds a boolean value. function pWindowNeeded() { if ( newPWindowNeeded == 'Y') ...
-1
votes
1answer
23 views

Function expected _spFormOnSubmitWrapper

I have overridden SharePoint ribbon save function using _spFormOnSubmitWrapper() on my js code. I am getting "SCRIPT5002: function expected" error when I try to check in page when debugger ...
0
votes
2answers
39 views

Get current view in Sharepoint Hosted app

I am developing a Ribbon action sharepoint hosted app where user selects any number of items and clicks the ribbon action to Print the list items. In the SharePoint hosted app page I want to retrieve ...
0
votes
1answer
41 views

How to get item id of copied file from SharePoint javascript api

I want to copy multiple files from one Document Library to another with metadata and column values associated from the copied file to the destination file. I am using SharePoint 2013 JavaScript Client ...
-1
votes
1answer
35 views

count rows in longest sharepoint list javascript

I want to get count rows in a List some have longest name while I am looping through all Lists. I want it in JavaScript
0
votes
2answers
34 views

How to update a Client Web Part / App Part?

When I add a client app part to a page, then make an update to it in Visual Studio (or the app it's attached to) and then redeploy, the client web part disappears wherever it's installed. So every ...
1
vote
1answer
68 views

Get value from textboxes inside dynamic table using selector

I am creating one row every time im clicking on the btn Add row. In this row there is 3 textboxes and one lable(span) and one buttom. I want to reach by selector the value in the (input type:text) or ...
1
vote
1answer
33 views

How to fetch highest value item from SharePoint list

I created a Custom List in developer Site. In that List I created a column called Totalsumma and added some numeric items like "324", "567" etc. How can I fetch the highest value from that column. ...
1
vote
2answers
34 views

Cant fetch SharePoint list column items with JavaScript

I cant run my code. I get this error message: 0x800a139e - Runtime Errors in JavaScript : The property or field has not been initialized . There has been no request or has not been performed. It ...
1
vote
1answer
39 views

Approve Permission to list item in SharePoint 2013

I have to set approve permission using JavaScript client object model. I have used below code to set other permission. But for Approve it is not working. function ...
0
votes
0answers
15 views

Tab when on Calendar page remove the - calendar

I have a calendar and when I am on the page in the tab it takes the list name followed by - Calendar. Is there anyway to remove the -Calendar part which I believe is out of the box?
0
votes
1answer
25 views

Keep selection when tabing after refresh [closed]

I have a page which automatically reloads after a certain amount of time. The problem is I have keyboard only members who can only tab across the page, jumping from anchor to anchor, but when the ...
1
vote
1answer
37 views

Get Display Name from Account Name

I have used SPServices to get a user profile by their name, and in the process, I wish to display their supervisor's name as well. I can pull this name from the user's object, but the supervisor is ...
0
votes
2answers
112 views

Get values from Sharepoint ClientPeoplePicker using JQuery

How do I get value from ClientPeoplePicker using JQuery. I have tried below code, but not getting the results. function getPickerInputElement(identifier) { var tags = ...
1
vote
2answers
68 views

Get multiple list items by respective IDs - Javascript object model / REST API

I am developing a custom ribbon action as Sharepoint hosted app, where the user can select any number of list items and click on the action. On click of the ribbon action, the app redirects to the app ...
0
votes
4answers
69 views

What is the formal way to hide fields from the buit-in New and edit forms using jquery

I am facing some problems in hiding fields from the New and edit forms, if I chose to do so from the Content Type settings and set the column as hidden. As there seems to be some scenarios where these ...
0
votes
1answer
14 views

How to show the “new” gif image when a list's date column is equal to Today()?

We have a list with column "Publish Date" and "Title". User want to attach a "new" gif image at the end of "content" if "Publish Date" for that row is equal to Today. From my understanding, the OOB ...
0
votes
0answers
59 views

Sharepoint 2013 - Redirecting to EditForm.aspx with ID of newly created NewForm.aspx

I've scoured the web for a solution but have unable to find one thus far. I have a master-detail view built from a Request form (Parent) and a Request Details form (Child). I am trying to simplify ...
2
votes
1answer
32 views

How I can reset the People Picker height on IE

I am facing a problem on IE 10 32-bit, where the People Picker will not show the people correctly, as the area seems to be minimized. Here is what I get from IE developer tools:- Now if I manually ...
0
votes
2answers
81 views

Using Client Side People Picker in SharePoint Page Not App

I have seen plenty of examples of how to use the Client Side People Picker in a SharePoint App, but can't find anything related to how to leverage it within a SharePoint Page on a SharePoint Site. I ...
1
vote
1answer
21 views

Increase reponse size limit in sharepoint cross-domain library

As mentioned here, the response-size expected shouldn't be more than 200 kb when using the cross-domain library with web proxy. Is it possible to increase this limit? I am trying to build a ...
1
vote
0answers
46 views

Javascript won't work in Chrome

I've a problem with my SharePoint-Javascript. In IE and FF it works propably fine, but in Chrome it won't work. The script is called on a refresh of the main page and auto adds some users in a ...
0
votes
1answer
30 views

How to use GroupBy in CAML and produce lists with headings for each group

Using SharePoint's javascript object model, I'm looking for a way to group records in unordered lists with their category (what they're grouped by) as a heading on top. I have gotten so far as to ...
0
votes
0answers
33 views

SP.UI.ModalDialog.showModalDialog errors when trying to render a Wiki Library Page

I'm getting an error when trying to show a wiki library page using SP.UI.ModalDialog.showModalDialog. Other URLs work fine but not wiki library pages. SP.UI.ModalDialog.showModalDialog({"url" : ...
0
votes
2answers
41 views

CSR only works on a List View when same code is present in a Script Editor web part and also a JS Link

I'm still pretty new to SP and I've been trying for weeks to get JSLink to work on a SP 2013 List View (no formatting would ever show up and I didn't know if it was the javascript code itself or the ...
0
votes
1answer
35 views

Opening a URL in current window by using window.open in SharePoint 2013

I have a question about opening a URL in current window by using window.open. It is a master-page in SharePoint 2013 The condition is : If current window is the site AAA, user opens the site BBB in ...
1
vote
2answers
52 views

jquery.done runs before when - deferred promise

I have placed a SEWP in an editform and the code is supposed to do the following: check if the logged in user is site administrator and web administrator - if not then hide a specific field. These two ...
1
vote
2answers
50 views

Using JSLink to manage and output list groups and items

so I am currently using JSLink to change the look and feel of my List view, but am getting a little stuck in getting the HTML hierachy of my elements right. This is my current code... function ...
1
vote
1answer
41 views

Custom calendar colors when move forward or backwards in months

I've been able to get custom colors working on my calendar, but when I go to previous month or next month the colors don't persist. To attempt to remedy this I've tried making a click event to get ...
0
votes
2answers
33 views

Email address of Logged-in User using JS Link - undefined

Someone can help me? I use JS link for list and need return current user email. Full script should change the fill line where an email user coincides with the current user: ...
0
votes
1answer
28 views

Javascript + SPServices while executing the code doesn't show a loading modal nor modifies a button attribute

basically this is my code $('#saveButton').click(function(){ showLoadingDiv(); $('#saveButton').attr('disable','disable'); }); function showLoadingDiv(){ ...
-1
votes
1answer
26 views

Get the proxy authentication once we click on a specific page

SharePoint 2013 request: we need to display the proxy authentication window once we click on a specific page link "/index.aspx" .... it can be done using JavaScript ???
0
votes
2answers
23 views

Scrip sample file? to connect sharepoint 2013 and sql server in a form

I want to create a template in sharepoint 2013 and connected to an SQL server table, so it will populate with the info entered in a form.
0
votes
0answers
40 views

Uncaught Sys.InvalidOperationException: Sys.InvalidOperationException: Object Raphael already exists as a class, enum, or interface

I am having a problem with the Navigation menu which does not show up to normal users. So, later today I saw this error when I debugged my page. This error shows on page load: Uncaught ...
2
votes
0answers
52 views

unexpected response from server

I am using javascript to load data from list. But every now and then i get error Unexpected response from server Sometimes i get and sometimes i dont. I googled and someone suggested to free memory ...
2
votes
3answers
89 views

javascript- How do I create a global variable among all pages

I implemented a toggle in my home page through javascript in content editor web part, the toggle has state between 1 and 0. Now I need the exact same toggle in all other pages of my site, but I'm not ...
0
votes
1answer
42 views

How to get SharePoint ID given only item URL?

Looking for the simplest possible solution, but needs to be JavaScript/jQuery if at all possible. I have an XML document that I am transforming using XSLT to render an HTML page. This XML document ...
0
votes
2answers
16 views

How can I link to the Upload Document page without using the GUID of the document library?

Currently I'm showing the Upload Document screen in a modal so my users can upload a document to a Document Library. The URL I'm calling to display that modal is this: ...
0
votes
1answer
47 views

How do I get all current users from a site

I need to get all currently active (not removed users) from a site. I have the following JS that gets all the users but some of them are old users that have been removed from the site (still exists in ...
0
votes
1answer
18 views

Accordian Jquery Events for Customised List forms

Want to understand how do we differentiate Submit/save event in customized list forms. eg: When we are in Section 1 the submit/save should correspond to data being submitted in section1 when we are ...
2
votes
2answers
118 views

Open modal dialog from webpart in the parent page

I have written a SharePoint application which is embedded in a page as an AppPart. Now I want to open a modal dialog in the parent page. This code opens the dialog only in the current AppPart: ...
0
votes
0answers
36 views

Limit checkbox selection in survey

I am currenly trying to implement a survey with a limit of checkbox selection. Out of 42 checkboxes, the user will only be able to select 8 of them. If more than 8 checkboxes are checked, there should ...
1
vote
2answers
58 views

Call Javascript function only after Success?

I need to alter fields if 4 lists when a button is pressed. I've created a single CSOM (javascript) block code that I pass a parameter to. This being ID of item and the ListName. Then I call the ...
0
votes
1answer
7 views

Javascript search is working in sharepoint 2007 and not in sharepoint 2013

Javascript search is working in sharepoint 2007 and not in sharepoint 2013. Is there version problem?
1
vote
0answers
23 views

structuring Javascript for sharepoint code

I have been reading many articles and going through many video tutorials, they explain almost all patterns from javascript (Module pattern, Prototype pattern, Revealing Module pattern and etc) with ...
0
votes
1answer
38 views

Custom code in webpart HTML editor

I need to implement a simple show/hide div when a user clicks on a specific area of a map in sharepoint. The following code works perfectly in all browsers, but when i paste it exactly as is in the ...
0
votes
2answers
71 views

How to collapse Ribbons bar when page is loaded?

When user click on an item display view (DispForm.aspx) the "View" ribbon is always expanded by default. It is annoying sometimes. How can I to make it collapse (not hide) by default? When user need ...
1
vote
1answer
63 views

List all page under sub site with Sharepoint CSOM

I try to get all pages under a subsite with javascript. I'm very new to Sharepoint. I built an object to handle these queries, but i can't retrieve the pages. I can get the Documents list. Please ...
0
votes
1answer
42 views

Getting displayed month as an integer from fullcalendar

I wanted to fetch the current displayed month from fullcalendar with the following code: function GetCurrentViewedMonth() { var date = $('#myCalendar').fullCalendar('getDate'); var ...