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
3answers
49 views

retrieving custom list javascript

This is my first attempt at this software and I'm having problems pulling data from a custom list I've created in sharePoint. Here's what I have <script> var items; ...
0
votes
2answers
31 views

Close SPDialog after using Response.TransmitFile

I am using some javascript to open a dialog like this: var options = { title: "Generate Report", url: "/_layouts/ConfirmPrint.aspx", dialogReturnValueCallback : ...
0
votes
1answer
15 views

REST addViewField “Cannot handle the data at position 0.”

I'm currently writing an initialisation script for a SharePoint-hosted application which checks if a list (used for launcher items) exists. If it doesn't, then it runs through a series of processes to ...
0
votes
0answers
25 views

How to load script from hive in display templates

I'm trying to load a script from the hive in my display template. I've tried <script src="/_layouts/15/1033/comany/js/bootstrap.min.js" type="text/javascript"></script> and ...
1
vote
1answer
44 views

REST API ItemCount on oData BCS List

I have a list generated from a BCS oData provider and I am attempting to get the number of items in the list so I can generate a $top on my request rather than bring back only the 100 item generic ...
0
votes
1answer
15 views

Speedometer gauge using calculated columns?

My idea is implement a speedometer gauge at the top of my page that will change dynamically based on the average of a column, what i'm thinking is to use three speedometer images (low/med/high) and ...
0
votes
0answers
24 views

SharePoint 2013 List View App Part - Display all views by default

I would like to display all of the select-able views. By default it shows only the first three views and then a "..." which can be clicked to display the rest. I thought I had stumbled across this at ...
2
votes
1answer
33 views

Query Pages using REST

I've developed a newsfeed app part that currently gets its information from a list, however we're keen to have article pages that we can click through too. So far I've not found anything in the REST ...
1
vote
2answers
37 views

jquery in SharePoint 2010 layouts folder not working

I have placed the jquery library script in the layouts folder on my server: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\CustomScripts for what ever ...
1
vote
1answer
48 views

TaxonomyField.GetWssIdsOfTerm in JSOM (SharePoint 2013)

For building a CAML query including filters by Managed Metadata Column, I need to get the wssid for terms I've only the unique ID. I found a lot of examples using C# and ...
0
votes
0answers
8 views

Topic lock in discussion board in SharePoint 2013

I want to stop user to reply to the topic in the discussion board after one day from the create date. It means user can reply for the topic on the same day only.On the next day it should not allow ...
1
vote
1answer
43 views

change the default format for my “Modified” site column

I am working on an enterprisewiki site collection, and I want to change the date format for the following message at the top of each wiki page:- I want to change the date format to be somrthing ...
2
votes
1answer
34 views

Open docx file in Word (client) from hosted app (SP 2013)

I have a client hosted app (written in Javascript) which includes links to documents in a document library on the tenant. If I point the url's straight to the documents, they simply download. What I ...
1
vote
1answer
70 views

Version Conflict issue with JavaScript Client Object Model code

I'm running into an issue where I'm trying to modify a metadata field on a document within a document library. My code, will check out the document, update the metadata field and then check in the ...
0
votes
2answers
28 views

Apps showing as subwebs

I'm listing the subwebs for users in an SharePoint app. The thing is that the app also is showing my sharepoint apps as subwebs, how come? Ex: Subweb #1 Subweb #2 App Code: var ...
0
votes
1answer
73 views

SharePoint Provider-hosted app: Can't call REST or use JSOM

I have an AngularJS web app that is registered as a Provider-hosted app on an on-premises SharePoint 2013 site (not Office 365 or SharePoint Online). The Provider-hosted app is hosted on a separate ...
0
votes
2answers
47 views

Add javascript to sharepoint 2013 [duplicate]

I must add a JavaScript to Sharepoint 2013. I must add by JavaScript dropdownlist with links. How could I add a Link to dropDownList which will work at site Sharepoint 2013.
0
votes
2answers
42 views

Put a JavaScript to Sharepoint

I have got a problem with JavaScript. I want to add a drop down list control with a link as Value of it. After it will be choosen and clicked button it schould redirect me to chosen link. I tried this ...
0
votes
1answer
25 views

Sharepoint custom builded webpart is not loading javascript

I am using sp2013. I have builded a visual webpart in visual studio. In this webpart I have a hyperlink. I add some jQuery effect on this hyperlink in custom.js. I load in my masterpage first the ...
0
votes
5answers
127 views

Access Denied on ListView Web Part

I have a SharePoint App that I am creating for SharePoint Online. I am leveraging the out of the box SharePoint Snippet in Visual Studio using the listview snippet. List View Snippet: ...
1
vote
0answers
25 views

SP13: Blank Space on Pages

I am recently changed the master page to have the page content to be centered. My focus for the centering was on the home page that successfully centered. However, navigating to the other pages the ...
1
vote
0answers
11 views

socialManager.isFollowed(socialActor) only returning 0 or false, but never true

Any ideas why I'm only getting 0 or false, but never true for result.get_value()? // Set IsFollowed correctly. var clientContext = SP.ClientContext.get_current(); var socialManager = new ...
0
votes
1answer
21 views

Get an site column text field that is only displayable in editmode in published page

<PublishingWebControls:EditModePanel ID="EditModePanel1" runat="server" CssClass="edit-mode-panel title-edit"> <div id="NBSBranchAccountName"> ...
1
vote
2answers
40 views

Got blank page when add custom javascript to my CustomMasterPage

I'm follwing this tutorial to branding master page and totally successful. http://sharepoint.rackspace.com/sharepoint-2013-how-to-change-sharepoint-branding-text-in-the-upper-left-part-of-your-screen ...
2
votes
1answer
59 views

Create a document set with JSOM

I'm trying to generate document sets on the fly with the following code. It is using /_layouts/15/SP.DocumentManagement.js for the SP.DocumentSet.DocumentSet.create method which takes four parameters. ...
1
vote
1answer
33 views

Anonymous Acess in Client Model (Javascript in Office 365 in Master Page)

I have the following code function retrieveListItems() { var clientContext = new SP.ClientContext.get_current(); var oList = ...
1
vote
1answer
32 views

Script Returning �

I use a lot of JavaScript in SharePoint, but today I came across a problem that I do not understand. Every time I use accents in a script such as in an alert, it returns the following strange symbol: ...
0
votes
0answers
38 views

get data form database & display in gridview's textboxes

i want to populate data in gridview's textboxes which are stored in database and if no value found in database it should show blank text boxes. BUT my problem is i am binding gridview data for Area ...
0
votes
2answers
77 views

Remove item from ECB in sharepoint 2013

I am currently trying to write javascript within a script editor to hide the 'View Properties' and 'Edit Properties' items in the ECB. I have found many solutions that edit the core.js file. However, ...
0
votes
1answer
22 views

Creating a Subsite login

Ok, I'm a newbie to Sharepoint, and I don't even know if this is possible. We have a subsite on a Sharepoint server (Office 365). This is what the bosses want: Front page of the site is this ...
0
votes
1answer
28 views

SP13: Remove Page Horizontal Scroll Bar

I have made changes to the master page on a SP13 page. An horizontal scroll bar appears at the bottom of the page. The following piece of code I have that adjusts the height of the scroll bar, but I ...
2
votes
1answer
41 views

Check if a document set exists

I'm trying to determine whether a document set exists - if it doesn't I'll send it off to another function to create but I'm not getting the correct value back from my query. I think it has to do ...
1
vote
2answers
59 views

creating custom functions in display template

<a title="_#= $htmlEncode(Srch.Res.sb_GoSearch) =#_" class="ms-srch-sb-searchLink" id="_#= $htmlEncode(searchBoxLinkId) =#_" onclick="CustomFunction();" ...
1
vote
1answer
36 views

How to get current search query in a search page

In a SharePoint 2013 publishing site, I have a custom search page. This page can be reach from the search box in the master page. It lands on : http://server/pages/search.aspx?k=myquery, which is ...
1
vote
1answer
46 views

How can I copy lookup field value to another site list in lookup filed?

How can I copy lookup field value to another site list in lookup filed? Situation, I’ve a main site list , list1 and there have lookup field from list11, I've build sub site and copy my list1 from ...
2
votes
0answers
22 views

Multilevel Audience Targeted Global Navigation SP2013

Has anyone set up Multilevel Audience Targeted Global Navigation SP2013? If I use term set I am unable to set security otherwise cannot set multilevel?
1
vote
1answer
61 views

Onchange People Picker

I have a problem changing a people picker in a custom form. Need when writing or changing the value in the people picker I know, I'm using javascript using jquery. Already tried using this code: ...
-1
votes
1answer
43 views

Add JavaScript to NewForm sharepoint list [duplicate]

I create new form with info path for sharepoint 2013 list, I need to get current week from system calendar. I have javascript to do that!! but I have no idea that where is code must be add? I open ...
0
votes
1answer
43 views

Saving content in a <div> with jQuery in SharePoint 2010

I have written a tiny bit of code that displays an information box for the users and a button to make this information box go away. I have placed the code snippet in a Content Editor webpart on the ...
0
votes
1answer
39 views

Wait async query in PreSaveAction

Can you tell me, how can i wait async query to SharePoint list in PreSaveAction() ? Is it possible? Thanks in advance!
1
vote
1answer
39 views

Opening a modal Dialog from a webpart

Im trying to open a dialog with the following code : printModal() { var options = { url: "www.hotmail.com", width: 550, height: 200 ...
0
votes
1answer
46 views

Save Modal Dialog Field Value to Refresh Page DIV

I found a couple great functions that allow me to programmatically call up a modal edit form, and they work very well. What I'm looking for is a way to update a div on the calling page with the ...
0
votes
1answer
68 views

CSR Coloured Colum

I've created a document library with some folders in it and I have added a new Column "Permission" to this Library. So now I want to color the cell or the entire row when e.g. the value "Owner" ...
0
votes
2answers
24 views

ClientWebPart.aspx does not load the Sharepoint Core.js

I have a problem with developing an app for sharepoint. While the Default.aspx works fine, the ClientWebPart.aspx does not. I load the whole SharepointJSFiles with <SharePoint:ScriptLink ...
1
vote
1answer
61 views

Retrieve Fields/Column Names of a Sharepoint List using Javascript

<script type="text/javascript"> function retrieveFieldsOfListView(){ var clientContext = new SP.ClientContext.get_current(); var web = clientContext.get_web(); var list = ...
2
votes
1answer
30 views

Accepted way of checking for SharePoint CSOM in JavaScript?

What I'm trying to do is build a dual purpose JavaScript that might run inside or outside of SharePoint, so I need something like this: if(SharePoint CSOM Exists) { //Do a bunch of stuff involving ...
0
votes
1answer
34 views

How do I get the immediate child items in a List with javascript and SP.Service?

I am making use of an SP.Service to retrieve the items of a particular list (Site Assets). I know the way to retrieve all the items under the list: using a caml query and the function ...
0
votes
0answers
20 views

Upload Status Indicator Web Part

Being an SharePoint Admin and not a Developer how would I accomplish the following: A client access a site where they are able to download and upload documents. The business requirement is to create ...
0
votes
1answer
46 views

Moving Scroll Bar to Top not working in SharePoint 2013

We are using below code on our web application master pages inside SharePoint 2003 to make scroll bar position always on top. function MoveUp() { if ...
0
votes
1answer
66 views

Want to access data using sharepoint REST Api in web application

I want to access SharePoint data in my application. I am new for this so don't know much about this to access data from SharePoint. I do not have permission on all pages in SharePoint so need to ...