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)

3
votes
0answers
31 views

Making SP.UI.ModalDialog Scrollable on Mobile

I have a basic Modal Dialog loading on my sharepoint page through a function. It loads correctly and can scroll on desktops perfectly fine. I began testing the page for mobile functionality on a ...
2
votes
0answers
38 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 ...
2
votes
0answers
50 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?
2
votes
0answers
47 views

SP2013: Tabular view incompatible with JSLink checkboxes?

I'm using a JSLink file to replace a "Single line of text" column with a custom checkbox. For some reason, when "Allow individual item checkboxes" is enabled my checkbox won't work - I can't even ...
2
votes
0answers
226 views

Required Field Issue with SharePoint 2010 December 2013 CU

I installed SP2 a couple of weeks ago to fix the issues with my XSLT Compiles timing oot (Which was a Bug introduced in SP1). Things seemed fine, but then a few days later we noticed that workflows ...
2
votes
0answers
132 views

SharePoint Edit Mode Javascript error in edit mode

I am not able to edit the page from the browser. I used to change and edit webparts when suddenly in the edit mode everything looks like it is locked/stalled. When I open the debugger tool, I saw a ...
2
votes
0answers
221 views

SharePoint InputFormTextBox returns javascript error while changing its position

I have created one aspx page for implementing the edit comments of the form. For this I am using the SharePoint InputFormTextBox control. I have a total of 4 Divs each containing one InputFormTextBox, ...
2
votes
0answers
27 views

Instrumenting search term in SharePoint2010

I know SharePoint2013 can capture this data better but in 2010, i am trying to capture exactly what terms people are searching for. I have analytics logic that i can call as javascript. My search ...
2
votes
0answers
303 views

SharePoint and Javascript - Get content types for list

I have been using the JSOM with SharePoint 2013 and am trying to get the content types of a list to iterate through, and am having no luck. First, while the success handler is being reached, the ...
2
votes
0answers
357 views

Install an app from the appCatalog using javascript CSOM

I'm trying to install an app in a site from the AppCatalog using the javascript CSOM I get the apps from the App Catalog using req.apps = SP.AppCatalog.getAppInstances(clientContext, oWebsite); I ...
2
votes
0answers
695 views

How to add the standard sharepoint list item context menu?

we have written a webpart that outputs titles of list items. We now want to add to each of those items the standard flyout menu (see the picture) below, but don't know how so far. Can you help us out ...
2
votes
0answers
753 views

Filtering SharePoint list items that have multiple values using jQuery

I have a SharePoint list that contains multiple columns of information. There’s a Category column that’s a look up to another list called ‘Category’. This is to produce unique ID’s for each of those ...
2
votes
0answers
520 views

Programatically creating Discussion List Posts - and replying to them from Outlook

We are Programatically creating a Discussion List Post/Topic (using JavaScript) based on an entry in a custom list. The idea is to synchronize this Discussion List with Outlook. That does happen ...
1
vote
0answers
23 views

SharePoint 2013 Change default start time and end time on calendar event

We're scheduling a lot of similar events, so the start time is almost always 8:30AM and the end time is almost always 5:30PM (not necessarily on the same day). Is there any way that we can set the ...
1
vote
0answers
16 views

SharePoint Hosted App duplicate calendar issue

We developed SharePoint Hosted App and released 1.0.0.0 version for first time into App Store. Later with some Enhancements we released 1.2.0.0 version and published into App Store the problem is ...
1
vote
0answers
18 views

Get the last rated item in a SharePoint list

we have a SharePoint list with social rating feature enabled. On the homepage I want to display the "Latest Voted Item" of that list. Is it possible to get the last rated items in a SharePoint list ...
1
vote
0answers
44 views

JavaScript error with paging in community discussion SP 2013

I have a community site with many discusssions. One of them is a discussion divided into 3 pages (each answer has text and animated gif). When I try to go to page 2, in default (Flat) view mode, I ...
1
vote
0answers
30 views

How to get the listname in a custom display template for a content search webpart

I cant believe that Sharepoint does not have a managed property for list name, neither a Crawled property I can map. Seems weird to me. I have a display template that renders results in a Table ...
1
vote
0answers
21 views

Determining Users on SharePoint website with API?

Was thinking about building an app part that enabled some level of in-app messaging to other users currently on the site (probably via use of websockets connections to each other). Is there any way ...
1
vote
0answers
23 views

Cannot update allowMembersEditMembership

I can't seem to update the setting on a group to allow members to edit members. This is my code: function setGroupsMembershipEditingMode(uri) { var context = new SP.ClientContext(appweburl); var ...
1
vote
0answers
20 views

Uncaught Reference error:InitImgLibView not defined

I have a visual webpart solution.A picture library is there whose view i have modified by taking newsletter as a style.. I have written a code in javascript that will allow only image files to get ...
1
vote
0answers
44 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, ...
1
vote
0answers
42 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
42 views

Create folder inside site assets

How can i create a folder inside site assets from a app? Here is my code, it says that folder item is undefined. var hostUrl = decodeURIComponent(getQueryStringParameter("SPHostUrl")); var ...
1
vote
0answers
30 views

Sequential number generator with a twist

I have an assets list. The asset needs to have an asset number assigned upon creation. The format of the number should be A-99999. There are existing asset numbers I have to work around in order to ...
1
vote
0answers
44 views

To Scroll to the top of page

I'm using angularjs & sharepoint 2013. I have implemented the SPA model in one page where the entire page refresh may not happen. Here, the scroll bar is not always going to the top of page since, ...
1
vote
0answers
293 views

SP.SOD.executeFunc not calling function

Compa've added following script to JSLink property of a custom content type ( JSLink="~sitelayouts/ProjectFolder/script1.js" ): window.alert("started"); SP.SOD.executeFunc("sp.js", ...
1
vote
0answers
23 views

Control Access Request Dialog

I want to write in the text area that there in the control of access request programmatically I take copy of the control from sharePoint and added it in application page but I cann't catch it with ...
1
vote
0answers
204 views

Error Setting Ratings using SharePoint Client Object Model

We are attempting to use the example located on this: Site We are receiving the following error: "The assembly Microsoft.SharePoint.Portal.Proxy, Version=15.0.0.0, Culture=neutral, ...
1
vote
0answers
46 views

Sharepoint Online - Image Position in RichTextEditor

I have a custom site with a list of posts (something like a blog, but not the standard sharepoint blog), and I'm having an issue with the RichText Editor and images. The issue consists in inserting ...
1
vote
0answers
76 views

White rectangle background when i scroll SharePoint Modal Dialogbox

I'm facing a strange issue. Couldn't find the solution for this on the internet. I'm using a SP.UI.ModalDialog.showModalDialog in a SharePoint web part. Issue: When this dialog box is displayed and ...
1
vote
0answers
29 views

How can I print all the PublishingWebControls:RichHtmlField content inside my EnterpriseWiki.aspx as a pdf file

I am working on an enterprise wiki site collection , and using the SharePoint designer I have manually added a link named “Print to PDF” as follow:- But I am trying to implement the link ...
1
vote
0answers
85 views

Starting a Sharepoint 2013 Workflow via js file

I´m trying to start a workflow 2013 from a custom ribbon icon. I have configured an elements.xml file where I call the Javascript file. The problem is, that I get a JavaScript runtime error “Type” ...
1
vote
0answers
213 views

Hide user presence contact card popup in SharePoint 2013

On hovering with the mouse over a user presence I don't want to display the contact card. We have used this to show user presence in a custom Webpart.
1
vote
0answers
84 views

Error from script tag for sp.runtime.js

I'm working to set-up the PreSaveItem() on an edit form for a list such that it evaluates parameters from the query string, and some list fields to execute workflows based on various criteria. Based ...
1
vote
0answers
104 views

Custom Field RenderPattern Customization - SharePoint 2007

I'm creating a custom field in SP 2007. I need to Get the Custom field value and field properties on Item click, in the list item display view. Also i Need to pass these values to a JavaScript. So, ...
1
vote
0answers
60 views

Unable to get related information from related list and display it on textbox on parent list using logged in user

I have two lists Created for my leave application in sharePoint. I need related information's come from related list (Leaveinfo) and display it on the textbox in Parent list (LeaveApply). I have ...
1
vote
0answers
612 views

How to get the return value of an on demand executed function?

I have a script file MyScript.js in the folder TEMPLATES\LAYOUTS\MyProject\Scripts which looks like this: var MyCompany = window.MyComapny || {}; MyComany.MyProject = MyComany.MyProject || {}; ...
1
vote
0answers
287 views

Change Ribbon Button Enabled-Function

I want to change the EnabledScript function of a existing Ribbon Button (Upload Document) but keep everything else, like the original CommandAction it executes on click. More specifically I would like ...
1
vote
0answers
545 views

Javascript in CEWP queries a list every time dropdown is changed on NewForm.aspx not working

I am trying to apply javascript in a CEWP to a NewForm.aspx page of a simple custom list. Basically, the idea is to auto-populate a text field on the new item form whenever a dropdown column's ...
1
vote
0answers
185 views

How to add a choice field in JS Grid control

I need to add a choice field (dropdownlist) in each row of a JS Grid control. What is the PropertyID for a choice field. How to add a dropdown. Please assist. i tried like this,but this didnt work ...
1
vote
0answers
147 views

Default.aspx (Reference Error: AddItem is not defined)

So I'm trying to push through learning how to code in the SharePoint environment. I created a script in a text file that i'm calling through a content editor webpart. When I debug the page using ...
1
vote
0answers
82 views

Update CEWP without refreshing page

I have a webpart which contains 3 charts. The charts are built using google's chart API and SPJS Chart The problem I face is that I'm trying to get the charts to seamlessly update as the list gets ...
1
vote
0answers
557 views

How to filter a list view by SP group membership (CAML, JS, anything)

I have a list. I need to filter the list view in SharePoint to show items: created by someone in current user's group show all to admin group I am using Infopath for the list's form view, and ...
1
vote
0answers
254 views

Office 365 Public Website JavaScript Snippets - how to remove

Playing around with Office 365 public website Master Page. Used security trimming to strip down the master page to reduce weight for use in responsive design. Assumption is we would not want any of ...
1
vote
0answers
254 views

SP2010 JSOM: error when trying to get all users of specific group using javascript

having trouble getting users return from specified group using javascript per this on MSDN var siteUrl = '/sites/MySiteCollection '; function retrieveAllUsersInGroup() { var clientContext = new ...
1
vote
0answers
302 views

How to get the distinct values from sharepoint list using GetListItem and bind to dropdown?

I am Passing the XML for getting List item and binding to dropdown. Here i have shown the code.. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ...
1
vote
0answers
94 views

JavaScript function in URL field value

Is it possible to set the value for the URL field so that when clicked it runs a JavaScript function? I have created a field which stores links to files in SharePoint, but when clicked, the file is ...
1
vote
0answers
273 views

ListData.svc: How to upload attachment?

How does one upload an attachment to a list item using JavaScript/HTL5 file upload API and the ListData.svc API? I know I can do this using managed CSOM but I want to understand the SP 2010 REST API ...
1
vote
0answers
418 views

SharePoint 2010 edit item popup, fullscreen with jquery?

I have sharepoint 2010 portal. In this portal I have some libraries maded by a custom library template. This custom templates shows an example of the pdf file If you open it in the edit form. The ...