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.

1,324 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
2answers
1k views

All of the sudden i get “Unable to get property 'split' of undefined or null reference”

I have a SharePoint public site branded and it was working fine when out of the sudden the slider with images stopped appearing and I get this error : Unable to get property 'split' of undefined or ...
0
votes
1answer
402 views

How to run JavaScript code when SharePoint Hosted App is installing

I have to run code for creation of lists in SharePoint site (Host-web) when my SharePoint Hosted app is installing. I have 3 to 4 App-parts in my App. Where should I write JavaScript code which will ...
0
votes
1answer
5k views

Javascript window.location.href not working

I am trying to redirect to another site (say www.google.com) from a SharePoint site. I tried using window.location.href and window.location.replace but it doesn't work. It adds the URL to current ...
0
votes
1answer
96 views

Creating a Subsite login

Ok, I'm a newbie to Sharepoint, and I don't even know if this is possible. We have a subsite on a Sharepoint server (Office 365). This is what the bosses want: Front page of the site is this info-...
0
votes
1answer
1k 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 = SomePublicMethodToGetTabFromRibbonByIdOrIndex()...
0
votes
2answers
2k views

Add SAVE button to Custom Form

I have a custom HTML form and I need to add a second save button to my form on the top. So I created my button and can not find the right javascript function that will submit my form. Basically, I ...
0
votes
1answer
276 views

Multiple Asynchronous query chaining

I have a Sharepoint 2013 application that has multiple (3) ExecuteQueryAsync calls in 3 different functions. Two of them are referring to the Project Server project context, and one is referring to ...
-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
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
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
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
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
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
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
749 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 ...
-2
votes
1answer
155 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
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 ...
-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(...