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)

2
votes
1answer
35 views

Reference JScript files at the end of page using ScriptLink Tag

Due to performance problems, we decided to reference javascript files at the end of the master page file. However, if we reference javascript files at the end of master page using ScriptLink Tag, the ...
0
votes
1answer
32 views

How to display list item name instead of title of ModalDialogPopup confirmation box?

I created modalDialogPopup confirmation box with sharpoint object model. I want to display list item name instead of please confirm(title). See following code: var options = { html: ...
1
vote
1answer
72 views

Get Navigation Term for Current Page in CSOM (JavaScript)

I am trying to get the Local Properties for the Navigation Term that is currently being viewed. For example... If I navigate to http://sp2013/about/team I need to get the Local Custom Properties for ...
1
vote
1answer
50 views

getting Regional settings in Javascript from CSOM

I am creating a custom data entry app in sharepoint using the CSOM. I need to update the default value of a datetime field, I can get the default value but the datetime is in UTC Format. I need to ...
0
votes
0answers
30 views

Hide Field Containing row when trying to hide sharepoint field

for some reason I can only hide the actual control and I am trying to hide the encapsulating row. I don't see where I am doing wrong.` <script ...
0
votes
1answer
20 views

Sharepoint Hosted App, Javascript and Permissions

I've deployed a sharepoint hosted app with custom javascript. When I access my devsite with administrator I can use my app. When accessing with another user the js-files aren't loaded in my apppart. ...
0
votes
1answer
37 views

Autopopulate sharepoint list field

Can anyone help me with auto populate of list field based on dropdown field. Like i have list A with field Location(dropdown field). It has 10 values like India, Australia, UK, US etc. If anyone ...
0
votes
4answers
90 views

Retrieve List Items Using JavaScript gives unexpected response from server

I'm extremely new to SharePoint and was recently experimenting with the client side object model. I've used one of MSDNS examples. however, I seem to be getting this error response : "request ...
0
votes
1answer
43 views

Unable to get property 'STS' undefined or null reference - Sp.ui.dialog.js

My problem is that when I start my app for the first time,it shows me an error. The error is: Unable to get property 'STS' undefined or null reference. If I refresh my app then the error disappears. ...
1
vote
2answers
44 views

Best way to implement “.exists”-type functionality to prevent duplicates?

I'm moving files with spservices (the jquery plugin) and was wondering if there was a good way to check to see if a file with the same name already exists so I can append an underscore or something ...
0
votes
3answers
93 views

Use CAML query based on ID to retrieve a file name?

With jquery and spservices, I use getSelectedItems to retrieve the IDs of a few documents. Can I have a loop which goes through a caml query for each of those IDs to retrieve the file name ...
1
vote
1answer
63 views

Problem Updating List Item using Ecmascript

I'm trying to update an item with a specific ID in my sharepoint list. Everything works until it gets to the set_item or targetListItem.update() part. Can someone tell me where I'm going wrong please? ...
0
votes
1answer
38 views

show progress bar or loading image while running spd 2010 workflow

I have a SP 2010 custom list which is fetching data from multiple lists. So I have written a workflow in SP Designer to get data (auto populate) from all lists. It's working fine, but taking more ...
0
votes
0answers
19 views

Sharepoint Online - Image Position in RichTextEditor

I have a custom site with a list of posts (something like a blog, but not the standard sharepoint blog), and I'm having an issue with the RichText Editor and images. The issue consists in inserting ...
1
vote
2answers
58 views

Error while accessing the User profile properties via JS code

Code gives error 2 times out of 10 attempts to refresh the page. We get error as: Request failed, unexpected responce from server. The status code of response is '0'. The status text of ...
1
vote
1answer
46 views

Error in IE when using User Profiles via JS code

We are using js code to access user profile properties on an application page. Error: The property or field 'UserProfileProperties' has not been initialized. It has not been requested or the request ...
0
votes
1answer
23 views

How to find Web Parts on the current page using SP.js

I am trying to find out the title of the current page with SP.js without having to get it from the DOM. Is there a way to find what Web Parts are on the current page?
0
votes
3answers
62 views

spBodyOnLoadFunctionNames not working on Master Page

we are trying to execute some script after the master page loads. <script language="javascript"> _spBodyOnLoadFunctionNames.push("FunctionName"); function FunctionName() ...
0
votes
1answer
40 views

How to change the SharePoint 2013 logo image dynamically?

Is there any way to change the SharePoint 2013 logo dynamically, ideally via javascript? I have tried: document.getElementById("onetidHeadbnnr0").src="\path\image.png"; Also tried: div = ...
0
votes
1answer
65 views

getting list using JavaScript, error: Unable to get property 'apply' of undefined or null reference

In the context of a page in SharePoint 2013, I am trying to get items from a list using below code but when the query executes I am getting this error: SCRIPT5007: Unable to get property 'apply' of ...
1
vote
1answer
139 views

Are the SP.js and SP.UserProfiles.js preloaded in SharePoint?

I am using the javascript object model on the master page to fetch user profile properties. Do I need to use the foll. script tags for the code to work or are they optional? ...
1
vote
1answer
55 views

How to access the data from Manage User Profiles?

We are have sync the SP with AD using Active Directory Import for SharePoint 2013. All the users have been picked up into the Manage User Profiles and new user properties have been added to the ...
0
votes
0answers
18 views

finding individual list items and updating css

window.SFW = window.SFW || {}; window.SFW.urgentAlertsItem = { customItemHtml: function (ctx) { var urgentAlertsItemHtml = "<div class='urgent'><h2 class='name'>" + ...
0
votes
1answer
29 views

problem getting date time

I am using the CSOM in javascript. I have a list which contains 3 text types and 2 date types. When I use: var listEnumerator = this.listItems.getEnumerator(); var collection = ...
0
votes
1answer
31 views

CSOM query certain date

I have a list that has an end date in. Is there anyway to filter out the dates that are passed todays date? function retrieveCurrentListProperties() { clientContext = new ...
1
vote
1answer
49 views

How can I add a Site Actions menu in a SharePoint 2013 full size app

Question: How can I just add a Site Actions Menu to the default chrome control rendered with the full sitze app? Problem: in a SharePoint hosted full size app there is no Site Actions menu. If ...
0
votes
3answers
53 views

count items in a list javascript CSOM [duplicate]

I am wanting to count the number of items in my list. Using CSOM in javascript I have tried it but my code doesn't work. Where am I going wrong. Here is my code: var clientContext = new ...
1
vote
1answer
37 views

Caml query after modified choices

I have a column with an internal name of: PublicY with 2 choices: Yes/No, the query works but if I change the choice name to Ja/Nej the code will not query the results, why? I have tried to change the ...
0
votes
0answers
25 views

SharePoint 2013 Javascript-PopUp does not open on ImageButton, but on normal Link (with Project Download to test)

i have a SharePoint Webpart with an GridView. In this GridView there is an ImageButton and it should open a PopUp to edit data. I did this with RowCommandEvent in the CodeBehind File. This is the aspx ...
0
votes
0answers
15 views

Issue on CloseDialog() in ModalDialogPopup()? [duplicate]

I created ModalDialogPopup confirmation alert with Yes No options. For this I want to write script If No it will close the ModalPopup and if it is Yes it will execute/ update list items . and here my ...
0
votes
3answers
70 views

What is best practice to add list item in SharePoint 2013 javascript object model?

I need reference code to add an item to a list programmaticaly via javascript object model in SharePoint 2013.. Got many solutions online but not sure what js to include, whether ajax calls are need ...
0
votes
1answer
39 views

Show persistent status bar + form to update easily

I want to keep informed the end-users of my SharePoint site of any issue or relevant informations. Naturally, I would like to do so by filling HTML elements (input and select tags). Hence displaying a ...
2
votes
1answer
133 views

Can we access list from other site collection sites using javascript object model?

ECMAScript object model can only be used in SharePoint sites. So you can’t use this object model in an asp.net site to access SharePoint resources deployed in another url as this is cross-site ...
0
votes
0answers
15 views

Linking a js file into a blank page in sharepoint then count how many items in a list

I have created a new page on my sharepoint site. I have embedded some html using the embed code <!DOCTYPE html> <html> <body> hello </body> </html> I have a js file ...
0
votes
2answers
65 views

JS/JQuery Connect to SQL Server

Right now i am modeling a ClientWebPart outside of the SharePoint server. Although, i advised the client to let me on the server to do Code Behind connection, they said not right now. Server might ...
0
votes
1answer
93 views

“The XSS Auditor refused to execute a script in…” from Chrome when using <script> tag in content editor webpart

Embedding javascript in a content editor web part triggers XSS Auditor error in Chrome when editing any webpart on the page containing the content editor web part. Steps to reproduce 1 - Use newest ...
0
votes
1answer
28 views

Copy ListItem from one list to an other by ribbon custom buttom

I try to create a new button in the ribbon. When the person select a list item and click on this button this item will be copied to another list. CommandAction=""javascript: var context = ...
0
votes
0answers
41 views

Unable to execute succeeded() & failed() functions after ModalDialogPopup's CloseDialog()?

I wrote javascript for changing checkbox(IsDeleted) value from No to Yes while clicking on delete button. Here ModalDialogPopup taken for confirmation , if it is 'No' the modalpopup will close the ...
0
votes
1answer
53 views

How to include built in JS files

I'm attempting to follow the instructions from this post. I've added the Sharepoint links to call the JS files however it seems that they are not included by viewing network activity in my broswer. ...
0
votes
1answer
47 views

Export my Enterprise Wiki aspx pages to a PDF files

Our client has asked if we can add a link to their current Wiki pages named "Export to PDF", so when the user click on the link the Wiki content will be exported inside a pdf file ? i got confused if ...
1
vote
3answers
69 views

Integrating jQuery into the solution

I have a javascript file which I am editing the layout of a list with. Here is the code: window.SFW = window.SFW || {}; window.SFW.urgentAlertsItem = { customItemHtml: function (ctx) { var ...
0
votes
0answers
15 views

Get Ribbon child Tab/Group “element”

I need to get CUI.Tab object by id/index from current Ribbon by javascript: var ribbon = (SP.Ribbon.PageManager.get_instance()).get_ribbon(); var tab = ...
0
votes
0answers
16 views

New Firewall hardware, sharepoint 2013 website is not working properly!

We are using sharepoint 2013 on our server. We are hosting a domain name which is try to access webapplicationA on our server. This was working fine before with the old firewall hardware. Now we have ...
0
votes
2answers
29 views

changing css in jquery sharepoint list

I am wanting to change the css in jquery if a certain statement returns true. I have just been playing around without the statement but it doesn't seem to work. This is my js file: <script ...
1
vote
2answers
55 views

Sharepoint Multilingual App

I'm making an app with a custom list in multiple languages. Is there an easy way so that I only have to create the site columns, content type and list once? So I don't have to create them for each ...
0
votes
1answer
39 views

Proper way to check for failed SPServices call?

I'm running a SharePoint method with SPServices that should copy several items. I just noticed that the return value is "Success" even when I've specified an invalid location and nothing has actually ...
0
votes
1answer
36 views

How to make web part with properties for Js Development only

I want to start development for SharePoint with JavaScript, but I am not sure if it provides the same flexibility as the server side development, for example I would like to make a web part with ...
0
votes
1answer
37 views

two drop-down side by side

I want to show two drop-downs for Day and Month in SharePoint OOTB form in one row (side by side).
0
votes
0answers
20 views

Dynamically adding CUI.Controls.SplitButton?

I managed to dynamically add Ribbon to Custom Edit Form, as described here. Now I need to replace Button with SplitButton element with Menu in it. Is there any example about it? I really don't wont to ...
0
votes
1answer
39 views

JSOM function get_isSiteAdmin() is always false

I'm trying to get the property "IsSiteAdmin" from a user object in Javascript JSOM. The app I am programming needs to be able to distinguish normal users from Administrators. function ...