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.
0
votes
1answer
35 views
Javascript always failing
I am busy writing some javascript to take a list of selected documents and do some processing on a list with each document in Office365. I am getting a strange error when the code tries to load the ...
2
votes
2answers
45 views
REST API along with startswith and tolower function method in SharePoint 2013
I would like to bind all users into textbox autocomplete event. I done with below script but it is consider case sensitive expression while searching the results.
$("#txtselectuser").autocomplete({
...
0
votes
1answer
28 views
O365: Unable to get property 'get current' of undefined or null reference
I'm on SP2013 in an O365 environment.
I am trying to pull some data from a list and render that data using the Google charts API. I am doing this in a content editor web part that points to an HTML ...
1
vote
1answer
30 views
Some javascript not working in web part
I'm noticing that not all of my Javacript - all of which worked in a basic ASP.NET Web Forms application - is working. I'm not sure what could be causing this. For example, the following JS/C# calling ...
0
votes
1answer
19 views
Issue on Chrome - Javascript list view
I have an issue with this simple Javascript code into a SharePoint list view page.
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script>
...
0
votes
1answer
21 views
Check it in error sp.ribbon.js
Recently I've started getting this error when trying to 'Check it in' while looking at a page. The error in the JavaScript console is:
SCRIPT445: Object doesn't support this action
File: ...
0
votes
0answers
16 views
Is there a JavaScript event that fires when the yellow message bar is shown?
I want to call a function when the DeltaPageStatusBar is displayed.
0
votes
2answers
34 views
How to add content above list view using JS?
I am using JSLink code I found at Office Dev Center to modify my fields showing percent values to display progress bars. What I would like to do further is add some text above the list itself, ...
1
vote
1answer
29 views
Updating document metadata using Javascript or jQuery
I have a large, complicated script that copies selected documents from Library A to Library B when a user clicks a button. At the end of the script (as a final step), I'm calling the three functions ...
1
vote
2answers
54 views
How to recreate a people picker (or anything else that can autocomplete names)?
I have a page on which I have a drop-down list with the names of all the groups that I created in SharePoint. When a user picks a group from that list, it will display extra information on the page ...
0
votes
0answers
16 views
Getting the version history of a list item
I am creating a content web part and one the list items is used with versioning. I want to show all the versioning on the page. Is there anyway to do this? maybe using CSOM or something
0
votes
1answer
22 views
“Permission Denied” error in IE after adding content editor to form
A site that I have not modified in several weeks has suddenly stopped functioning in Internet Explorer as it has for the past few months. I have a content editor in my list on the New, Display, and ...
0
votes
1answer
17 views
Get images from a SharePoint Library
I'm making a Carousel that need to get images by date of a SharePoint Library , all the code of the carousel, and configuration page i have already maked, but i dont have no idea of how i get the ...
2
votes
0answers
40 views
How to trigger the click event of the SharePoint OOTB list's new form Save button?
I have custom list in which there are two mandatory fields, and I want to ask the user if he wants to again enter the new item after one item is created. I searched over the internet and found this ...
0
votes
1answer
37 views
javaScript will not fire unless the users do a hard re-fresh (ctrl F5) for the page
I have added the following script to my EnterpriseWiki.aspx page layout inside an enterprise wiki site collection:-
<script type="text/javascript">
_spBodyOnLoadFunctions.push(function(){
...
0
votes
2answers
18 views
Setup for accessing an external SQL database from SP 2010 using Javascript
I want to try to access an external SQL Server 2012 database on a SharePoint 2010 site, using javascript. I found one really interesting, good blog post about it online, but the link to the example ...
0
votes
1answer
30 views
Get user Login from User or Group field
I have a list with User og Group field. I've retrieved item from it, now I need to get user's Login. By reading User or Group field I can get only user id and account name.
here's my code:
var ...
0
votes
0answers
27 views
2013: load custom “clienttemplates.js” file
Requirement:
I want to replace the file clienttemplates.js found in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS
with a custom version.
I couldn't find the ...
-1
votes
0answers
51 views
Javascripts Conflict
I have two scripts on my SharePoint page that has jQuery inside and JSOM. One of the script only works if the other script have not been added.
I get this error code:
Uncaught Error: The ...
1
vote
1answer
27 views
How do you get the default label of a term through JavaScript?
Most of this code comes from an answer to a previous question. I'm trying to take it one step further now and get the actual default label string.
var context = SP.ClientContext.get_current(); ...
0
votes
0answers
9 views
Javascript Error inplview.js IE only
We're experiencing an issue where Internet Explorer 8 is reporting an Expected ';' in the minified inplview.js file. It doesn't affect any functionality it seems, but we have no idea what's causing ...
0
votes
0answers
24 views
New custom Create form does not auto complete “Owner“ field
I have an Issue Tracking list , and I have created a custom Create form using SharePoint designer , as follow:-
The problem I am facing is that the owner field will not autocomplete the people ...
0
votes
2answers
57 views
Create json data dynamically from list using javascript
Can anyone tell me how to generate json data from SharePoint lists in the below format using java script.
var jsonArray = [
{ "user": { "id": 100, "screen_name": "d_linq" } },
{ "user": { ...
0
votes
0answers
6 views
Provision WebPart from Appdomain
I can provision and install a webpart on a page from the app-domain, but its always invisible. I see that the webpart have been added in Web Part Page Maintenance (?contents=1). But i cant edit the ...
0
votes
2answers
45 views
When do you use SP.js?
This might be a very noob question, but when do you actually use SP.js? In my SharePoint site I am using ajax queries with the REST api like this:
...
1
vote
2answers
56 views
How can I get information about a term through JavaScript?
What I want to do is something like:
var myTerm = getTermInfo(55c6801f-78b3-485f-b811-530bec1961e9);
0
votes
0answers
9 views
How to add a webpart zone using JavaScript in SharePoint 2013
Let say I can manipulate DOM to add extra DIVs to page. I need to know if it's possible to use JS to convert these divs to web part zone to display a button "Add a Web Part" (like the ones in Blank ...
0
votes
0answers
8 views
Can you use the HasRights() function in SharePoint 2013, if so how?
I am looking to limit the display of content on a custom page in SharePoint 2013. I wish to hide or display some s based upon the user's permissions. The function HasRights() seems to be what I need. ...
0
votes
0answers
17 views
Reading a SharePoint list from an on-prem farm from SharePoint Online no Apps
Been going mad for the last couple of hours trying to do what I thought was simple. I have a CEWP on a SharePoint online site. I am trying to make a javascript REST call to a SharePoint list that ...
3
votes
2answers
41 views
Have javascript only run once at installation
I have a Sharepoint Hosted app in which I have some javascript (permission related) that only should run once. It should run only when the app is trusted by the admin that installs the app and when ...
0
votes
1answer
21 views
Fix “AddEventListener” error in IE11 without access to Master Pages
After editing a form in InfoPath for use on a SharePoint 2010 site, my page will no longer load on IE11. On all other browsers, it is fine, but before the page can load in IE11, I receive a "Critical ...
3
votes
2answers
34 views
XsltListViewWebPart and custom link column
I have a XsltListViewWebPart with a custom link column used for change a value on current listitem using JavaScript.
<a href="javascript:ApproveRejectRDA('{@ID}', true);" title="approve">
...
0
votes
1answer
36 views
Trying to get lookup (Title) value, but returns null only in Client Object Model
I have this query:
<View>
<ViewFields>
<FieldRef Name='Title' />
<FieldRef Name='itlgCategoria'/>
...
0
votes
0answers
28 views
Ajax SharePoint Search Query - Filter Results based on Today's Date
I have an ajax call that is pulling back results. I would like to filter that call so that it only pulls back items that are greater than or equal to today's date. How can I do that?
The ajax call is ...
2
votes
1answer
45 views
How create Sharepoint online site with custom template?
I need to create site in SharePoint Online from SharePoint hosted app. I used code like this:
var webCreationInfo = new SP.WebCreationInformation();
webCreationInfo.set_webTemplate('STS#0');
...
1
vote
2answers
40 views
correct or efficient way of accessing DOM object in aspx pages
I want to get the value of textbox that a user enters. Below is the code snippet of aspx page :
<asp:TextBox id="txtUserName" runat="server" />
Now which is the best way to access DOM object ...
0
votes
1answer
33 views
SharePoint Web Part Development - Server Side vs Client Side
I am developing a web part in SharePoint 2010. I consulted with someone well versed in SharePoint development who told me that, beginning with SP2010, server-side code is discouraged. The problem is ...
0
votes
2answers
46 views
SP 2010 CSOM Javascript: serverRelativeUrl fails
I have a custom html and javascript file housed within a document library of a subsite:
http://teamsite/project/testing%20site/shared%20documents/test.html
and
...
0
votes
0answers
19 views
405 Method Not Allowed when creating new item in SharePoint list from remote site
I want to create a simple webpage with a form that can create new items in a SharePoint list. I want to make this as a remote site that just connects to sharepoint.
Since I had a problem with REST ...
0
votes
0answers
15 views
Make Sharepoint 2013 forms read only
I have a need where I need to add a "SUBMIT" Button to sharepoint New and Edit forms along with the default Save and Cancel Buttons. On click it should assign read only permissions to the item to the ...
1
vote
1answer
51 views
Changing client web part properties Title/Description with diffrent languages
We want to change our client web part Title and Description depending on Supported locales(languages).
The Validation checklist for apps:
...
0
votes
0answers
20 views
Click to Auto-Upload Templated File in SharePoint
I have a unique use-case that I am trying to address for a project that I am working on. I am looking to find a way to bind an onclick event to the SharePoint file-upload function to upload a file ...
0
votes
1answer
43 views
Pure clientside webpart for Office365
I want to build a pure clientside (angular) webpart for my own environment. I want to have as small of a footprint as possible (So please no app domain or sandboxed solution).
It's necessairy this ...
-2
votes
1answer
19 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 ...
0
votes
1answer
23 views
How to apply deferreds to execute function 3 times in a row??
I am trying to executed the same function 3 times in a row, but get errors while doing that. Apparently the scripts runs faster than the execution. Code:
$("document").ready(function () {
...
0
votes
0answers
18 views
Add custom javascript directly on SharePoint installed pages (Application pages)
I know there are ways to add custom JavaScript to make changes in SharePoint installed pages like delegate controls, custom actions.
So, these all are using feature then deploying that feature to ...
0
votes
0answers
42 views
Client people picker on Sharepoint View Custom Forms
Can someone tell me how to have the default client people picker control with the auto complete functionality on the custom view form in Sharepoint 2013?
Once the default view form is customised, the ...
0
votes
1answer
51 views
Uncaught TypeError: undefined is not a function
I access my web in javascript code in SharePoint 2013.
I'm using Jquery and KnockOutJS for my other functions. So I have added following urls above my code.
<script type="text/javascript" ...
0
votes
0answers
31 views
Person type url on a display template
I have a list which has a person type in it. I am taking this person type column and adding it to the display template. However how can I get the URL so it goes to the mysite of the person. At the ...
0
votes
0answers
40 views
Uncaught TypeError: Cannot read property 'parentElement' of null
This one is weird I hope somebody can help me.
I wrote a JavaScript with KnockOutJS code to display items in a custom list,
When I try to run the sample, I get the following in Google Chrome's ...