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

ExecuteQueryAsync not following through to the success/failure function, javascript

I've got a function that checks if a list item (setting) is true and then changes the setting which it does correctly but doesn't execute the second ExecuteQueryAsync functions. In debugging it jumps ...
0
votes
1answer
68 views

Continous loop to check if a list item has changed, javascript

I'm trying to create a function that runs every 5 seconds to check if a list item (setting) has changed. This will then reload the page (if setting is true) and sets the setting to false. Here's what ...
1
vote
3answers
358 views

Pulling user/group field data from SharePoint list using REST, jQuery, Knockout.js Sharepoint 2013

I'm trying to make an interactive task board based on the task list app in SharePoint 2013. The task lisk includes fields like "Title","Description","Status","% Complete","Due Date","Assigned To", ...
0
votes
1answer
95 views

Automatically add attachment to new list item

is there any way to automatically add an attachment stored on the SP server to the new list item? I enter the URL of the file and this file will be stored after adding item in ...
0
votes
0answers
31 views

Remote access development

I'm relatively new and have tried to search posts regarding this problem but I'm not sure whether I'm hitting the right sites. The scenario is this. I have a sharepoint 2013 installed on ...
0
votes
1answer
60 views

query calender list so user cant book same date and time

Update var context= SP.ClientContext.get_current(); var web = context.get_web(); var list = web.get_lists(); var targetList; function createItem() { targetList = ...
4
votes
4answers
155 views

How to update the name of an attachment from a list item (if possible, with SPServices)?

Like the title says, I'd like to know how to update the name of an attachment from a list item. The document name.I've figured out how to get the attachment from a list item (see code below), on the ...
0
votes
1answer
59 views

Get person profile properties by name

Is there a quick solution of getting someone's user profile given just their name? I want to get the mysites url of the user and I only have their name.
3
votes
0answers
39 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 ...
0
votes
3answers
80 views

JavaScript to auto turn pages of a list (for digital signage)

We're currently pulling work schedules from SQL in a Custom List and Displaying it on a TV screen for freelancers to use (Digital Signage). The tv screen can only display 30 rows so we set the list ...
0
votes
0answers
133 views

How to create a Sharepoint Hosted App with AngularJS and keep the Sharepoint Look and Feel

I am having the following issue. I have a mini SPA with an option to view products, edit and create. The SPA I created using the default .aspx page that comes when you add a new Item (Page), into a ...
0
votes
0answers
23 views

people picker, on edit page, display on published page as hyperlink

Basically I have a people picker like so in my page layout <SharePointWebControls:UserField ID="UserField2" runat="server" FieldName="Approver"/> this shows in the edit page and when it is ...
1
vote
2answers
129 views

executeFunc not working in Sharepoint 2013

I have this simple piece of code: <script type="text/javascript" src="AnotherLibrary.js" /> <script type="text/javascript"> SP.SOD.executeFunc('sp.js', 'SP.ClientContext', ...
0
votes
1answer
50 views

How to change the name of an attachment in a new item before the item gets saved?

I have a regular list, and the NewForm.aspx page is opened as a modal dialog. When a user wants to add a new item to that list and adds an attachment to that list, I'd like to be able to change the ...
0
votes
1answer
74 views

Error Unable to get property 'getEnumerator' of undefined or null reference

Getting the following error when running my script: Unable to get property 'getEnumerator' of undefined or null reference My code : NBSFeedbackEditInbox.FeedbackRemove = (function () { var ...
0
votes
2answers
40 views

client context not initialized error

I have a client context not initialized error and I have no clue how to fix it I feel like I have tried everything. Would appreciate some help Here is my code : Code that gets the list: var SFW = ...
0
votes
1answer
70 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
109 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
83 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
60 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
73 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
89 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
36 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
20 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
31 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
115 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
65 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
46 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
101 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
67 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
61 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
23 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
73 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
19 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
15 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
81 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
56 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
51 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
39 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
106 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
48 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
47 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
130 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
150 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
87 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
34 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
64 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
29 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
38 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: ...