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)

4
votes
3answers
366 views

Check an Admin account only using Javascript?

Could anyone suggest a way to use Javascript to check whether or not the logged in user to a SharePoint site is Admin? We need to hide some of the SharePoint's MasterPage ContentPlaceHolders if the ...
0
votes
1answer
283 views

SharePoint 2013. JSLink (CSR) for field Type=“User” on EditForm

How to create custorm render for field type="User" on EditForm? I need to replace standart peoplePicker control with my custom render. Code below work without exeptions, but don't set 'Sponsor' ...
0
votes
0answers
95 views

Bootstrap not working in Page Viewer Web Part - IE9

I have a web page, developed using bootstrap, hosted in my local server, and I am using a page viewer web part in SharePoint 2007 to display it. The web page works perfectly outside the SharePoint ...
0
votes
2answers
360 views

SharePoint 2013 Display Templates - Load Javascript BEFORE rendering search results

This is my problem and please let me know if I am approaching it incorrectly. I have a list called "document classes" that holds information such as the retention and revision periods for documents, ...
2
votes
1answer
37 views

Where/How Do I Add Backbone.js to Home.aspx Without Visual Studio

Is there a way to add an external javascript file to Home.aspx? I tried to add it to the Content PlaceHolder - PlaceHolderAdditionalPageHead but it didn't work (meaning that the link did not appear in ...
0
votes
1answer
42 views

Why does SharePoint 2013 deletes my Javascript code when saving a page?

I have SharePoint Online hosted by Microsoft, individual edition. I noticed that when adding links with a hash (#) to a page, these links would not be saved. I thought it was a bug and decided to ...
2
votes
1answer
345 views

Launch SharePoint 2013 Workflow w/Javascript

Looking to launch a list workflow from script tied to a button on a form. I've been referencing this article, as well as the code from example 5, and even tried using SPServices, but have yet to come ...
0
votes
2answers
68 views

If a user accidentally closes dialog in sharepoint, can we force it to submit to it's list?

In our sharepoint item workflow we have users enter info into a form, then hit submit as usual. A manager does not want the users to have to do it again if they accidentally close the form, or fire ...
0
votes
1answer
161 views

Using CORS with SharePoint REST services from SPA

Continuing from my earlier question SharePoint Webpart development using SPA or JavaScript library for better performance I ma exploring Durandal with JayData and also KO and SPServices. The ...
1
vote
1answer
100 views

How to use “SPTreeView” in sharepoint hosted app

I am developing SharePoint hosted app. In that I have to use SPTreeView to display root site content in the Tree view form. For the data source I have to use SPHierarchyDataSourceControl. But I don't ...
0
votes
2answers
44 views

Need help figuring out why a JavaScript button onclick is not working [closed]

I have a Sharepoint2010 site and am trying to execute a Javascript code to create some drop down selection menus with a GO button at the end. The GO button is supposed to run a function that does a ...
0
votes
0answers
24 views

Add link to Icon in ChromeLoader

I'm using the following well documented Chromeloader.js on my client side 2013 app. i want to wrap a link around the "appIconUrl", can i do this for the JS or will it need to be done on the HTML page? ...
1
vote
1answer
207 views

JavaScript: How to reuse the “Working on it…” pop in

Sharepoint 2013: In have custom JavaScript code that makes Ajax calls. While loading I'd like to show Sharepoint's loading pop in: That is the one that greys out the underlying page and centers a ...
0
votes
2answers
282 views

Get Icon URL and filename of document library file using JSOM in office 365 app

I have an app that includes a Document Library...using my normal code to display the list but keep getting a null on the field...i've tried rptDocsListItem1.get_item("xd_ProgID") and ...
0
votes
0answers
49 views

Retrieve Profile Picture with REST

Hi i would like to show the profile pictures of the user that have created the item in a list, here is my code: <script type="text/javascript"> $(document).ready(function() { var ...
2
votes
1answer
132 views

How can you get a user's mysite image url based on a list's AuthorId?

I have a list that I am using SharePoint 2013's rest API to grab info from. I would like to display an image of the user who created the list. This site shows how to get a user's image url based on ...
0
votes
1answer
56 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, ...
1
vote
1answer
90 views

ECMA script for checking active workflows for an list item

Hi i am having more than 1 workflow associated with the list if there is any workflow that is active for an item then i need to prevent starting another workflow for the same item. I am using the ...
1
vote
1answer
89 views

Invalid field or parameter requestInfo.url. in SharePoint hosted app

I am working on SharePoint hosted app. I am facing an error in the beginning of the app i.e. "Invalid field or parameter requestInfo.url." This error is came from bellow code: function ...
0
votes
2answers
376 views

Retrieving List Items using REST services in NAPA app

I tried retrieving List items from the List(Marketplace) I created in the Hostweb using REST services in NAPA app , Set the permissions for Web, Site Collection, List to Full Control, Please helpe me ...
0
votes
1answer
96 views

Javascript in CEWP on EditForm.aspx not kicking off in Chrome

In our SharePoint 2010 Enterprise environment I tried adding Javascript into a Content Editor Web Part on a custom List's EditForm.aspx page, and for some reason the code only runs when the form is in ...
0
votes
1answer
71 views

Create a radio button filter based on “Created Date” attribute using jquery or javascript

I’m currently loading a number of list items through a customised Content Query Web Part. And XSLT attribute associated with each of these items is the Created Date. An example of the mark up ...
0
votes
0answers
58 views

How to Install App from sharepoint hosted app to sub sites

Here is my function, but it doesn't work: var context = new SP.ClientContext(appweburl); var factory = new SP.ProxyWebRequestExecutorFactory(appweburl); ...
3
votes
2answers
684 views

Using Sharepoint client API to upload file as attachment in javascript

is there a way to upload file as attachment while using JavaScript client object model in sharepoint 2013? Or using web service in the middle is required? I cannot use FileAPI from HTML5. Thank you ...
1
vote
3answers
166 views

SharePoint Webpart development using SPA or JavaScript library for better performance

We are looking at using combination of MVC4 and JavaScript libraries like Knockout and/or Breezejs for providing SPA or better navigation and performance within SharePoint 2010 environment. I am ...
1
vote
1answer
598 views

Get Related Item ID from a workflow task list

using JSOM i am displaying a list of a workflow task...in order to allow my users to approve the task i need to get the ID of the related item. I'm guessing this is going to be in the Related Item ...
1
vote
1answer
47 views

Double records on list.getItems using Javascript

Using fairly straight forward code to get back a country list for the user...but each time it loads I'm getting double items...i.e all the items are in the drop down twice...in fact time I trigger the ...
2
votes
0answers
113 views

SharePoint InputFormTextBox returns javascript error while changing its position

I have created one aspx page for implementing the edit comments of the form. For this I am using the SharePoint InputFormTextBox control. I have a total of 4 Divs each containing one InputFormTextBox, ...
1
vote
4answers
192 views

View sharepoint list last modified date using javascript

I have some code that I used to get my SP2010 task list last modified date using SP designer but doesn't seem to work and I tried to step through it with firebug but not really sure where my problem ...
0
votes
0answers
103 views

Get IP Address of client

I was wondering if it was possible to get the IP address of the client machine accessing a 2013 website. Is it possible to do this with an ajax call by utilizing one of the sharepoint RESTFUL ...
0
votes
1answer
77 views

Call JavaScript function on Page Render in o365

I'm trying to add some JavaScript code to my o365 site which should be called everytime when the site is rendered and all the needed objects are initialized. So far I got to this, but still it doesn't ...
1
vote
2answers
1k views

Trying to open a SharePoint List item in Modal Dialog in Sharepoint 2013 Office 365 (online)

Sorry for the long post. This has been killing me. I had this script working perfectly fine in SharePoint 2010 (online) and basically i have a source custom list (list A) with a hyperlink column and a ...
1
vote
2answers
314 views

Hide Column With Javascript Sharepoint 2010

I have a list with these columns Question, answer, Issue, Top FAQ, Summary, Q.No. The list is in a webpart on a wiki home page. When the user clicks on the link it brings all fields up. What I want ...
1
vote
1answer
104 views

SP2010 Javascript Object Model: programmactially add calculated column to list

I am building lists and adding fields via the following. I am wondering if I can add a calculated field and how you set the formula in this (or another method): function onCreateRootCause() { var ...
0
votes
0answers
24 views

How to get “Shared With” count of a list item or document using CSOM

Is there any way to get the count of "Shares" on a list item. I've a requirement to show "share" link along with the share count like "share(10)", Can I do it using javascript?
3
votes
0answers
81 views

Is it possible to retrive CRM online data from SharePoint Online using javascript? [closed]

So I would like to get data from Microsoft Dynamics CRM 2013 Online into my SharePoint Online SharePoint Hosted App. Is this possible to javascript only? Can I use the same Cross Origin Query ...
0
votes
2answers
234 views

Start Workflow programmatically

We work with an Doc Library which receives the files via E-Mail. This works great, but now we want to change the filename via workflow. The problem in this situation is that the workflow doesn't start ...
1
vote
1answer
281 views

Making Presaveaction() wait for SP.UI.ModalDialog response

I am using the Presaveaction() to perform pre-new/edit form validation. Once all fields have been validated successfully I would like to offer my users the ability to 'Save and Exit' or 'Save and ...
0
votes
1answer
50 views

SP2010 JSOM: when creating field using javascript, how to define date only instead of date & time

I create a list using: function createProjectList() { var clientContext = new SP.ClientContext.get_current(); var oWebsite = clientContext.get_web(); var listCreationInfo = new ...
1
vote
1answer
70 views

Stuck in Sharepoint. How do I grow as a web developer when I'm stuck in Sharepoint?

I apologize if this is out of scope but I've seen other career type questions. I can't just switch jobs because the only reason I'm a quasi developer in the first place is because my company let me ...
2
votes
2answers
134 views

How to create a form that populates a list in sharepoint?

I need to create an HTML form with two text boxes and a button that you click the update button it inserts the two values ​​in a sharepoint list. Below an example of what I'm trying to do: // ...
9
votes
1answer
675 views

(Solved) Start a Workflow of the Host-Web via SharePoint App and JSOM

The Last Update is the Solution I have got an App for SharePoint 2013, which needs to start a Workflow. This Workflow is in the HostWebContext, not in the AppContext. The List, the Workflow is ...
2
votes
4answers
183 views

How to retrieve data from one executeQueryAsync and use it in another executeQueryAsync within the same ClientContext

I want to add item to list where Title is equal to current user ID by JavaScript Object Model. As far as I know I first need to get currentUserID and I wrote the following code currentUser = ...
0
votes
1answer
323 views

Programming to retrieve list items in a SharePoint list using Javascript

I have requirement which is Retrieve List Items in a List(list created through OOB) Display those list items on the sharepoint site by binding to repeator control Using javascript and client object ...
4
votes
1answer
853 views

Check if user is in a specified group

I would like to check with JavaScript if the current logged user is in a specified and specific group (for example called "Admins Group"). How can I do? Thanks
1
vote
2answers
343 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 ...
0
votes
2answers
118 views

Ribbon Button activating when a field in the Document / List item metadata = 'Yes'

Im hoping this is an easy answer as Im sure it must be, but my mind has gone blank! Basically I have created a button to run some javascript code to fire a custom (manual) workflow on an item that is ...
1
vote
1answer
86 views

modifying the url with javascript

In Sharepoint 2010 I'm trying to do a custom google search based on the currently logged in user's username. For example if a user named john clicked on the link he would be directed to ...
1
vote
0answers
35 views

Custom Field RenderPattern Customization - SharePoint 2007

I'm creating a custom field in SP 2007. I need to Get the Custom field value and field properties on Item click, in the list item display view. Also i Need to pass these values to a JavaScript. So, ...
0
votes
1answer
103 views

I have to create the pivot table and pivot chart based on the sharepoint list data 2010

I need to create the pivot table and pivot chart based on the sharepoint list data 2010. Please help. Thanks!