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

sharepoint 2013 - how to run sp.js and callout.js at the same time?

I am currently experimenting with the following script to create a pop-up form on my sharepoint 2013 site. I am addnig the code to a script editor web part... <script type="text/javascript"> ...
0
votes
1answer
25 views

How do I retrieve a user's LogIn name through the Created By colum using javascript

I have a requirement to retrieve the user email from created by column. I have tried with get_lookupValue(), but I got system object error message. Is there any solution to retrieve the user email ...
0
votes
0answers
15 views

use a file js to add ribon action

I'm trying to add a ribbon action in my list with SharePoint Designer. till here, no problems. I'd like to use a js file to collect all the selected items and write an excel file. I've to do this ...
1
vote
2answers
309 views

Get list ID and selected item ID

I use SharePoint Online and working in Visual Studio with SharePoint hosted app I need to get list id and the id of the SELECTED item in the list And i use a ribbon button to show a dialog and want ...
0
votes
0answers
27 views

SharePoint 2013 how to add jquery image loader for image library images

I have added an image library in my SharePoint 2013 site I want that when a user clicks an image it should be loaded with any JQuery image fancy box library to display full image with pup up in ...
1
vote
0answers
78 views

Add Read more link in Summary view of Announcement web part sharepoint 2013?

I have added an Announcement Web part in my SharePoint 2013 in summary view I want to add read more link please help me. I am new to SharePoint Development I want to add a Read more link when my ...
4
votes
2answers
230 views

SharePoint 2013 Add Read more link in Announcement web part each list items

![enter code here][1]I want to add Read more link in my Announcement Web Part I followed this blog post: ...
0
votes
3answers
53 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
43 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
18 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
38 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
90 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
2answers
28 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
44 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
35 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
48 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
82 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
13 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
58 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
58 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
90 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
29 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
104 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
53 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
45 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
38 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
158 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
29 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
17 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
24 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
46 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
115 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
46 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
33 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
62 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
112 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
25 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
33 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
59 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
87 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
44 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
70 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
29 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
83 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
50 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
44 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
59 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
47 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
67 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
80 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" ...