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

Javascript to display defaulteditform in modal dialogue used by sharepoint

Does anyone have the javascript required to display the defaulteditform in the modal dialogue that SharePoint (v2010) displays an edit form in ? I'd like to add this to my html ?
1
vote
1answer
46 views

JavaScript: get webpart context by DOM ID

I have an already loaded page with webparts. I want to get the webpart context object by using IDs which I can get from the DOM, e.g. webpartid="bf385785-6507-4af1-b419-b8bf30dc5103" Basically the ...
0
votes
2answers
31 views

JavaScript to connect SharePoint Office 365 site(SharePoint online)

Is it possible to retrieve the data from Sharepoint online using Javascript, if we are executing The Javascript outside of the cloud environment. I see that using CSOM SharePointonlineCredentials ...
2
votes
2answers
53 views

How to get JSON column names in Javascript

I have the following JSON response: { "d": { "results": [ { "__metadata": { "id": "c55209ae-2af9-4514-ab02-67f222903f6d", "uri": ...
0
votes
1answer
52 views

Javascript running only in edit mode

I have included a js file in the content editor but it runs in the edit mode only. I have tried all the suggestions like Including text/javascript Include code between execfunc() But it still ...
2
votes
1answer
54 views

Error while closing Modal Dialog (JavaScript)

So I create a Modal Dialog with this code: function openModalDialog(title, url, callback) { var options = { title: title, url: url, dialogReturnValueCallback: callback ...
0
votes
1answer
65 views

Create document from template with REST API in javascript

I have a document library in my SharePoint Online tenant with a custom content type with some fields and a specific document template thats puts the metadata into the document. How should proceed to ...
0
votes
1answer
20 views

Creating List based on List template with content

Now I could successfult create list based on list template but when i saved my list template i could say "Include Content" but when the list created by this code it was empty with no content any ...
0
votes
1answer
16 views

Permission problem to get sub site info

i use this code to retrieve all sub sites under one sub site function GroupMenu(url,elem){ var sites = []; var clientContext =new SP.ClientContext(url); var webs = ...
0
votes
0answers
10 views

Search Results Page + MicrosoftAjax.js Conflict

I have a custom master page + page layout combo that uses a lot of client side code. I'm seeing a conflict with the Search Results page I have where if my master page includes: <script ...
0
votes
0answers
27 views

Can you redirect a user once a workflow completes?

I've created a form that starts a workflow when a new item is created. The user is redirected to a "Please Wait" page while the workflow takes the data that was entered and creates a calendar event. ...
0
votes
0answers
11 views

retrieve data from a sharepoint list in a portal and insert them into a sharepoint list in another portal

I want to retrieve data from a sharepoint list and insert them into another sharepoint list in another portal.. there is any method to retrieve data into excel file ? how to do this using C# or ...
0
votes
1answer
30 views

Error on ClientContext

When I try to get sub sites of specific sub site var clientContext = SP.ClientContext('/groupcompanies'); var webs = clientContext.get_web().get_webs(); I get this error: undefined is not a ...
0
votes
1answer
27 views

need to update the item in the list

I have a list called revision. It has a columns called wbscode and revisionnumber. Wbscode contains code of the project(eg.pcode1) and revisionnumber is to store revision number done for the pcode. ...
0
votes
1answer
31 views

Get Latest Created List Item

I got array of objects that is list items arr = [{id:"1",name:"item1",created:"Wed Feb 04 2015 03:36:42 GMT+0400"},{id:"2",name:"item2",created:"Sat Feb 04 2015 02:44:39 GMT+0400"}] i want to get ...
0
votes
0answers
27 views

Setting Url Variable for Sub site

I'm trying to create news list system. I wanted to set Url Variable via Javascript and get the item back by id to display details. Everything went good but when I try to href ...
1
vote
1answer
39 views

Autocopy TypeScript and LESS

I am developing a SharePoint 2013 App with Visual Studio 2013. My problem is, I use TypeScript instead of JavaScript and LESS instead of CSS. When I change the *.ts and *.less files they are not ...
0
votes
1answer
18 views

Working on a Support Wiki, have some embedding questions

I'm trying to embed javascript that would allow me to create HTML links that open in new windows of a specific size. Is this possible and, if so, how?
0
votes
2answers
45 views

SP2013 getting mysite url of person on display template

I have this display template which displays certain managed properties from a list, including Created by. I want Created by to be clickable and take the user to the mysite of who ever created the ...
0
votes
1answer
53 views

Make cross origin requests to the personal site in SharePoint Online

In SharePoint Online, I have a JavaScript that run on a normal site collection and tries to read data from the user's personal site (more specifically from the WmaAggregatorList_User list). This ...
0
votes
2answers
71 views

Get user from sharepoint group and redirect

My requirement is when someone login to site and if he belong to 'owner' group it need to redirect immediately to specific site and if he belong to member group then need to navigate/redirect to same ...
1
vote
1answer
37 views

Issues with SPFilterDropdown in SPD2013

To start things, I have little knowledge beyond the basic concepts of SPD and being a newbie... What I want to accomplish is to only have certain values from another list show up in which their ...
0
votes
1answer
43 views

SharePoint 2010 Javascript JSOM creating a List View Web Part using javascript

I was able to follow along and add a Content Editor web part to a page using javascript from MSDN here. I am now interested in trying to find a way to add a List View or Data View web part to a page ...
0
votes
1answer
25 views

Auto-populate a list column with a sequential number

I am experiencing major issues in trying to upload the package.json and sputility.jquery.json files onto our SharePoint Online 2013 site as advised in the SPSE post: ''Before beginning the ...
0
votes
1answer
35 views

Javascript and add user to Active Directory group in Sharepoint

How to add user to active directory group? How can I add user to the Active Directory by the javascript code. I have got a script which adding to Sharepoint Group, but how Could I do it with Active ...
1
vote
1answer
23 views

get_item test if null in Javascript model

I've a lookup additional column and alerting its value in Javascript as: var oPicture = oListItem.get_item("Image_x003A_People").get_lookupValue() If I dont add any data in the column it errors, ...
0
votes
1answer
34 views

How to specify columns when adding new item to list using set_item

I'm trying to add an item to a SharePoint list like so: Title | Column1 | Column2 -------+-----------+----------- title1 | 1 | a title2 | 2 | b Now lets say I want to add ...
0
votes
2answers
30 views

How to exclude more than one file name ending with vsdx or avi?

I'm able to grab the files, but haven't been successful excluding more than one file name ending with vsdx or avi. I need to exclude more than one file type. Any suggestions? <script ...
0
votes
1answer
18 views

How do I get results to open in new tab?

I've made several edits to this line, but they do not appear to be working. html = html + "< a href='" + this.LinkingUrl + target="_blank"+"'>" + this.Name $.ajax({ url: ...
1
vote
2answers
75 views

SP2013 JavaScript on custom master page sometimes not working

I'm trying to implement accordion menu for quick launch ( as in http://borderingdotnet.blogspot.com/2013/04/accordion-left-navigation-for.html ), but it behaves very weird. Sometimes it works ...
0
votes
0answers
16 views

Read xml in infopath using javascript

I want to read xml inside the infopath form. I am saving all infopath forms after submitting into a form library. Now I want to read the xml inside that. I am doing like following, $(function(){ ...
0
votes
2answers
42 views

Uncaught Error: The property or field has not been initialized (I have tried many solutions…none seem to work)

Uncaught Error: The property or field has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested. Even after explicitly including ...
0
votes
2answers
52 views

How to retrieve Sharepoint List in Sharepoint App? “List does not exist at site with URL”

I have my app and my list in my site contents like so: From my app, I'd like to read, write, and manipulate the data from TestList. The contents of TestList are like so: I've been trying to ...
0
votes
1answer
24 views

Is there a way to expand and filter using a substring in the Sharepoint API?

I'd like to expand files and filter using a substring like so: Is it possible? ...
0
votes
1answer
42 views

$.getscript returning 'undefined'

I am trying to get the script found under 'Enforce Drag and Drop documents to apply metadata' to work and I am always getting an 'Undefined' error here: ...
0
votes
0answers
37 views

How to group by a column and sum its value

I have a sharepoint list. In that, there are 2 columns location and amount. I want to group the values by location and calculate the values of the column amount and show it in a field as sum. For ...
2
votes
0answers
52 views

Get object of ribbon button in JavaScript

I am trying to access the ribbon button via JavaScript. Below is my code: // Get the page manager var ribbonPageMgr = SP.Ribbon.PageManager.get_instance(); // Get the ribbon var ribbon = ...
0
votes
1answer
31 views

How can I manage folders and files using rest api?

How do I use rest API to pull data from folders and files? Each set of files are associated to one particular folder. I'm not sure how the are associated and I need to pull certain fields associated ...
1
vote
1answer
19 views

How to create site custom field

How can i create custom fields for a site or sub site like Title and Description i've sub sites and every site has unique banner and some information i want the user will be able to add these ...
0
votes
1answer
24 views

Don't fire Javascript in Sharepoint 2013

I have got a script which count users in a group: <script> var userCollection; function start(){ var clientContext = new SP.ClientContext(); //Get all groups in site var groupCollection = ...
-3
votes
3answers
40 views

Unable to get property 'get current' of undefined or null reference

function listAllCategories() { var ctx = new SP.ClientContext(appWebUrl); var appCtxSite = new SP.AppContextSite(ctx, hostWebUrl); var web = appCtxSite.get_web(); //Get the Web var list = ...
0
votes
1answer
35 views

how to run a javascript on page load

I tried almost everything. A script count how many users are in group. I must find out how open this script on page load and upgrade reload. here is this script: <script> var userCollection; ...
0
votes
0answers
15 views

How do you expose a Custom Service Application method via JavaScript/JQuery

I've currently enabled all of our Web Service calls using Application Pages / Web Methods. It works well but I'm pretty sure that there is a lot of overhead when it comes to getting my JSON back. ...
0
votes
3answers
82 views

Java script how count users in group by javascript

How could I count how many users are in Group? How could I count by JavaScript.
2
votes
3answers
174 views

ExcuteQueryAsync functions inconvenient

Can any body explain this ? clientContext.executeQueryAsync( Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed)); it always output an Error in ...
0
votes
1answer
27 views

JavaScript to get all sites i'm follwing?

I'm looking for a way to get all the sites I'm following by using JavaScript. What's the best way to do this?
0
votes
1answer
47 views

How do I get and sort child items using rest api?

I have an asset library with managed content types, but for some reason I'm unable to get the managed content fields when I drill down to the Child level. At the moment, I'm only able to file names ...
1
vote
1answer
30 views

Seconds since item created with REST. Perhaps use server current time (clock)

I'm trying to find the most correct way to determine the amount of seconds since an item was created. My first approach is to simply diff the Created property with the browser time, e.g., ...
0
votes
2answers
25 views

Retrieve all files from all folders

I've a picture Library which contains to folders i've retrieved them by this code getListItems('myList'); function getListItems(listName) { var clientContext = SP.ClientContext.get_current(); var ...
0
votes
2answers
50 views

How do I handle Multi Select Fields using Rest API?

A couple of my rows are Multi Select Rows. When I make this call nothing returns for that row. How do would I handle the multi-value field? <script type="text/javascript"> $.ajax({ ...