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

JavaScript OnChange for PeoplePicker or something similar in a NewForm.aspx

i have a document library where i added a people picker column where i can assign a person from the company. Also i have a column where the user should enter the department of the selected person. Is ...
0
votes
1answer
45 views

Designing a Sharepoint Workflow Distribution list filtered on column values

I'm working on putting together a Sharepoint site to report issues with a new software that is being implemented by my company. I already have a workflow that automatically sends an email to specific ...
0
votes
1answer
326 views

Need to remove html tags from <td></td> area in SharePoint custom DispForm.aspx

I had created a custom DispForm.aspx for a SharePoint list, using SharePoint designer. I included a Rich Text column type to show in DispForm.aspx. The contents of the column are showing, but somehow ...
2
votes
1answer
267 views

show modal dialog for list with opened ribbon

I need to display a standard list inside a modal dialog. Currently I'm using SP.UI.ModalDialog.showModalDialog(..) and I'm building the URL like this: options.url = ...
1
vote
1answer
311 views

Change CSS of selected item in sharepoint menu

Is there a way to do the same as done here with some Javascript? AspMenu does not render css-class for 'selected' element I want to use this CSS for the selected item in the menu .s4-tn ...
0
votes
0answers
144 views

add new object not opened in a modal dialog for Sharepoint Photo Library

I created Photo library now For add new item i have written Javascript code and which works fine in IE,Firefox but not in Chrome browser i get a error as"Uncaught TypeError: Object # has no method ...
0
votes
2answers
237 views

Enlarge a Choice column's “specify your own value” text area?

Can anyone suggest a way to make the "specify your own value" text box larger in the Edit Form of a list item's Choice column? I would like to make it look more like a multi-line text field type, ...
1
vote
1answer
2k views

Sharepoint 2013 not going to http://sharepoint/SitePages/Home.aspx

Currently in my Sharepoint Site, when I want to go to the main page sharepoint/SitePages/Home.aspx, it actually ends up going to sharepoint/_layouts/15/start.aspx#/SitePages/Home.aspx. This really ...
0
votes
4answers
200 views

Multiple Webparts with same JavaScript on one Site (another Problem)

I rebuild the site (site before). I have on the site two or more Webparts. These CEWP are including the same JavaScript and this the JavaScript is displaying a table via: ...
5
votes
2answers
651 views

how to set list alert using javascript in sharepoint 2010?

I need to set a list alert for current (logged in) user using javascript. var currentcontext = new SP.ClientContext.get_current(); var currentweb = currentcontext.get_web(); ...
3
votes
1answer
212 views

Retrieve property bag for sub sites using JSOM

I need to go through all sites belonging a site collection to validate a property bag of them. following is my code. the problem is the second call to get the property uses only one of the sites. I ...
0
votes
2answers
188 views

Multiple Webparts with the same Javascript

I have a site with multiple Webparts. Some Webparts are linking on the same .html file. The HTML file reads data from a list and displays it in a table by using javascript. My problem is that there ...
1
vote
1answer
701 views

SharePoint 2013 - Error “init.js failed to load”

I am new to SharePoint 2013 server and SharePoint designer 2013. When I browse SharePoint site in IE, I am getting the below error. "init.js failed to load" But when I browse SharePoint site in ...
0
votes
1answer
144 views

Customizing Top navigation bar with javascript

I would like to make a customized the top navigation bar with mouse hoover and dropdown. The list is all sites that person have access too in that site collection. Since some people have access to ...
1
vote
1answer
219 views

Access sharepoint web service from separate HTML application

I want to access list items from a SharePoint 2010 site in a HTML application (not connected to the SharePoint site). My approach is to use SharePoint web services by passing user credentials through ...
1
vote
2answers
426 views

SharePoint 2010 web service - GetListItems not working in Chrome & firefox

function GetListItems() { var soapEnv = "<?xml version='1.0' encoding='utf-8'?><soap:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'>" + ...
0
votes
1answer
61 views

Conditional Formatting very slow

i am using SharePoint 2010. I built a webpart which is displaying elements from another list on the same page. This works fine and fast but when i put in the conditional formatting the loading process ...
0
votes
0answers
71 views

Get Property Value from Standard App Part Sections

I know that I can define custom App Part Properties through the Elements.xml óf the App Web Part. <Property Name="ListName" DefaultValue="Movies" Type="string" WebDisplayName="List Name:" ...
0
votes
2answers
978 views

Sharepoint timeout

I want to implement timeout in sharepoint site. I want to popup a message to user every 30 min if he is idle on the site. A continue button should be coming in popup and if he clicks ok he should be ...
0
votes
0answers
135 views

Timeline graphs in SharePoint 2010?

My client has a requirement to display a SharePoint calendar in a timeline format. Currently, it's being done by Simile Widget timeline: http://www.simile-widgets.org/timeline/ Since I'm ...
-1
votes
1answer
435 views

SharePoint Client-Object-Model - Return List Item Counts by Created Month

Looking to get monthly totals of items from a list using the SharePoint COM/SP Services. My intention is to pass this data to a D3 chart.
2
votes
3answers
2k views

Analog of SP.UI.ModalDialog.showModalDialog function, but render to specific div

How to make the analog of SP.UI.ModalDialog.showModalDialog function, but render to specific div? I need to render EditForm to div on page and set callback function. Something like ...
0
votes
2answers
252 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
546 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
255 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
2answers
632 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
181 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
299 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
128 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
4k 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
798 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
218 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
127 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
94 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
2k 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
2k 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 ...
1
vote
2answers
2k 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
93 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
82 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
95 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
386 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
149 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
114 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
1k 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
203 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
281 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
32 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
162 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>" + ...
4
votes
2answers
677 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
95 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 ...