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
2answers
657 views

SharePoint Hosted App - SP.WebRequestInfo

I wanted to invoke a Simple WCF Service that is hosted in my local using SP.WebRequestInfo class in my SharePoint Hosted app. I was able to get it working without an parameter but as soon as I add ...
0
votes
1answer
1k views

SP2013 “_spUserId” is undefined

As we migrated our solutions and scripts from SP2010 to SP2013 my script ran into some weird error where I could not fetch the current logged in user with "_spUserId" anymore. var user = _spUserId ...
0
votes
1answer
564 views

How to get URL of a document if I have the documents item ID (JavaScript)?

I am trying to create a Ribbon Custom Action in SharePoint 2013 that will e-mail links of selected documents in a document library. I can get the Item ID's of selected items, but how can I use these ...
5
votes
3answers
2k views

Updating a Property w/ 2013 REST Api

I have a sharepoint hosted app that is succesfully able to add Read and Create files on the Host site (using the REST Api and SP.RequestExecutor). Now I am trying to figure out how to update ...
0
votes
2answers
674 views

JavaScript error with Cascading Dropdowns

Many similar questions have been asked but none seem to work. I have Sharepoint 2010 and I have jquery-1.9.1.min and jquery.SPServices-0.7.2.min loaded into my parent site's Shared Documents. It ...
1
vote
3answers
468 views

masterpage javascript not working while anonymous user visits the site

Explanation. I have applied anonymous access to entire website. My Javascript working fine while users login. But not woking while anonymous users visits the site. I need to execute masterpage ...
1
vote
1answer
328 views

Binding Enter Key?

here is my script that runs from a CEWP. just want little search button, but it only works when i click the button, enter key just refreshes the page. I've tried the event.preventDefault() - but no ...
2
votes
1answer
7k views

Javascript get SharePoint List items, enumerate, and locate and pin each item on Bing Map

The map is rendering and debugging in IEf12 does not show any error with loading the list. I am using a CEWP referencing this file - SharePoint Online (Office 365). What's wrong with this code? ...
1
vote
4answers
2k views

How to perform date validation in publishing page layout?

I have the following 2 datetime fields which are used in my custom page layout on my publishing site. Basically, when a user is editing the page I want to validate that the 'NewsLiveDate' < ...
1
vote
2answers
371 views

SiteMap using ECMA script Client object model

Iam trying to create a sitemap for sharepoint sites to get a hierarchial structure of all the subsites within a site. but Iam only able to get sites of that site eg: -Lets say i have created below ...
0
votes
1answer
309 views

SharePoint; Javascript repeating click event already on page

I have a SharePoint calendar, and I've got some Javascript code to force a calendar overlay event to open in a modal dialog. Basically, it forces them to open in a modal dialog via this code: ...
0
votes
1answer
204 views

How are columns in SharePoint connected to CAML with regards to data submission?

I am trying to make an alteration to an infopath form that was created to submit data to sharepoint. I added a dropdown box and want to submit that data to sharepoint. The submission has been ...
3
votes
2answers
4k views

Disable a form text field with jquery in CEWP not working in Chrome/Firefox

I want to simply disable a text field (specifically a "person/group" field text box) from being editable on the edit form page of my list item. I have it working in IE using a Content Editor Web Part ...
0
votes
3answers
4k views

SharePoint-hosted app don't get my lists

I'm developing a SharePoint-hosted app for SharePoint 2013 (in Office365), but I've a problem accessing lists within a SharePoint-hosted app. My code is well printing the lists, but it only show me ...
2
votes
2answers
5k views

How to modify user profile properties using javascript in SharePoint 2013 (Online)?

I need to modify user profile properties using javascript (REST or CSOM). How can I do that? I don't see any methods in MSDN documentation about modifying profile properties without server code. ...
2
votes
1answer
136 views

Storing JS/CSS/HTML for a sub-site

I am building out a Single Page Application using knockout.js on a sub-site which I do have control of the parent site collection. I know most people recommend storing JS and CSS files in the Style ...
0
votes
2answers
138 views

Javascript doesn't work for the users except System admin

Javascript doesn't work for the users except System admin. I checked in all files. And everyone can view the pages and sites. How can I solve this? <script type="text/javascript" ...
1
vote
2answers
116 views

Reference to hidden CEWP

could you help me with the following problem. I have a html and java code drawing a table below a SharePoint list, in the table I place some calculation based on the list above and it works fine, ...
2
votes
1answer
681 views

Calling SP.ClientContext in a loop Javascript

I'm looping through a number of sites to run a query that checks whether new content has been added to document libraries in that site in the previous three days. However, I'm having problems. When I ...
1
vote
1answer
343 views

Set TaskOutcome using JavaScript

I created custom task display form and need to add 2 buttons to allow user approve and reject task in display mode. How can I set TaskOutcome value using JS? My code is the following: <td ...
1
vote
1answer
278 views

Filling an SP column with SQL data

As part of an internship assignment, I'm working with SharePoint 2013. I'm completely new to SharePoint in general. Part of this assignment is a labeling system. The idea is that users can add labels ...
3
votes
3answers
3k views

JavaScript and CSOM Unable to update a new item lookup field with a string

I have a list MyUsers that has a lookup field deptRef that references the Title in my departments list. Fine and is easy for my users to update the MyUsers list and select the relevant department. ...
0
votes
2answers
629 views

Changing “New Item” Text

I want to change the "New Item" text into "Yeni Ekle". I viewed the source of the list from browser. Here is the part of the New Item; <a id="idHomePageNewItem" ...........> <span ...> ...
0
votes
1answer
446 views

DataJS to Read from ListData.svc not Returning All Fields

I am attempting to use Data.js to read from the ListData.svc but the service is not returning all of the fields that I want. Is there a way that I can specify the view fields or something? The fields ...
0
votes
1answer
38 views

SpcalenderView Javascript on Mouse hower

I have one issue with spcalendarview. I just wanted to show spcalender item to the contain editor web part from the link here but i wanted to my custom page into the contain editor web part so how to ...
0
votes
1answer
354 views

Getting Filtered results by Date column from a list with BCS and SharePoint 2010 JavaScript Client Object Model

I'm trying to get the filtered results by a column type DateTime from a list filled with BCS using JavaScript. I've tried everything to get those results with query like: "<Where>" + ...
5
votes
2answers
2k views

ScriptResx.ashx Not Working

I'm trying to use ScriptResx.ashx in an Application Page I'm building (just to test out the functionality) and every time I try to grab a resource from what should be a JavaScript object, SharePoint ...
1
vote
1answer
140 views

Best Tools for Developing with JavScript, CSOM and SPServices

I think this is worth kicking off a discussion on here. I currently use SharePoint Designer 2010 + FireFox + firebug and it is a bit heavy going for me to write (as editor is basic) but very quick to ...
2
votes
1answer
209 views

Javascript CSOM SP.List get_onQuickLaunch

I am trying to get the onQuickLaunch flag from a SP.List using javascript. I am able to get other list attributes, however when I try to execute list.get_onQuickLaunch(); I get an error Uncaught ...
0
votes
1answer
143 views

SharePoint App DOM Manipulation and Deployment

I've got some issues with development and deployment of a sharepoint app. The App is going to be an App Part in a SharePoint site. One issue is, that the app (provider hosted) is not high trusted, ...
2
votes
2answers
6k views

access additional lookup fields using JavaScript and CSOM

In visual studio I have added lookup field (SubMenuItemIdRefTitle) to list definition listA that references ListB. I have also added <ViewFields> <FieldRef ...
0
votes
2answers
486 views

is anonymous user form javascript

I'm using sp2010 I have computability problem with IE7 ,where a piece of the ribbon left in top of the screen. I want to remove it if the user come to the anonymous website with JavaScript. My ...
0
votes
1answer
802 views

inserting multiple user /group to a list item of type spfieldUserValue

I have used following code to add users and groups to a list item of type SpFieldUserValue. it works if there is one single user or group in my client side people picker but if there is more than one ...
3
votes
1answer
1k views

Best way to access SharePoint (online) from a Windows 8 RT/Metro application?

I am developing a Windows 8 tile app/Metro (Windows RT) application. I have experienced some problems linking with the C# client object model assemblies due to limitations in RT. I was hoping I ...
1
vote
1answer
139 views

I am confused about the Javascript Client Object Model and when it can be used

Is it only intended for use "inside" SharePoint? Using the .Net/C# client object model I can execute applications on my local machine and access a remote SharePoint server. I can only find examples ...
3
votes
0answers
512 views

Bug: JSLink on field/column breaks callout menu in Chrome, Firefox [closed]

I am trying to use JSLink+JavaScript to customize the rendering of a field. My very simple JavaScript code looks like this: ;(function () { 'use strict'; console.log('EmployeeFieldCSR ...
1
vote
2answers
264 views

Site Permissions With Custom Navigation

I recently edited my organization's intranet site by creating a JavaScript file which utilizes jQuery v.8 and jQuery UI. My custom JS creates an unordered list with site navigation that has drop ...
0
votes
0answers
520 views

current user is always is administrator on a SharePoint App

I have tried following solution to check the current user's permissions on the current host web in a SharePoint hosted app, however the user is always administrator. function sharePointReady() { ...
1
vote
1answer
411 views

Help using the client side object model with javascript and jquery, reading an item

So I usually only deal with server side code, and need some assistance. in c# i was able to just do something like, numStirng = listItem["fieldName"].toString(); num = Convert.ToInt(num); ...
1
vote
4answers
2k views

Modal popup error in sharepoint 2013

var options = { url: "http://siteUrl/_layouts/Page.aspx?ID=6", width: 800, height: 600, title: 'Attach File', }; ...
3
votes
3answers
3k views

Adding notification from server side, code ignoring ExecuteOrDelayUntilScriptLoaded

I'm trying to add a UI notification from server side. To do this, I've written this code in one of my code behind event handler: private void AddNotifySuccessScript() { var ...
3
votes
2answers
4k views

SharePoint javascript refresh page is reloading the whole page

In a webpart, I added a button that should trigger a modal dialog, and display a message when the dialog is closed. The dialog script is handled by this code : function OpenGenericForm(formUrl, ...
0
votes
2answers
3k views

How to center a Picture Library Slideshow Web Part's Previous, Next, and Pause buttons

We have a Picture Library Slideshow web part added to our site but the buttons to control Previous, Next, and Pause/Play directly underneath it are off-center to the left for some reason. We need to ...
4
votes
1answer
1k views

Error using javascript to retrieve a SharePoint list's items

I am trying to use this method to query items of a column of a list in my SP site via javascript (the reason I am doing this is to display that info on the page by modifying the html tags in the DOM), ...
1
vote
2answers
253 views

Custom action doesn't navigate to another site

I have an issue with custom action. Here is the definition of my custom action: <CustomAction Id="GoToDefi" Title="Go To" Description="Go To" ...
2
votes
1answer
259 views

Display all documents from multiple document libraries using client object model

Can anyone help me with the code to display documents from multiple document libraries using javascript client object model. I have done displaying from single document library.
0
votes
1answer
601 views

Fill the fields in new form for an item

I've came across a requirement where I need to fill some of the fields in newform. So basically we start from view item, where we can see an existing item in a list, then we click something like move ...
2
votes
3answers
4k views

Add (replace) hyperlink to pictures in a Picture Library Slideshow Web Part

On our team site we have added a web part that is a "Picture Library Slideshow" web part. Currently clicking on the images that scroll in the slideshow directs the browser to just the image's URL. I ...
1
vote
1answer
347 views

Stop hover with navigation to just display links

I'm somewhat new to developing with SharePoint, so sorry if this is painfully obvious and I'm totally missing something. I have a publishing site that I'm working on, and I need to tweak the ...
7
votes
2answers
19k views

ExecuteOrDelayUntilScriptLoaded not executing after page publish

In SharePoint 2013 I have a page that is using the Script Editor web part. In the script editor web part I have the following: ExecuteOrDelayUntilScriptLoaded(startIt, "sp.js"); function startIt() { ...