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

Today solution (?) using modified and JS

I had no luck with a solution for the [Today] Problem so far, pretty much all the solutions on the web have a catch. So I thought, why not use the Modified field instead of Today? All that is needed ...
0
votes
2answers
247 views

Office 365 Upload file to Document Library without using FileReader API

I want a script in javascript that can upload a document to the document library. I know that HTML5 Browsers can do this with ease because I can simply use the FileReader API but how do I do this for ...
0
votes
3answers
237 views

Callout (js) error in application page

Callout throws the following js error: Error: Argument has no callout associated with it. The above error results from a Callout on an application page, via the following code: <script ...
0
votes
1answer
122 views

Issue while deleting a list using CSOM in a SharePoint App

I am having this weird issue while deleting a list using CSOM. My SharePoint App has 2 buttons - one to create a list and the other to delete the created list. When the app loads for the first time, ...
0
votes
1answer
259 views

Getting and updating the value of a hyperlink/picture field in Sharepoint 2010 using Javascript and COM

I'm trying to get the image url for a Hyperlink or Picture column field in a SharePoint list, however after trying a lot of variations I just can't get the url to display in the alert to make sure i'm ...
0
votes
1answer
27 views

What is: “jquery1413396620463='6'”

Odd question, I know. I'm looking at the html source of a page in a site that was migrated from 2007 to 2013. The HTML source has this odd jquery attribute in many places, such as tags. One tag has ...
0
votes
1answer
189 views

UserProfile rest API

I need to retrieve User Profile information by REST. I am using this code: $(document).ready(function(){ var requestUri = ...
1
vote
1answer
47 views

Referencing JS in master page: Using MS and ME tags versus not using them

I've seen scripts referenced in 2 ways. What is the purpose of the MS and ME tags? Use them or not? <!–MS:<SharePoint:ScriptLink ID=”ScriptLink21″ Name=”sp.js” runat=”server” OnDemand=”false” ...
0
votes
0answers
25 views

collection has not been initialized display template

I am using a display template and getting items from the list, yet I get an error about something not being initialized. Can anyone help? here is my code: AddPostRenderCallback(ctx, function () { ...
0
votes
0answers
77 views

Compare list items with text value entered

I have one list with 3 columns (Title, Department, Contact person). I have one input text field & button to submit on the page from where users will type "Title" (Application title) and click on ...
0
votes
1answer
452 views

new SP.ClientContext(siteUrl); — Object does not support this action

var siteUrl='sites/mysite'; function wait(){ var clientContext = new SP.ClientContext(siteUrl); ....more code.... } SP.SOD.executeFunc('sp.js', 'SP.ClientContext', wait()); ERROR: ...
0
votes
1answer
107 views

CAML Query works in U2U CAML Query Builder, but not SharePoint

I built a CAML query using U2U CAML Query Builder and it works when I execute it in the builder, but when I go to JSOM in SharePoint, I get the entire list and none of the filters from the query work. ...
0
votes
1answer
67 views

Deployin Google Charts Into SharePoint

I am in the process of deploying a set of Google Charts into SharePoint 2013. I am running into this issue where it isn't loading my data. I have tested it out in just a standard application page and ...
0
votes
1answer
251 views

The value of the property 'MSOTlPn_ShowToolPane2' is null or undefined, not a Function object

I have a problem with SharePoint 2010 and Internet Explorer 11. The following error message appears when I try to open the webpart menu. In Internet Explorer 8 the wepart menu works as expected: ...
1
vote
2answers
126 views

Sharepoint Scoped External Content Type List - Update and Delete not Working RESTFul

SharePoint 2013 I currently have a OData service created and I have bee successful in reading and Insert to database it references, via javascript. When I am doing a DELETE or UPDATE I get the ...
1
vote
1answer
129 views

Automatic Bootstrap Tabs in SharePoint

I'm trying to implement this solution to a SharePoint public facing site. The timer seems to be working as I'm getting errors in browser consoles at every interval but nothing is happening: ...
0
votes
2answers
29 views

Basic Script not running on public facing site

Just wondering if anyone can point me in the right direction. I've got a basic carousel script that works perfectly fine when I'm logged in to sharepoint but for some reason it just doesn't work for ...
1
vote
1answer
148 views

init.js Obect expected error with SP.SOD.executeOrDelayUntilScriptLoaded

I am using SP.SOD.executeOrDelayUntilScriptLoaded as follows SP.SOD.executeOrDelayUntilScriptLoaded(NBSFeedbackEditInbox.FeedbackRemove.removemessage(itemid), "sp.js"); Yet I am getting an error ...
0
votes
0answers
20 views

Get users with Read permission

how can I get by JavaScript all the users of a Web that have just the Read permission. Thanks
1
vote
1answer
39 views

Sharepoint Site Content Gear

I need to hide and avoid reader users (users view just read permission on the site) to view the site content page (viewlsts.aspx) How can this be done?
1
vote
1answer
153 views

SharePoint 2013 Timeline Coloring

I want to color a timeline with data of a specific column. This column is named Topic. So I wrote some code and added it to my SharePoint site but it didn't work. Here's the code I used: var ...
1
vote
1answer
401 views

Request failed. Column 'Project Phase' does not exist. It may have been deleted by another user

function fetchProjectData(projectName, callbackOnSuccess) { var clientContext = new SP.ClientContext("path to site"); var oList = clientContext.get_web().get_lists().getByTitle('Project ...
1
vote
2answers
70 views

How to trim down date to example 2014-10-10?

How can i trim down date from this Fri Oct 31 2014 01:00:00 GMT+0100 (Västeuropa, normaltid) to this 2014-10-31 on my get_fieldValues i think i can use .setDate.getDate()+ 1).toISOString().substr(0, ...
0
votes
0answers
91 views

How to Oauth to external application with Sharepoint App

did someone realized an app with oauth against an external API? Like Yammer, Twitter or something else? My Question is: How did you get this working? I've read, that Auth Headers will be cut of by ...
-2
votes
1answer
148 views

Get selected item ID to display in customized DispForm javascript

I'm using SharePoint Online and have a SharePoint-hosted app. I have a page with a question form that send data in to SharePoint. I show my question form in my DispForm for my list (I added my app as ...
1
vote
1answer
64 views

Sending user's input from JavaScript into date filter webpart

I want to do date filter for one field in my external list using calendar in order to hep user input date value. Since drop-down calendar in date filter web part doesn't work (i don't know why, when ...
1
vote
2answers
50 views

Is it possible to grab a strict range of rows

On sharepoint 2010 if I have a list that has 2000 entries and I want to grab only row 400 to 600 is this possible?
1
vote
1answer
868 views

Collection has not been initialized when called in async function

function populateList(){ var _clientContext; var _web; _clientContext = new SP.ClientContext.get_current(); _web = _clientContext.get_web(); var listTitle = "Data1"; var list = ...
2
votes
1answer
464 views

How to send meeting request to user from sharepoint?

I have a person field in SharePoint form and want to send outlook meeting request to person entered in Person field. **Note:**I want to this through JQuery/JavaScript/SharePoint client object model ...
2
votes
2answers
167 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
2answers
54 views

Accessing Custom Web Part Attributes From Javascript Functions

I am developing a web part currently which has custom attributes which are defined through C#, but most of the logic has been completed using javascript. I am having trouble getting the attributes ...
1
vote
3answers
84 views

Error from javascript file but not console?

The error in question 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. ...
0
votes
1answer
54 views

Updating Person Field javascript error

I am creating a new list item using CSOM. When I try updating a Person field, I'm getting a error saying my function is undefined Uncaught ReferenceError: createListItem is not defined it ...
0
votes
1answer
84 views

get_fieldValues of radio button javascript?

I need to get fieldValues of radio buttons i have successful got it from textareas and from dropdown To get it for textareas and dropdown i used this way: ...
3
votes
3answers
2k views

Combine REST query “GetItems” action with OData $filter parameter

I'm able to call GetItems through REST by using an example by Erik C. Jordan. Now I'm trying to combine this with a simple OData $filter parameter. I have a REST query like this (jQuery on SharePoint ...
2
votes
2answers
288 views

Get url of ALL lists on a SharePoint 2013 site using JSOM

I'm trying to retrieve the url for all lists on the current SharePoint site. I've managed to get the title for each list, I've also found resources explaining how to get the url of one specific list. ...
1
vote
1answer
75 views

Add a sequence to list SharePoint 2010

I have a problem of sequence in the list SharePoint 2010. I need a column Sequence with format 000001. This column is in type of single text. I think the best way is customizing a workflow, but I ...
1
vote
1answer
266 views

Load list item to dispaly get_fieldValues?

I'm using SharePoint online and have a SharePoint-hosted app. I have a page with a question form that send data in to Sharepoint using listItem.set_item('GEN_1_blabla', $('#GEN_1').val()); Now in ...
0
votes
1answer
68 views

Get particular SharePoint folder permission programatically using api

I am using php curl for retrieving SharePoint folders and I am able to list all the folders. However, I would like to get the permission of each folders, so that I can check the writable permissions ...
1
vote
1answer
882 views

Obtain FedAuth Cookie with RST token

I've got a phone gap application which should contact ADFS with a RST to obtain a SAML token then should pass this token to STS to obtain a FedAuth Cookie which is finally used in the header of REST ...
1
vote
2answers
586 views

Client-side rendering (JS Link) status changes in sharepoint list

In SharePoint List I need help on below point. Can any one help how to archive this using Client-side rendering (JS Link) in SharePoint :- If Balance Qty is not 0 then it should be in RED colour ...
0
votes
0answers
27 views

Dialog to dispaly items with own style

I have a Sharepoint-hosted app. The app is a survey page were users answer questions and hit a save button to send the answers to a sharepoint list. After that they going to the list and want to ...
1
vote
2answers
154 views

Open Modal Dialog on Title click in list?

I have a Sharepoint-hosted app. When you click on "No Title" in a list you get a new window where the items is being showed. What I want is, when user click on "No Title" in the list it should pop up ...
1
vote
1answer
90 views

ClientPeoplePicker is underfined

I'm trying to get ClientPeoplePicker control with following code. function setCPP(userAccountName, controlName) { var peoplePickerDiv = $("[id$='ClientPeoplePicker'][title='" + controlName + ...
1
vote
0answers
27 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 ...
2
votes
1answer
105 views

OpenPopUpPage works for Chrome but not IE

I am at a lost why this works in Chrome but not IE. This is a link within a web part for SP 2010. <a ...
1
vote
2answers
162 views

How to send a document from a document library as an attachment in an email?

I need to add a column to a document library that will have the text "Send in email" for each document in the library. If a user clicks on it, it should open a new Outlook email and automatically add ...
1
vote
2answers
110 views

How do you use JS Link with Pages?

I'm trying to make a JS Link script that will work with my site's Pages list. Basically I want to display a simple list of page titles. I'm using the Pages Web Part (Web Part > Apps > Pages). var ...
4
votes
3answers
951 views

In 2013 using JavaScript how do you empty a people picker field?

In SharePoint 2013, I want to delete all existing values in a people picker field using javascript or jquery. Simply using .removeAttr('value') or .val("") does not work.
0
votes
0answers
195 views

Update Custom Field in Task Level Project Server using JSOM (PS.js)

Does anyone have javascript which updates the task level custom field? I just have the code with C#. I am trying to convert this code (below) to javascript and use it. DraftProject projCheckedOut = ...