Tagged Questions

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

Button/Workflow to open New Email Form in List (EDIT: CSR & JS Link)

Right now in SharePoint (2013) if a column contains an email address by clicking on it an Outlook window pops up with the To: autofilled with that email address. Maybe the other way round is possible? ...
0
votes
0answers
6 views

How to hide SP.UI.ModalDialog.showWaitScreenSize?

While loading a SP.UI.ModalDialog window, I implemented a Waitscreen as proposed by MdMazzotti. Now, I seem unable to close that waitscreen from the dialog window. apparently, this fails because the ...
0
votes
2answers
23 views

Get the current view name

In javascript, i need to know the current view. I found this post but in 2010 it doesn't work: How to get the current custom view name of my SharePoint List When i do context.view, it's undefined. ...
0
votes
3answers
17 views

Get value of lookup

In js, i retrieve some items and inside there are lookup column and people column. When i print them, it's [object Object] Are there a way to determine if it's a lookup column? This one doesn't work ...
0
votes
0answers
8 views

Multiple select tag in HTML using jquery autocomplete [on hold]

I have a Sharepoint Form that has 15 comboboxes that are linked to another list with hundreds of values. I used JQuery autocomplete to filter user input to specific values. My question is, how can ...
0
votes
0answers
12 views

Help Updating Image Url of recently modified Sharepoint List items

I'm working on a project for my group where we want to display a different stage progress image whenever the current status field of a list item (Req Status) is changed in the Edit Properties window. ...
0
votes
3answers
22 views

How to load multiple item

I'm using SharePoint 2010. I'm trying to load mutliple selected item from a view in a ribbon on a custom list. I can have the selecteditems but when i try to display a value for an item, i've an ...
0
votes
0answers
5 views

getTimezoneOffset(); using returns -60

The listItemToTime before making it to getTimeZoneOffset displays in UTC format, Like this 2014-10-15T10:00:00Z var toTime = new Date(listItemToTime).getTimezoneOffset(); But after using ...
0
votes
0answers
20 views

How to get Sugested People, Documents and Sites to follow in Sharepoint online using REST

I know we can use http://<siteCollection>/<site>/_api/sp.userprofiles.peoplemanager/getmysuggestions API but I am unable to get the Data
0
votes
0answers
18 views

Document Set created using SPServices shown as folder in WelcomePageView

After creating Document Set programatically using jQuery SPServices, if i click on Document Set Name it showing AllItems.aspx page instead of default docsethomepage. I checked in the Welcomepage view ...
0
votes
1answer
21 views

Copy a list item with all field entries

I try to find an easy solution for copying a list items with all field values (duplicate a list item) and edit some specific lines at the end. The script I'm using right now isn't perfect for my ...
0
votes
1answer
38 views

sharepoint designer - get current server datetime through javascript REST

Is it possible to get current date time of sharepoint teamsite hosted server through javascript REST api?
0
votes
0answers
12 views

Hide empty columns in PerformancePoint Scorecard dynamically

I have a scorecard with several empty columns which I want to hide dynamically. In the illustration above, I want to hide three empty columns, viz. MidYear Income, MidYear % and MidYear Status. ...
0
votes
1answer
30 views

SharePoint 2010 Modal Window - Detect when content has fully loaded

I have a SP 2010 page, where I have several links that open modal windows with the following code: function OpenModalPage(url, title) { var myModalPageOptions = SP.UI.$create_DialogOptions(); ...
0
votes
1answer
21 views

How Can I Incluse a js file in a Sharepoint MasterPage

I am newbie about developing with sharepoint and recently, my boss has assigned me a task, so I had to create a list in sharepoint and that list should be accessed by anonymous users. So far ...
0
votes
2answers
32 views

how to get people picker text using javascript

I want to compare text of 2 people picker which are on same form.how to do it using JavaScript or Jquery. I have already gone through so many blogs but they are not providing the exact solution that i ...
0
votes
1answer
10 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
39 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
76 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
33 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
15 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
50 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 = ...
3
votes
4answers
79 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
30 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
18 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
53 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
36 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
19 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 ...
0
votes
2answers
58 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
35 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
43 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
22 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
57 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
47 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
29 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
37 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
28 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
28 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
25 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
18 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
16 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
38 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
24 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
36 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
32 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
32 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
34 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
28 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 ...