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

Image in sharepoint 2013 rich-text control generate js error

I have sharepoint 2013 rich text control in page-layout.After adding image in rich-text control ,I am not able to get any html object using js.I am using below line to alert div object. ...
0
votes
1answer
17 views

How to close Dialog box? plz Need help

I have Ribbon button that when it's clicked you get a dialog window open on that window i have a button that i want to use to close the dialog window when clicked. this is for the code for the dialog ...
1
vote
0answers
14 views

Upload using JavaScript, outside Sharepoint

Is it possible to upload a file to SharePoint 365 / OneDrive Business, using pure JavaScript or jQuery, when running from an external website? (Not a SharePoint site) I have written some C# code, ...
0
votes
2answers
36 views

Retrieve single field using CAML Query in Sharepoint using Javascript

I have a List called ProjectInformation and contains following Fields.. ID ProjectName1 ProjectManager ProjectExecution 1 EDS PPB Time and Material 2 CS ...
0
votes
0answers
12 views

Set Managed Metadata Value on SP2010 Item using JSOM

Okay I am fairly sure that I've searched through everything, but I can't seem to figure out how to set a managed metadata value for an item using JSOM in 2010... Why can't we just upgrade to 2013... ...
0
votes
0answers
8 views

SharePoint 2013 Drag and Drop Uploader 'drop here' box placement

I've been working on a SharePoint site that's been custom branded and run in to an issue with the drag and drop uploader in the document libraries. For reasons unknown to me, the 'Drop here...' box ...
0
votes
0answers
13 views

Get selected item ID from Ribbon buttons Element.xml file

Im using sharepoint 2013 online and want the id of selected items is it possible to get the id from this line in the Elements.xml and if so how do i do it? ...
0
votes
1answer
38 views

How can I attach a file from SharePoint document library to an item in a SharePoint list (javascript)?

In my current project I have encountered an interesting problem. I am trying to attach multiple files (pdf's, doc's etc. not only text files) to my SharePoint List, getting them from a document ...
0
votes
1answer
33 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
20 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
14 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
128 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
15 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
17 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 ...
2
votes
0answers
19 views

SharePoint 2013 Add Readmore link in Announcement Summary View?

I want to add Read more link in my summary view of my Announcement Web Part I followed this blog post: ...
0
votes
3answers
40 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
19 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
6 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
17 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
26 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
12 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
17 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
31 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
27 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
39 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
7 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
34 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
28 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
57 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
24 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
53 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
45 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
38 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
22 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
4answers
88 views
+50

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
24 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
9 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
17 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
37 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
33 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
30 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
30 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
57 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
20 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
23 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
35 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
51 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
34 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
37 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 ...