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
1answer
770 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
584 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
602 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
2answers
485 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
5k 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
445 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: ...
6
votes
2answers
1k 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
348 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
402 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 ...
2
votes
1answer
2k 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
354 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
339 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
3answers
2k 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
69 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
2answers
3k 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 ...
-1
votes
1answer
486 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
3k 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
630 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
538 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
630 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
456 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
321 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
366 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
294 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
197 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
133 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
127 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
112 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
657 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
326 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
268 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
609 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
440 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
342 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
138 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
203 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
139 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
482 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
737 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 ...