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
0answers
15 views

SharePoint 2013 Change default start time and end time on calendar event

We're scheduling a lot of similar events, so the start time is almost always 8:30AM and the end time is almost always 5:30PM (not necessarily on the same day). Is there any way that we can set the ...
0
votes
6answers
42 views

SP.js file not loaded in a simple JSOM example

I am creating a simple example that demonstrates client object model using javascript. I have ceated a simple JS file in Visual Studio and an aspx page using the SharePoint Designer. I have used ...
2
votes
1answer
59 views

Sharepoint Deployment not updating webparts

Alright. I have just made changes to a custom webpart that was already deployed to Sharepoint. I made a few deploys, some changes... and suddenly, a code that was in the front-end of the webpart ...
2
votes
1answer
735 views

How to open file in adobe reader using command line without checkout from Javascript?

I am working on print functionality. I am printing the PDF files (uploaded in SharePoint Library) using Adobe Reader command line from javascript. I am using ActiveX object to call the cmd. refer ...
0
votes
0answers
9 views

not able to fetch term stores

I am getting this error.. Failed to load resource: the server responded with a status of 404 (NOT FOUND) The error is because of this var scriptbase = ...
2
votes
1answer
511 views

Get selected items from JavaScript in the document library view

I have a page in which I have placed XsltListView web part to show the view of the picture library. Above that view I have placed a link using Content Editor Web Part which redirects to other web ...
0
votes
1answer
415 views

loading multiple files from custom action with SP.ClientContext

I made a custom action that calls GetSelectedListItemAsString(). it should load the files 1 by 1 but somehow it does not load the files can somebody help me with it underneat a code snippet of the ...
0
votes
1answer
25 views

open links in modal view from page layout

I have found how to open any link in modal view thanks to the JS OpenPopUpPage* on publishing pages. I would like to use this also with the links I have in my page layout (created by snippets), so ...
1
vote
1answer
938 views

_spPageContextInfo is undefined in client web part

I have created a client web part for a SharePoint-hosted app that I am creating. The app makes use of the clienttemplates.js library in SharePoint to render user presence (Lync) in the web page. I am ...
0
votes
0answers
9 views

WOPI iframe on Sharepoint list attachments

I really like this new functionality of the SharePoint search that shows you a document preview on mouse hover. Is there any way to make the save document preview in list item? In the search it looks ...
1
vote
1answer
443 views

Column not found when creating list item with Javascript

I am making a SharePoint app with javascript. I am trying to add a list item to a list I have defined in Visual Studio. I have done this just by adding a list in the solution explorer, and I made ...
2
votes
3answers
41 views

Injecting Javascript into SP2010 List - Need to make sure I have the right ID

New to Sharepoint 2010, but not new to coding. I have created a custom list with 4 text input fields and I am trying to target one of the fields called SUID with custom Javascript to modify how the ...
0
votes
1answer
29 views

Run javascript code only in publish page not in edit [duplicate]

I am running some javascript code in on page but I don't want it running when I try and edit the page. How can I stop this from running in edit page and only when the page has been published
0
votes
0answers
29 views

CSOM: SP is not defined

Here is my error: Uncaught ReferenceError: SP is not defined $_global_portal (anonymous function) SP is not defined and the source is portal.js?rev=nIRSxJH7DAoMFUDBHc9jFg%3D%3D:1 ...
1
vote
2answers
72 views

Register Javascript For Document Library

I need to run a JavaScript script when a document library is opened/shown. The script should be available only on the specific document library. One possible solution could be adding the script ...
2
votes
1answer
35 views

SharePoint online refer custom css and javascript in MasterPage (Site Assets)

How to add references to css and js files in HTML master pages. The files are residing in SharePoint libraries.
0
votes
1answer
39 views

How to move/copy a document set via JavaScript CSOM

Could somebody give a JavaScript CSOM example of how to move/copy a document set from one document library to another? The document set has a derived content type with a list of metadata, and it ...
0
votes
1answer
667 views

Add custom web application/page which uses files from other folders

I've created a JavaScript web browser game. The HTML page, Game.html, within folder Game references several other JS/jQuery/CSS files stored in sub folders. I simply want to add the Game folder, ...
0
votes
1answer
41 views

Send item link by email? (EDM SP2013)

Is there a way to directly send an item link by email? I have a SP2013 based EDM. I know that docs URL are available in a popup, but I don't want to copy/paste link: I would like to be able to click ...
1
vote
3answers
42 views

How to debug Napa SharePoint app

I've made a simple app in "Napa" Office 365 Development Tools. It's a SharePoint app that returns the current site lists. This is the rest call: site + /_api/web/lists When i debug this app it ...
1
vote
0answers
16 views

SharePoint Hosted App duplicate calendar issue

We developed SharePoint Hosted App and released 1.0.0.0 version for first time into App Store. Later with some Enhancements we released 1.2.0.0 version and published into App Store the problem is ...
1
vote
2answers
58 views

How to remove user from Sharepoint Group using JavaScript?

I want to add and remove user to/from Office 365 Group. I tried using C# code but got error : "User does not exist or is not unique". After searching on the web I can't find solution.So i tried ...
0
votes
1answer
2k views

Saving Page with WebPart error Invalid postback or callback argument

I'm using SharePoint 2010 Foundation with Visual Studio 2010 Ultimate. I developed a Web Part with extensive use of JavaScript and Ajax call. I deploy application by Visual Studio correctly, enable ...
1
vote
1answer
27 views

SP.ClientContext is not a Constructor

I keep receiving the error message "SP.ClientContext is not a Constructor" every time I try to use it in my JS code. After doing a bit of research online, I found SP.SOD.execute function(). However, I ...
0
votes
0answers
15 views

From root site, link that creates new item in a specific list / link to newform in a specific list - javascript

I have a teamsite. On the welcome page (root) I want to have a link to newform of a specific list inside the site collection. When I click on the link I want it to redirect me so I can create a new ...
0
votes
1answer
938 views

SPServices - GetRolesAndPermissionsForCurrentUser

I have a list where one group of users is not allowed to delete items but they have view and edit permissions. All items in the list contain an attachment. However, users are not allowed to delete the ...
4
votes
1answer
204 views

SharePoint XML Web Part dynamically adding xml link

Is there a way to dynamically insert a variable in the <XMLLink> --variable here--</XMLLink> tag? I'm trying to read an URL parameter which will contain the xml files path. What I am ...
2
votes
2answers
521 views

SharePoint 2013 Add Read more link in Announcement web part each list items

I want to add Read more link in my Announcement Web Part I followed this blog post: http://www.learningsharepoint.com/2013/04/07/styling-announcements-with-javascript-using-js-link-in-sharepoint-2013/ ...
0
votes
0answers
14 views

How could i delete old items in select tag option before adding new?

I am trying to do the following: every time an item gets added in my select option remove the old ones and only display the new added in my select option? Right now it deletes all items and only show ...
3
votes
1answer
3k views

Getting Version History and What Field has Changed

I am using the GetVersionCollection to get the history information from my list. This seems to be working fine; however, what I need to do is get the version history of the individual item which has ...
0
votes
1answer
28 views

How to include JavaScript in a list instance's form in Visual Studio

So I know you can use JSLink to include JavaScript files in list definitions in Schema.xml like so: <Form Type="DisplayForm" Url="DispForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" ...
0
votes
0answers
19 views

How do I access a Custom List from a client web part via the REST API?

I am using the following code to try and access my newly created Custom List called Announcements: $.ajax({ url: appWebUrl + "/_api/web/lists/getbytitle('Announcements')/items", method: ...
4
votes
2answers
999 views

Create Page using REST API

I have spent two days trying to create a page with a specific Content Type in Pages list using REST API. It goes into error handler and returns ...
1
vote
2answers
48 views

Find the startpage of current web using javascript?

I want to hide a "div" from all startpages/welcomepages. But I cant just compare "start.aspx" and my url parameter cause sometimes the page "start.aspx" isn't there in the url. Is there a way to know ...
1
vote
1answer
62 views

Where is /_layouts/15/SFS.Ashok.Refer/scripts folder located in SharePoint Designer 2013

I'm editing a JS script file using SharePoint Designer and would like to upload it on to /_layouts/15/SFS.Ashok.Refer/scripts .Where is the folder stored on the SharePoint Designer?
0
votes
1answer
21 views

SharePoint cascading drop down on visual web part using client side code

Hi I am working with cascading drop down in a visual web part. I am able to complete this functionality using c# but I want to implement this functionality using JavaScript jquery basically I want to ...
0
votes
0answers
15 views

Async Refresh LVWP on load with HTML Form Param

I have a List View WebPart that I need to asynchronously take a parameter from an HTML form WebPart and update the LVWP. I have some odd behavior happen when I attempt this. I have Async Load, Update, ...
0
votes
1answer
36 views

SharePoint visual webparts for NewForm with client side coding

I need to use visual web parts to create a new item form for a list. I know I can do this by using SSOM.. But I want to reduce the load on the server Can I use CSOM?.. Or is CSOM mainly for sandbox ...
3
votes
3answers
260 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
2answers
80 views

Problem using JavaScript in SharePoint provider hosted app

I have created a provider hosted app for a SharePoint Online site and want to use JavaScript for most of the front end logic, rather than ASP.NET MVC I have run into Cross domain problems trying to ...
0
votes
0answers
8 views

Get date before and after and query out free dates on range

When double booking in calender, the user get prompted to an dialog where Current day and +1 och -1 on day and then display the free dates, doing all this code wihout +1 om fromTime, and -1 on toTime, ...
1
vote
2answers
33 views

Apply script to a calendar view every date navigation

I have a calendar view in Sharepoint Online and my user wants the time hidden. I manage to hide this using Javascript but the problem is that when I navigate to another month view, the script no ...
0
votes
1answer
134 views

Client people picker on Sharepoint View Custom Forms

Can someone tell me how to have the default client people picker control with the auto complete functionality on the custom view form in Sharepoint 2013? Once the default view form is customised, the ...
0
votes
1answer
357 views

Add showWaitScreenWithNoClose to SPServices GetListItems

With a button on page which calls the function createListItems() which is added to the page as a link in a CEWP. The function takes 10-25 seconds to complete (get items from one list and add them to ...
2
votes
2answers
55 views

Dealing with JSON data in Sharepoint

I'm interviewing for a company and they asked me to put together some demos for them. They have a platform they use on top of Sharepoint and I would be working extensively in it (this is a junior ...
1
vote
1answer
791 views

SPServices Autocomplete and dynamic CAML query

I have two Text filter web parts (Project and Customer Name) with Apply Filters button for one list. There is a SPServices.SPAutocomplete on each and it works great. Now, I want to show the values in ...
0
votes
0answers
13 views

How do I access an image library from my client web part via the REST API?

I am busy implementing a small web part to rotate through a list of banner images. The images must come from an Office365 SharePoint online list. My first choice to implement this list is by using the ...
0
votes
1answer
25 views

ReferenceError: itemID is not defined (JavaScript)

I'm trying to grab data from an external list using ecmascript. I'm running into a slight problem. I'm not getting an error popup, however, in debugger mode it's referencing the above error message ...
2
votes
2answers
2k views

JSLink: Render FileLeafRef with Title in document library

JSLink is the greatest thing since sliced bread. Not. There are some weird issues concerning standard stuff and I'm not sure whether these are limitations or I'm doing something wrong. I want to have ...
1
vote
1answer
24 views

Creating an app to pull in announcements via JSON

I have the code to pull in my data, but I'm new to Sharepoint and need some help. Where can I find some resources to figure out how to get started. I'm used to building stand-alone sites with HTML, ...