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

Requete CamlQuery

My question is to check if my CAML query query is good or not. I want to get items from a list by the email of the current user.
0
votes
2answers
43 views

Sharepoint 2013 - Javascript Code for File Upload - Max limit exceeded ?

I have an issue with uploading file > 2MB. I have used javascript code to upload files from my UI. In Central Admin, the allowed file size has been increased to 10MB. Whenever I try to upload a file ...
5
votes
3answers
140 views

Updating a single list item based on relative URL

Is it possible, using SPServices, to update a specific list item when all I have is the file path? For example, I have a file located at /site/library/folder/file.txt and I want to update a single ...
4
votes
4answers
10k views

“the HTML source you entered might have been modified”

"the HTML source you entered might have been modified" In SharePoint 2010, this is the scary message you get everytime you use the "edit HTML source" button with the Content Editor Web Part. In ...
1
vote
0answers
65 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
1answer
59 views

Refreshing a Web Part Without a Post back in SharePoint 2013

I have a list with many columns in SharePoint 2013, I used SharePoint designer 2013 for displaying items , I have tow web parts in a page that I created in SharePoint designer 2013, one web part ...
2
votes
1answer
585 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
1answer
343 views

Call executeQueryAsync method second time gives first time result

In the code I tried to get the data from 2 different LIST. Input of the second query will be done after executing first list. $(document).ready(function () { $("#SearchButton").click(function ...
0
votes
1answer
641 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 ...
0
votes
0answers
23 views

Is it possible to break alerts in one site collection with client-side scripting?

We have a single site collection where alerts have been down for some time. After review, it was suggested that client-side Javascript (common ones like EasyTabs and SPServices) could break alerts. ...
0
votes
1answer
30 views

Remove all user groups from a web site in javascript

I have figured out how to break inheritance on a site, but I really want to do that and then remove all the standard and/or inherited user groups from the site. Is there a way to iterate through all ...
1
vote
2answers
55 views

jQuery not working properly

In the editform.aspx of an item, I am trying to use jQuery to cause a pop up to go off anytime a field is changed (sort of silly, but once I get this to work, I plan on moving to doing more). However, ...
0
votes
1answer
25 views

request failed unexpected response data from server null

My objective is to read and extract data from list created in SharePoint site and put it in another list of the same site. Firstly my problem is that an error message appears where I deploy my ...
2
votes
0answers
12 views

SP2013: Tabular view incompatible with JSLink checkboxes?

I'm using a JSLink file to replace a "Single line of text" column with a custom checkbox. For some reason, when "Allow individual item checkboxes" is enabled my checkbox won't work - I can't even ...
1
vote
2answers
54 views

Access an item in a list in a subsite with Javascript(Solved)

function Testing() { var context = new SP.ClientContext('/Testing'); documents = context.get_web().get_lists().getByTitle("Site Assets").getItems(); context.load(documents); ...
1
vote
2answers
64 views

Expand collapse text on a Wiki page

I am trying to have a section of text on a Wiki page hidden by default, but when clicking on a link/header the text is then unhidden/expanded. I have searched online and thought I was getting ...
0
votes
0answers
19 views

Adding central site column to a list with JavaScript in SP 2013

I'm managing a site where several users (owners) can set up new websites. But there are some areas that they always have to change that I cannot apply to the template. So I programmed a small code ...
0
votes
0answers
59 views

Clientpeoplepicker control in custom SharePoint List form

I use SharePoint 2013. I need advice to bind clientpeoplepicker control with a field. By default, user field on list form is displayed same as SharePoint:ClientPeoplePicker. So we have autocomplete ...
0
votes
1answer
62 views

Displaying list from another site collection, want items to open in a modal dialog

Here is the code I'm using. Keep in mind that I know practically nothing about javascript and borrowed the code from someone else. He hasn't had time to look at it yet. I'm just trying to modify it to ...
0
votes
2answers
66 views

Trigger JavaScript on Custom Action Ribbon/Menu Item

I have two custom actions that are currently deployed to a SharePoint 2013 Forms Library. They are working perfectly fine with the exception of a less than favorable method. What happens now is that ...
0
votes
2answers
390 views

Javascript in content editor web part not working after publishing the page

I have a publishing page in which I have placed content editor web part which contains the link to redirect the user to application page. Code in the content editor web part is: <script ...
1
vote
1answer
40 views

Editing Managed Metadata List columns using JavaScript

I am attempting to update a list outside of my app web. When I find the list, I am finding my column, then casting that into a TaxonomyField. The purpose of casting is to be able to play with ...
0
votes
1answer
318 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, ...
4
votes
5answers
632 views

Retrieve All list items with AngularJS and ClientContext

I would like to ask you if there is a possibility to use ClientContext with AngularJS? In this way I want to take all items, sort them, filter, make some modification and etc. Later maybe I will add ...
1
vote
1answer
355 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 ...
0
votes
1answer
35 views

How to validate parent list data while creating new child item

I am having a parent list and child list. Parent list (Contract) is having an Contract Num, Contract Amount, Start Date and End Date columns. Child list (Project) is having and Project Name, Parent ...
4
votes
3answers
116 views

JavaScript is breaking my theme in SharePoint 2013

I am having an unusual problem. I have a site in SharePoint 2013 I just stood up, and starting to experiment with JavaScript and jQuery. I am using one of the OOTB themes, not ready to monkey around ...
2
votes
1answer
32 views

executeQueryAsync fail on Chrome

I am using SP.ClientContext (JS library) to update some item's fields. It is working fine on IE but on Chrome I get this error (displayed as alert): Request Failed, status code 0 text '' The ...
2
votes
2answers
2k views

SharePoint 2010 - Create link to document library content type

Have a document library with multiple content types, each using a template. Example, user click on 'New Document' > 'Content A' and a Excel form will open. I'm trying to create links (buttons to be ...
2
votes
3answers
181 views

Which javascript event is fired when remove person from people picker?

I want to handle the javascript event whenever the person is removed from the PeoplePicker control in new form of custom list. If any person is removed then corresponding department value should be ...
2
votes
1answer
64 views

CSOM - get listitem by file URL

Task Abridgment - Access item attribute from a picture library by picture url. Long - When editing a pagelayout and an image is added to the page, the image's description should be loaded. This is ...
11
votes
5answers
10k views

SP.UI.ModalDialog.showModalDialog using the html option

http://msdn.microsoft.com/en-us/library/ff410058.aspx says that you can use the option html to display html text in a modal. I have a string like this; var html = ...
0
votes
0answers
24 views

Modal dialog loads hosting page after action

I have a user for which I want to "pull out" the user management screens by providing links to modal dialogs. This works just fine until we start adding users. This action opens a second window to ...
2
votes
1answer
300 views

Create Multiple List Items with One Function

Is it possible to create multiple list items with one function in JavaScript / ECMAScript? I know that a single item can be created with the code below, but would like to know if it is possible to ...
2
votes
2answers
2k views

Automatically zoom-to-fit in Visio Web Access ASPX

I'm trying to set the zoom level of a Visio document which is shown through the Visio Web Service. http://mysite/_layouts/VisioWebAccess/VisioWebAccess.aspx?id=/Shared%20Documents/MyDiagram.vdw I ...
2
votes
3answers
5k views

How to get list by url using client object model?

Is it possible to get list by url using ECMA script client model? For example something like this: context.get_web().get_lists().getByUrl("Lists/MyList");
0
votes
1answer
31 views

2 client contexts using the same success method

Is there anyway to have 2 client contexts in the same success method like so var clientContext = SP.ClientContext.get_current(); var peopleManager = new ...
0
votes
1answer
69 views

Hide ribbon control in newform.aspx & editform.aspx

I want to hide ribbon form my newform.aspx & editform.aspx forms only. I don't want to hide ribbon from my whole site. I just want that whenever a user add or edit item top ribbon must be hidden ...
0
votes
0answers
34 views

Get List by “InternalName”

I'm trying to use the SharePoint 2013 JavaScript Object Model to retrieve a List via an internal name equivalent. SPList doesn't have a Name or Internal Name property. It is referred to by the ...
1
vote
1answer
121 views

SharePoint 2013 REST - Create list item with user field and lookup field

I'm trying to add an SPListItem to an SPList via REST, but have a problem with User or Group and Lookup (information already on this site). function adddullitem() { var item = { ...
0
votes
2answers
920 views

Autocomplete people picker in sharepoint2010

I have a problem in which I have to add an Auto Complete functionality for a new people picker of Sharepoint list newform.aspx While Googling I found this ...
5
votes
1answer
1k views

JavaScript Client object model, rename folder

I am trying to rename a folder inside a Document library. Right now I get my item and everything is good but when I try to rename it using set_item('title', 'NewFolderName') it crashes and unwinds the ...
1
vote
3answers
129 views

Sharepoint- Client Object Model - Javascript - How to check if a particular file with same name exists in a document library folder

I am using javascript sharepoint 2013. I want to know how to check if a file exists in a folder, before i upload. Here's my code // Folder Name - folder into which I need to upload var ...
2
votes
2answers
187 views

Sharepoint 2010 javascript client object model - downloading items and item attachments?

Is there a way, so that you can download the items from a list and all its item attachment files in one context call? Currently I am downloading all the items, then looping through each item, and ...
-1
votes
1answer
61 views

Check if the user has attached any file

When I open(edit) some item in a list I want to check with JavaScript if the user has attached any file in my Edit Form...
0
votes
2answers
32 views

Get the field “Created”

I have a list "Consult", and I want get the field "Created" this is my code: function consultWorkOrder() { try { var customlist ; var clientContext = new ...
1
vote
1answer
371 views

How to get server datetime without postback using JSOM or services

My application page may be long time without reloading, and user changed system date and time. And I need to know datetime from server, not from client.
0
votes
2answers
67 views

How to find relative URL of a document library using JavaScript?

What I am trying to do is to enable the dialog with the metadata information when I drag and drop a file in a document library. The same dialog that appears when you upload a file through the +New ...
1
vote
1answer
291 views

Load page error when I use ScriptLink in the page head

Here is the beginning of my custom SharePoint Application Page: <%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %> <%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, ...
0
votes
0answers
14 views

custom page allowing verification of existing item

The scenario is that I need a multi stage pages. Ideally I would like to do this on a single page but for simplicity 2 pages are fine. On the 1st page I need to verify if an item exists in the ...