Questions tagged [javascript]

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.

Filter by
Sorted by
Tagged with
-1
votes
1answer
48 views

how to alert message in sessinStorage

I have a button on my update page. This button redirects and refreshes the page after sending sms I want that; If the user pushes the button and sends sms 1 time, do not press the same button 2 ...
-1
votes
1answer
37 views

JavaScript code on working on SharePoint Online list

Hope you're well; I am adding JavaScript code into content web part. However it is not working. I'm i mising something out.
-1
votes
1answer
116 views

Theia Sticky Sidebar doesn't work in SharePoint

My HTML template use Theia Sticky Sidebar - and it works in plain HTML. When this HTML is transformed to SharePoint masterpage and layouts the script doesn't work.
-1
votes
1answer
1k views

How to use document.body.appendChild to add in html row

I am very new to programming , And I had written the code to create the "input control" . And I am able to make it , But I need to place the input control in html table row "txtHTML = txtHTML + "...
-1
votes
1answer
98 views

How do I get the text from this HTML? [closed]

In a SharePoint scripting web part How do I get to the actual text (All systems...) from this in JavaScript (It was read in from a list using REST) ? "<div class="...
-1
votes
1answer
91 views

how to modify date time column format in to minute interval in list form “Sharepoint online”

Using If Else statement I'm comparing "expire date time" column with a current date before submitting the newform.aspx, but if I put the expire date time at 8am with the condition (current date<=...
-1
votes
1answer
304 views

Office 365 Sharing.js

I want to share my site to external users, and so, I thought that i would use sharing.js and exeutethis function on button click : EnsureScriptFunc('sharing.js', 'DisplaySharingDialog', function(){...
-1
votes
1answer
139 views

Using SPUtility script with If Statement

I am currently using a PreSaveAction script to check a field to make sure it is filled out before saving the form. However, while testing different situations, I realized that if "Reviewer 1" rejects ...
-1
votes
1answer
2k views

Sharepoint Online : Rest API POST method getting - 415 (Unsupported Media Type) OR 400 (Bad request)

Im new on SharePoint online and i want "POST" (update my list) with Ajax First step : var listName = "Creation de projet"; var url = _spPageContextInfo.webAbsoluteUrl; var itemId = "18"; // Update ...
-1
votes
1answer
8k views

How to add 14 days on Date by JQuery [duplicate]

I have Date in SharePoint server 2013 and I want to add 14 days on it by jQuery I have the column name EndDate text type.
-1
votes
1answer
34 views

Need Help with SP2010 calculated or scripted field based on multiple other colums of data

In a SP2010 environment, I have a couple challenges. I have a list of records that I need to add a calculated field (we'll call this column "STATUS Ratio) for each persons record. Each record has ...
-1
votes
1answer
629 views

Caml query with more than 2 or conditions [closed]

var fieldName; var listFields; var CmalQuery; $(document).ready(function () { $('#btnSearch').on('click', function () { txtValue = $('#txtSearch').val(); ...
-1
votes
2answers
525 views

Error when loading list item using JavaScript

I am trying to load list item properties when a user selects a list item from the asp:ListBox. However, I am constantly getting an error with the message that the request is invalid. Could someone ...
-1
votes
1answer
276 views

Javascript to submit Web Part without click

From a previous question, I am able to populate a textbox with a value I can use to reference another list. However, in order for this functionality to be as user friendly as possible, I would like ...
-1
votes
1answer
982 views

Getting list items in SharePoint Hosted App for Office 365

I want the code snippet for Getting the list items and Show it in the App page. I'm creating SharePoint hosted app for Office 365. How do i get the list item values? Thanks in Advance
-1
votes
1answer
32 views

Redirecting a Form to it's Original Position in Sharepoint Library [duplicate]

I have a Sharepoint Library which has Thousands of Forms. If i submit a form the pointer should point out that particular form which i have closed.
-1
votes
1answer
727 views

GetListItem SPServices don't retrieve data

i'm trying to retrieve data from Sharepoint using SPServices. I created a list called "values" with two field: "Title" (text field) and "values" (numeric field). I created a js file linked to a ...
-1
votes
1answer
346 views

get a randomly picked background image to appear as the background image for a Div

My HTML Contains 1)have js file contain java script function function getRandomInt(min, max) { return Math.floor(Math.random() * (max - min)) + min; } document.getElementById("logoArea")....
-1
votes
1answer
72 views

count items in the list

function onSuccess() { var longest = ""; var listString = ""; var Count = 0; var listEnumerator = listCollection.getEnumerator(); while (listEnumerator.moveNext()) { var currentItem = ...
-1
votes
1answer
511 views

Function expected _spFormOnSubmitWrapper

I have overridden SharePoint ribbon save function using _spFormOnSubmitWrapper() on my js code. I am getting "SCRIPT5002: function expected" error when I try to check in page when debugger ...
-1
votes
1answer
68 views

Get the proxy authentication once we click on a specific page

SharePoint 2013 request: we need to display the proxy authentication window once we click on a specific page link "/index.aspx" .... it can be done using JavaScript ???
-1
votes
1answer
748 views

Remove user from group Javascript

Hi I followed another thread but cannot get the following code to work. I changed Line 8 from web to oWeb, error seems to be around line 8/9 I'm trying to remove a user from a group. function ...
-1
votes
1answer
640 views

Get selected item ID to display in customized DispForm javascript

I'm using SharePoint Online and have a SharePoint-hosted app. I have a page with a question form that send data in to SharePoint. I show my question form in my DispForm for my list (I added my app as ...
-1
votes
2answers
151 views

:net contra Javascript [closed]

If do some client programmering, what factors should I take it into consideration if I gonnna use javascript/ECMAScript or .net in relation to retrieve some functionality from SharePoint and apply it ...
-2
votes
1answer
681 views

Add/delete list item using knockoutjs

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

Can anyone fix this code

I'm trying to follow a tutorial to customize the appearance of the announcements list, however, they don't provide downloadable files and the code they provide on the web page is messed up somehow and ...
-2
votes
2answers
258 views

Random Javascript is causing errors

There is a site wide change that I cannot figure out the root cause of. I am getting the following errors on every page in the site collection: Upon inspection of the error taking place at "...
-2
votes
1answer
27 views

taking user to particular site collection on clicking webapplication url

I have 4 users who has access to 4 different site collection,when he clicks on the webapplication url he should see only the site collection that he belongs to.he wont be able to see other site ...
-2
votes
1answer
154 views

SharePoint script editor webpart: javascript code for button

I want to add javascript in Script Editor Web Part, to display a button and when user click on botton it should open google.com in new window. Can someone help me with code? Thanks.
-3
votes
3answers
709 views

Unable to get property 'get current' of undefined or null reference

function listAllCategories() { var ctx = new SP.ClientContext(appWebUrl); var appCtxSite = new SP.AppContextSite(ctx, hostWebUrl); var web = appCtxSite.get_web(); //Get the Web var list = web....
-3
votes
2answers
439 views

How SharePoint 2013 Shows the current user name by default?

What logic does SharePoint use to display the login name of the current user on the user interface? In the top right corner near the ribbon SharepPoint displays the current user name, I need to know ...
-3
votes
1answer
118 views

What JQuery effect is this? [closed]

I found this really nice effect on this website: http://www.engadget.com/ Please take a look at the IE advertisements on the top and the right side of the page. It seems like some kind of elastic ...
-5
votes
3answers
440 views

Get all items from list

How do i get all items from list? Here is my code, function checkFreebookingdateTime() { getListCalender = document.getElementById('CalenderListDrop').value; spHostUrl = decodeURIComponent(...