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

How do I create multiple rotating image sets on one page using the following javascript code [on hold]

I would like to create a home page that has multiple rotating image sets on it. I found this code (see below) that works perfectly for one rotating image set. But when I go to duplicate it to make ...
1
vote
2answers
30 views

Copying files AND folders via REST/Javascript

I'm trying to build a the following functionality into a library view: Each document has a checkbox beside it User checks off which documents/folders they want to copy User clicks a "Copy Files" ...
0
votes
0answers
30 views

How to check if current user belongs to SharePoint group

I have a custom list with a script (JavaScript) allowing me to add some features/customisations to my list. More precisely, I have a function in my script which creates an hyperlink according to a ...
0
votes
1answer
20 views

Modal Dialogue Behavior On Close

I'm using a modal dialogue to display list data formatted by DataTables. Within the table are links to another modal dialog to edit items in the first modal dialog's table. I'm turning on the save ...
0
votes
1answer
21 views

Implement multi select lookup using listbox control in aspx page

How can I implement the multi look up select list items functionality in SharePoint using asp.net C#? Please help me with some code, I am using two list boxes and have added a add remove button on ...
0
votes
0answers
20 views

400 (Bad Request) ERROR while trying to use JS files in Content Editor Web Part

So, I added some code in Content Editor Web Part and code is started like this: <script src="/<MyURL>/_layouts/15/SP.Runtime.js" type="text/javascript"></script> <script ...
0
votes
0answers
6 views

Resource field SharePoint 2013 calendar

I have a Resource field in the calendar in SharePoint 2013 in which user have to add the required resource. But i want to set the default value for the the resource field,so that user should not ...
3
votes
1answer
31 views

How to get ClientPeoplePicker value using javascript

can anyone please tell me, How to get ClientPeoplePicker value using javascript.?
1
vote
0answers
22 views

Sequential number generator with a twist

I have an assets list. The asset needs to have an asset number assigned upon creation. The format of the number should be A-99999. There are existing asset numbers I have to work around in order to ...
3
votes
1answer
19 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
17 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 ...
0
votes
3answers
42 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
30 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 ...
0
votes
0answers
21 views

onchange event select javascript on sharepoint

} $.ajax({ -top_cache.xml', // name of file you want to parse error: function () { alert("Error: Something went wrong"); } }); }); Wasn't sure if it was something sharepoint didn't like ...
-1
votes
1answer
30 views

Add/delete list item using knockoutjs

I need knockout js code to add/delete a list item. Any ideas?
3
votes
0answers
30 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
16 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
30 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
20 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
86 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
36 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
58 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 ...
1
vote
2answers
71 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
53 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
19 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
33 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
27 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
25 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
43 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
32 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
35 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
28 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
25 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
81 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
20 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
21 views

Update list with new items with same info

I'm new on SP and JavaScript, but I need to understand how to make these actions work. I have a list..: And after script works I should have a list like this I just need to creat new items with ...
0
votes
1answer
26 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
24 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
40 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
78 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
18 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
17 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
14 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
23 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
14 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
9 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
57 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
23 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
34 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
31 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 ...