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)

3
votes
1answer
31 views

Script editor webpart ribbon problems

I added a script editor web part (javascript code) to a view page (/Forms/AllItems.aspx). After that I can not see anymore the File and List category in the ribbon bar. I read somewhere that ...
0
votes
2answers
27 views

Change By Name in sharepoint Blog site

How can i change the by name in blog site?. I checked that it is redirecting to /_layouts/userdisp.aspx?ID=17. I can get this id by running the below power shell script. But how can i change it in the ...
1
vote
3answers
99 views

CAML query rertieve all items from a SharePoint list

I have a JavaScript piece of code that I use to retrieve list item from SharePoint by selected options from drop-down list. Depending the selection it would assign a value to a CAMLQuery variable. ...
0
votes
1answer
55 views

Identify if a Library item is a folder or not in CSOM

I have Library on which I have created a ribbon button. On click of the button I am trying to identify if the selected item is a folder or a file. below if the code snippet that I am using: var ...
-1
votes
1answer
52 views

Add/delete list item using knockoutjs

I need knockout js code to add/delete a list item. Any ideas?
3
votes
1answer
96 views

Suspend and resume SharePoint Online workflow using CSOM - Ecmascript

I have a requirement where the Master user has power to interrupt any workflow and put it on hold and the approvals should be stopped on that workflow until the Master user resumes the workflow. When ...
-1
votes
1answer
25 views

input box in sharepoint to add entry, popup

I have a button, when i click on button i need a popup which should have textbox and a button "ok". in textbox i can enter numerical values like 10, 12 etc and click on ok button. Later ok button ...
0
votes
2answers
61 views

Cascading dropdown not working

I am trying to get cascading dropdowns to work on a list, but I seem to be missing a point somewhere. Please help me out. I have added jQuery and jquery.SPServices to my masterpage. The dropdown ...
1
vote
0answers
30 views

To Scroll to the top of page

I'm using angularjs & sharepoint 2013. I have implemented the SPA model in one page where the entire page refresh may not happen. Here, the scroll bar is not always going to the top of page since, ...
2
votes
1answer
95 views

SharePoint 2013 and javascript

What is meaning of OnDemand scripts and what is not-on-demand scripts? In SharePoint 2013, when do we use SP.SOD.executeFunc and when to use ExecuteOrDelayUntilScriptLoaded ? What is best practice?
0
votes
2answers
212 views

get Library document URL using Javascript client object model

I am working with SP.js to get data from a SharePoint library. Below is the code i am using: var clientContext = new SP.ClientContext(); var oList = ...
0
votes
3answers
104 views

Could JQuery or JS disable core.js?

I have a strange situation. I using the code below in a Java Script file and referencing it from CEWP. For some reason, I can't do Page or Site Action Edit anymore, it does not do nothing. However, if ...
2
votes
2answers
114 views

How to retrieve all items from a list by javascript object model and store it to array

I'm new to JavaScript Object Model in SharePoint 2010 and want to get some idea of that. I wrote below code to get all list items of a SharePoint library. This works fine and return all items. But I ...
1
vote
1answer
81 views

Add button to webpart with javascript

I want to add button to all web parts of my home page instead of add new item link and I've no idea how to create it For additional information I am using share point 2013.
0
votes
1answer
28 views

Show number of active users of the site

I want to show number of active users on this site. Any idea how to get number of active users at this moment.?
0
votes
2answers
43 views

Access to an hidden column (stock fields) with JavaScript

How can I "read" the fields of an hidden column with JavaScript? More precisely, I would like to recolor columnA fields according to columnB "Priority" fields (which is hidden in forms and not ...
0
votes
1answer
43 views

changing the intialprompt searchbox webpart javascript/jquery

I have a page_layout in which I plan to be used by many pages, this page layout has a searchbox webpart, at the moment it has a generic 'Search...'. However what I want is to change it so it says ...
0
votes
1answer
60 views

Filter DataView web part using SPServices

Ok, this is the issue: I have a Data View web part which I would like to filter depending the "office" the user logged in belongs. I can get this using SPServices (GetUserProfileByName): JS ...
0
votes
1answer
92 views

How to parse the output returned from REST (/_api/)?

When we use REST we get output as xml how do we parse this via JSOM and fetch the values? Also, please provide some information on how to use this in SSOM instead of JSOM?
1
vote
1answer
84 views

SP2013: Script editor web part not load

I am modified a document library view and try to increase width of one column. I added a script editor web part and added following: <script type="text/javascript"> $(document).ready(function() ...
0
votes
1answer
130 views

Difference in clientcontext.load() and clientcontext.executeQueryAsync() in javascript for SP

Please tell me the working of Load() and executeQueryAsync() in javascript for sharepoint 2013 i.e why we have to call Load() method when we have to call executeQueryAsync() .
0
votes
1answer
33 views

sharepoint 2013 - reliable way to view original HTML code when in edit mode

I have JavaScript that manipulates the DOM for some of my pages. The HTML changes and stuff happens. But it would be nice, if there was a feature in SharePoint that allows us to put in HTML that we ...
1
vote
1answer
28 views

Formatting the date after outputting from list

I have outputted a date type from a list of mine like so while (listItemEnumerator.moveNext()) { var oListItem = listItemEnumerator.get_current(); ...
2
votes
1answer
143 views

SharePoint 2013 Custom Action Menu Item Logo?

I am wrapping up the development of a custom action on a menu item within SharePoint and have a requirement to add a logo to it. I have done some reading on this and it doesn't appear to be as ...
1
vote
1answer
66 views

Return CurrentItem from context.Templates.Item JSLink

Any ideas on how to return from the Custom Item method when using JSLink (as if it was never called)? I want to do a check in this method and hide the row if the condition fails. I know I can do a ...
0
votes
1answer
44 views

query a calendar not working

I am trying to query a calendar where it only returns the next event(so the item in the calendar that is closest to todays date including todays date), but I am running into some issues. It is ...
1
vote
1answer
32 views

Compare Credentials to his one's own login credentials

I would like to compare the current user credentials with my UserAccount and if they are identical then I would like to have an alert, but It doesn't work. I don't know why.I hoept that you can help ...
0
votes
2answers
76 views

Office 365- Accessing lists refers wrong URL (URL/App name)

I'm new to NAPA tool. I started to build simple apps using NAPA tool. And I tried to access a list in office 365 site using below code. After I publish the app it shows an error message: Message: List ...
0
votes
2answers
370 views

Edit Item Form: Call function after commit (Custom Save Button)

I have a custom Edit form in SP2013 where I want the Save button to do two things: Commit changes Call JavaScript function The function in step #2 does several things including a workflow trigger. ...
0
votes
0answers
57 views

Update a rating scale field of survey list using JavaScript

I have created a survey list which has 3 columns. One column is of type rating scale with value 1-5 . Using JavaScript I'm able to update the first two columns. But not able to do so for the rating ...
0
votes
0answers
34 views

Get “QuickLinks” of user profile in JavaScript

I am using the following code to get user profile properties in JavaScript. I can fetch the first 3 properties but the 4th property "QuickLinks" is always an empty string. I have added some quick ...
0
votes
1answer
19 views

ScriptResource.xsd error on site

I am getting a javascript error on all the pages in my application . Message: 'Sys.UI' is null or not an object Message: 'Sys.__upperCaseTypes' is null or not an object ...
0
votes
0answers
52 views

How to use Javascript to update a Discussion Board reply?

I have a Discussion Board with a series of replies. Each 'Message' (Reply) Content Type has an 'Answer' dropdown with the values 'YES/NO' (NO being default) I have created a hyperlink on the property ...
0
votes
0answers
32 views

Changing the link of the 'Reply' button in a Discussion Board

I have a Discussion Board and within this board a user creates a 'Discussion'. When a user wants to reply to this 'Discussion' they click the 'Reply' button and the reply entry appears. By default ...
0
votes
0answers
14 views

Create a discussion list type based on the new display js file

Can anyone help me with how to create a discussion list type based on a new display js file? I do not want to modify the OOTB JS files of SharePoint.
1
vote
1answer
95 views

SharePoint Online 2013 Page Code Embed and Javascript - output disappears

I noticed I can't embed inline javascript in an SPO 2013 Web Part page, but can reference a library. I'm outputting a table from that js. If I put alerts that table displays but then disappears ...
1
vote
1answer
41 views

“Working on it” message - Handle event and hide some blocks

I edited master page, added some custom blocks. My problem is when opening the web site I see my footer and header blocks. How can I hide these blocks when "Working on it" block appears? Can I ...
0
votes
1answer
47 views

Date functions with $select in REST API

I'm using the following REST call to get the data. Here is the url structure: SiteURL+'/_api/web/lists/GetByTitle(\''ListTitle+'\')/items?$select=AlternateThumbnailUrl,Title,Created this is ...
0
votes
2answers
37 views

How to create tabs on SharePoint page?

Is there any way to create tabs on SharePoint aspx page? I don't want to create links on the navigation bar. I am interested to have tabs on the page, so that i can put different contents on different ...
1
vote
1answer
31 views

Access Sharepoint Images from app

I'm in the process of setting up a REST call to access images in a SP folder via Office365. My question is where do I add my onedrive credentials as part of the REST call? Once the call is ...
1
vote
1answer
72 views

get_defaultViewUrl () not working in SP Hosted app

I am trying to get the default view url of a list in SP hosted app. Below is the code i am trying, on execute success method. spListobj.get_defaultViewUrl(); It is returning me this error : The ...
0
votes
1answer
20 views

run in edit mode when save is clicked

var inDesignMode = document.forms[MSOWebPartPageFormName].MSOLayout_InDesignMode.value; if (inDesignMode == "1") { // page is in edit mode write code here var heading1 = ...
0
votes
1answer
39 views

filter out text javascript

<div class="edit-mode-panel"> <div class="DefaultContentBlock" style="border:medium black solid; background:yellow; color:black; margin:20px; padding:10px;"> <div id="test2" ...
0
votes
2answers
190 views

Undefined SP.ClientContext

I always get undefined on my SP.ClientContext.get_current() I have tried with this code: SP.SOD.executeFunc('sp.js','SP.ClientContext',runthiscode); function runthiscode(){ ...
0
votes
1answer
22 views

run javascript in edit page

How can I run some javascript code only on edit page? I have a check box in edit mode that I want to get the value of in my publish page. So the only way I can see of doing in this, is running some ...
0
votes
0answers
29 views

Custom template with CEWP fix settings for navigation inheritance

I'm using a custom template for creating new project sites. In this template I've a CEWP with client side script that fixes the global navigation inheritance (inherit from parent). When I create a ...
0
votes
1answer
60 views

How to include JavaScript and CSS in SharePoint 2010

Hi I am creating some web parts in SharePoint 2010 non sandboxed solution. I want to include some JavaScript files and CSS on each page of my site. But I don't want to include my files on each web ...
2
votes
1answer
97 views

SPFolder.MoveTo functionality in JavaScript

In SharePoint 2013 I'm trying to add a script to move a folder from it's current location to a different parent folder while keeping the rest of the file structure the same. I am adding a button to ...
0
votes
0answers
26 views

Get the data from check box in edit page when in published page

<div data-name="EditModePanelShowInEdit"> <!--CS: Start Edit Mode Panel Snippet--> <!--SPM:<%@Register Tagprefix="Publishing" ...
0
votes
2answers
202 views

Current MySite url by javascript

I need to get the current user MySite Url using javascript / jQuery. I am using SP 2013