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)

4
votes
3answers
5k views

Query SP2013 Managed metadata term store

I was wondering if it is possible to query the Term Store via the REST API or Javascript Client Object Model in SP2013. I can't quite seem to work out the naming scheme for the REST API to discover ...
2
votes
0answers
27 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 ...
0
votes
2answers
14 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.
1
vote
2answers
1k views

Get ContentType name with select fields

I have a problem with getting the ContentType name for a item. when i use http://sp2013dev/sites/mms/_api/web/lists/GetByTitle('List')/items(1)/?$expand=ContentType I get as response all Fields ...
1
vote
2answers
828 views

How to use SPServices search sql query - getting malformed query

I am using the SPServices javascript library to make a search request to sharepoint 2010 search. I am trying this query: queryText = "<QueryPacket xmlns='urn:Microsoft.Search.Query' ...
0
votes
0answers
24 views

Get listitem through another listitem on the same row (select changed)

I'm sorry about the mess! but here I go My sharepoint list has 3 columns= Title, Priority, Status I want to get all the Status items into a dropdownlist, and when i click any of these Status items i ...
1
vote
3answers
7k views

Retrieving list items using Javascript and Caml query

Hi guys I'm new to SharePoint dev and working on a project to retrieve list items. I have followed the instructions from http://msdn.microsoft.com/en-us/library/office/ee539350(v=office.14).aspx and ...
0
votes
1answer
39 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
926 views

Add custom web application/page which uses files from other folders

I've created a JavaScript web browser game. The HTML page, Game.html, within folder Game references several other JS/jQuery/CSS files stored in sub folders. I simply want to add the Game folder, ...
0
votes
2answers
5k views

How to get document URL of a Document Library item given Item ID and URL - using javascript?

I have access to a document library item URL. E.g. /Documents/Forms/DispForm.aspx?ID=585 Based on this information, I would like to get the URL of the document associated with this item. E.g. ...
2
votes
1answer
595 views

“Type SP.ULSTraceLevel has already been registered” error while applying javscript to NewForm.aspx

I have a custom list in which I want to apply the javascript in new form of that list. Javascript loads the user profile property of the entered user in the people picker control. I am getting ...
2
votes
3answers
60 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
25 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: ...
10
votes
6answers
4k views

“a is null” error in vanilla SP2010 install

I'm setting up an SP2010 VM for dev testing purposes. Our vanilla install has no other components present and is throwing JS errors in Chrome and Firefox. In Firefox (v13): a is null ...
0
votes
0answers
53 views

List all site collections in SP Online

Is it possible to get list of site collections using JavaScript Object Model in SharePoint Online? I would like to display a list of Site Collections in left navigation. something like below. ...
2
votes
1answer
38 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
1answer
32 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 ...
0
votes
1answer
10 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 ...
0
votes
0answers
15 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
47 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
2answers
33 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 ...
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?
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 ...
1
vote
0answers
17 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
23 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 ...
1
vote
1answer
34 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 ...
1
vote
0answers
15 views

Close modal after form have “saved”

Im trying to trigger a page reload after my editform is done. I know that I can create a js function, "presaveitem". But this is called before the item is saved. I need to trigger some custom JS ...
0
votes
1answer
35 views

SharePoint My site & Delve Javascript Injection

I have done Branding through Javacript Injection (Custom Action ) in Office 365 My site. Now office Default my site about me page change to Delve. In that Delve page (Me.aspx) my javascript ...
0
votes
0answers
18 views

One script blocks other

I have been developing a workflow app on our SharePoint 2013 site. I have two scripts that I want to add to the custom new item form. Each of them (if only one is present on the site) works fine. The ...
7
votes
1answer
522 views

Configure Navigation Inheritance when create site with Rest API

I wonder how do I keep the navigation bar of the parent site when I create a subsite. Below is the code I'm using to create the subsite and thought it might be some parameter that I could use to do ...
0
votes
2answers
33 views

Should we consolidate all form customization javascript into one file?

On the project I am working on (SP2013 on-premise), almost all the form pages (Newform.aspx, DispForm.aspx and Editform.aspx) have added a Script editor webpart with JQuery to customize form layout ...
0
votes
1answer
73 views

Jquery fullcalendar - how to make current month (days) unselectable

I am building a SharePoint-hosted app in SharePoint. Basicaly it is a time planning app. I used a jquery calendar plugin (fullcalendar). My question is I have a "lock" button. When user clicks the ...
0
votes
1answer
29 views

How can I set different event color that are fetched from SharePoint list?

I'm developing sharepoint hosted app that can fetch events from sharepoint list and put on fullcalendar monthly view. I have suceeded to fetch the events but all calendar events have the default ...
0
votes
2answers
349 views

Notify item update by JavaScript

I created a popup window that updated the metadata information of my item. When the operation of updating is complete I would like to close my popup and show the notify alert. I succeed to close the ...
0
votes
1answer
9 views

Image Overlay with Text using javascript in Sharepoint referencing to a “List Library” (adjust frame size)

Below is my code for displaying images with text overlay (referencing from one of my list). <style type="text/css"> .myFrame1 { position: relative; overflow: auto; } .myFrame1 li { ...
0
votes
0answers
29 views

Get Taxonomy Terms, GUIDs, Synonyms (Other Labels) into Array within a SharePoint Page (not App)

I am using the code below to get terms (Later I will push these into an array). This is based on this article: http://www.vrdmn.com/2012/12/working-with-taxonomy-and-javascript-in.html It is pushing ...
1
vote
0answers
9 views

Save the Webpage content as document to Document library in SharePoint 2010

We have a requirement to save the webpage content as document (PDF/XPS/Image) to SharePoint Document library on a button click. Only client side scripts (Javascript/Jquery) are allowed to acheive ...
0
votes
0answers
13 views

Prevent Full Calendar from rendering on Next click

I'm just trying to make it so when the user clicks on the next button to advance months how do you make it so the calendar does not refresh the data and render it? I have tried lazyFetching but have ...
-1
votes
1answer
35 views

Remove user from group Javascript

Hi I followed another thread but cannot get the following code to work. I changed Line 8 from web to oWeb, error seems to be around line 8/9 I'm trying to remove a user from a group. function ...
1
vote
2answers
43 views

How do I access data in SQL via Sharepoint 2013?

I'm not a SharePoint developer, but I have developed some small ASP/VB.net web pages. Basically, prior to using SharePoint, I have developed a basic portal that pulls data (VB.Net) and sends it to ...
0
votes
1answer
1k views

Add new item to child list and refresh the parent form - multiple lookup

I've created a parent list (Vendors) and a child list (software list). There can be multiple vendors for one piece of software. I've created a custom new form with a link which opens up a modal to add ...
0
votes
1answer
25 views

Get User Password property

How to get User Password property to make Log in the applikation in javascript in SharePoint hosted app. I tried to write user.password but i coudent find it. Please help.
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 ...
0
votes
1answer
59 views

JSOM: Limit calls to SP.ClientContext executeQueryAsync with promises (Angular example)

I have asked myself this question several times before: Is it possible to have a JavaScript function used multiple times from multiple locations returning a promise calling ctx.executeQueryAsync, ...
3
votes
3answers
2k views

How can I implement SharePoint JSGrid filtering and grouping functionality?

I am working on SharePoint JSGrid. I am able to implement the sort functionality in JSGrid. Now I want to implement the grouping and filtering in my custom JSGrid. For filtering we have to attached ...
3
votes
3answers
5k views

Expanding and collapsing sharepoint webparts

I want to implement a collapsing/expanding feature to all my webparts in a certain page and tried the code shown here: http://moblog.bradleyit.com/2009/08/sharepoint-expand-or-collapse-web-parts.html ...
2
votes
1answer
31 views

System.UnauthorizedAccessException when accessing list with JSOM

I try to get items from a list with JSOM. But I get a System.UnauthorizedAccessException with error code 2147024891. If I navigate and authenticate to the site with a browser I am able to access the ...
1
vote
1answer
16 views

KoSP binding failing (undefined) while another one works

I'm trying to link a list of my own creation up with KoSP. I created the list "Employees" which was used in the tutorial and got it to work perfectly, it consistently displays the Employee list and ...
1
vote
3answers
2k views

List view loses focus when additional webpart added to page

I have a list page to which I need to add an additional webpart (in this case, a more powerful filter). However, the ribbon doesn't appear because the listview does not have focus. This is easily ...