2
votes
1answer
34 views

SP.RequestExecutor on SharePoint online

I deployed an App SharePoint hosted. I am using SP.RequestExecutor and it is working fine on SharePoint premise. but on SharePoint online it is not working. I added the library using this: ...
0
votes
1answer
31 views

Script in webpart freeze the whole site

I have a JavaScript in my script editor that on page load freezes the browser . I can't use SharePoint designer to remove it because the script is in a script editor. I have tried disabling JavaScript ...
0
votes
2answers
32 views

How to insert record to sharepoint multi choice field via CSOM

I am trying to insert a Multichoice (checkbox) field to sharepoint via the SP namespace in javascript. Updatnig single choice is simple. For Multichoice I have tried: var itemCreateInfo = new ...
0
votes
1answer
61 views

Add item to list using button

I try to create button that will be add item to the list. Unfortunately I do somethings wrong. My programming skill's are at beginner level. I have list "List" with only one field Title (for test) - ...
0
votes
2answers
66 views

How do I get my JS to work on sharepoint online?

I'm trying to run a simple script on a document library on a team site. I'm quite new to doing anything with sharepoint other than using OOTB features, so forgive me if this is a painfully simple ...
1
vote
0answers
35 views

Error Setting Ratings using SharePoint Client Object Model

We are attempting to use the example located on this: Site We are receiving the following error: "The assembly Microsoft.SharePoint.Portal.Proxy, Version=15.0.0.0, Culture=neutral, ...
1
vote
1answer
55 views

getting Regional settings in Javascript from CSOM

I am creating a custom data entry app in sharepoint using the CSOM. I need to update the default value of a datetime field, I can get the default value but the datetime is in UTC Format. I need to ...
0
votes
0answers
21 views

Sharepoint Online - Image Position in RichTextEditor

I have a custom site with a list of posts (something like a blog, but not the standard sharepoint blog), and I'm having an issue with the RichText Editor and images. The issue consists in inserting ...
0
votes
0answers
19 views

passing information from Sharepoint to Immersive Sharepoint App

I have created an custom add entry app to sharepoint. It all works however currently the list it works on is hard coded. I want a way to pass the list I want to add an entry to to the application. I ...
1
vote
2answers
59 views

Jquery and csom problem

Hi im having some code like this: var News = new Array(); jQuery(document).ready(function () { ExecuteOrDelayUntilScriptLoaded(initialize, "sp.js"); some code here... function setUpList(){ ...
2
votes
0answers
29 views

Retrieve items from content type

I have the following setup: Root Subsite1 Subsite2 list1 list2 content type: News content type: News How can I retrieve the ...
2
votes
3answers
101 views

using CSOM to retrieve fields in a list in a view

I am trying to use the CSOM to retrieve all the displayed fields in a particular view. I require to know the field type and field internal name. I can not do: var list = ...
1
vote
1answer
64 views

Create control to upload Attachment to list in SharePointOnline

I have a custom webpart page which is used to enter some input data which eventually gets saved as a List item. Now i want to add a control to that page which enables user to upload attachments to the ...
0
votes
2answers
117 views

How to cast a date column value in JSLink javascript, and how to increase this date variable?

I am using sharepoint 2013 online. I have created a custom list. On this list I have used JSLink to show an icon in a column. I would like to do some logic to show a red or a green icon. I have now in ...
0
votes
2answers
169 views

How to deploy a custom JavaScript file to Style Library from SharePoint Apps?

I want to do some java-script operation on a custom list in SharePoint 2013 Online version. So I am creating a separate java-script file and deploying to Style Library manually. Does anybody know how ...
2
votes
2answers
163 views

SharePoint 2013 Organization Chart [closed]

im in need of help here. I have to render this code from a sharepoint list instead of this json string. How can i do that? Heres the link to the chart: http://librerias.logicas.org/lib_gg_orgchart. ...
0
votes
2answers
378 views

SharePoint 2013 Display Templates - Load Javascript BEFORE rendering search results

This is my problem and please let me know if I am approaching it incorrectly. I have a list called "document classes" that holds information such as the retention and revision periods for documents, ...
0
votes
0answers
49 views

Retrieve Profile Picture with REST

Hi i would like to show the profile pictures of the user that have created the item in a list, here is my code: <script type="text/javascript"> $(document).ready(function() { var ...
0
votes
1answer
73 views

Create a radio button filter based on “Created Date” attribute using jquery or javascript

I’m currently loading a number of list items through a customised Content Query Web Part. And XSLT attribute associated with each of these items is the Created Date. An example of the mark up ...
3
votes
1answer
117 views

Get rid of Horizontal Scrollbar on SharePoint Online Public Website?

On my out of the box public website have a horizontal scrollbar I can't find the source of. No matter how I try to find it's origin, I'm having trouble getting rid of it. It may be an error in the ...
0
votes
1answer
201 views

Call executeQueryAsync method second time gives first time result

In the code I tried to get the data from 2 different LIST. Input of the second query will be done after executing first list. $(document).ready(function () { $("#SearchButton").click(function ...
5
votes
4answers
762 views

How can I disable the Document Library drag and drop function?

Before I start - I'm new to this SharePoint development lark and am slowly familiarising myself with it. We're using SharePoint online and I have amended the SharePoint out-of-the-box document ...
4
votes
1answer
123 views

SP.UI.Status anonymously inaccessible

Using Office 365 (SharePoint Online) I have stumbled into an annoying thing. Some parts of the JavaScript CSOM does not seem to be accessible when your browse the site anonymously. If Firstly I tried ...
1
vote
2answers
3k views

How to authenticate user in sharepoint online using javascript

I have one sharepoint online 365 site. In that one public site will be there. In that there is sign-in option. Generally When ever user clicks on signin it will redirect to microsoft login page. But i ...
1
vote
0answers
123 views

How to add a choice field in JS Grid control

I need to add a choice field (dropdownlist) in each row of a JS Grid control. What is the PropertyID for a choice field. How to add a dropdown. Please assist. i tried like this,but this didnt work ...
0
votes
1answer
397 views

SPO - /_vti_bin/lists.asmx returns Error 500

I am currently developing a news scroller/ticker in SharePoint Online (Office 365) and am using the follow script to access a list: var emptyResults = "<li>No current ...
1
vote
1answer
2k views

The property or Field not initialized exception even I request explicitly

I'm using the following code to get the user permissions on a list item in javascript csom context = SP.ClientContext.get_current(); var field = ...
0
votes
1answer
149 views

Editing SPO 2013 Master Pages - no effect and where do you place javascript code block?

I'm trying to add a jQueryt block to oslo master page on spo 2013. check out, make changes and save, but no apparent impact. Am I placing javascript in the wrong place? do I need to do any additional ...
0
votes
0answers
53 views

field 'choices' not initialized not requested

Hi im using the following code to get choices of a Choice site column. some times Im getting 'Chices' not initialized error in console. var searchtaxonomy_context = SP.ClientContext.get_current(); ...
0
votes
1answer
102 views

Loading ECMA script API / Access sharepoint from web site hosted externally from sharepoint

I'm developing a web application externally from sharepoint online 2010. As part of the application I would like to allow users to access documents from a document library. Ideally users would click ...
0
votes
0answers
134 views

How to Set jquery Ui Date picker value to Sharepoint Date and Time field using ecmascript

I am creating list and adding items. It is working fine. when I try to update the list Date and Time field with the jQuery UI date picker values, I am getting the below error Column 'CustomDate' ...
1
vote
1answer
1k views

Default Sharepoint 2013 client-side people picker to current user

I'd like to be able to default the client side people picker for SharePoint 2013 to the current (or any) user. I've read the "How to" MSDN document here: ...
1
vote
1answer
1k views

ODataContentTypeException : Content Type 'application/json;odata=verbose'

I'm trying to create items in a SharePoint lists through the SharePoint REST API in Javascript (with an AJAX call using jQuery), all that in a SharePoint2013-hosted App. But I get this error when I ...
0
votes
0answers
115 views

How do I open a template document in OfficeWebApp with Javascript?

I am using the following to open a template document from one location which will be saved to a another location: <a href="javascript:'" ...
2
votes
1answer
4k views

Javascript get SharePoint List items, enumerate, and locate and pin each item on Bing Map

The map is rendering and debugging in IEf12 does not show any error with loading the list. I am using a CEWP referencing this file - SharePoint Online (Office 365). What's wrong with this code? ...
0
votes
3answers
2k views

SharePoint-hosted app don't get my lists

I'm developing a SharePoint-hosted app for SharePoint 2013 (in Office365), but I've a problem accessing lists within a SharePoint-hosted app. My code is well printing the lists, but it only show me ...
1
vote
2answers
2k views

How to modify user profile properties using javascript in SharePoint 2013 (Online)?

I need to modify user profile properties using javascript (REST or CSOM). How can I do that? I don't see any methods in MSDN documentation about modifying profile properties without server code. ...
1
vote
1answer
374 views

What is the purpose of SharePoint 2013 Site Content Type - “JavaScript Display Template”?

Under SharePoint 2013 Site Content Type - JavaScript Display Template Content Type is present, what is the purpose of the content type and how we use it?
2
votes
1answer
146 views

SharePoint - Detect Silverlight Version and upgrade if necessary?

My Silverlight 5 app is hosted in SharePoint Online. It doesn't load (sticks at 100%) for users who have Silverlight 4 versions. How should I upgrade those without the latest version to Silverlight ...
2
votes
3answers
2k views

Remove ribbon entirely on certain page?

Can this be done with SharePoint Online? Failing that, for an entire site? Thanks.
1
vote
1answer
1k views

How to upload image file into the SharePoint 2010 picture library using javascript

I need to upload image file into the sharepoint 2010 picture library using java script... requirement is -- we have File Upload control And, we have to upload image file from that file upload ...
1
vote
2answers
167 views

Changes in SharePoint Online (Office 365)

I have an idea to solve a problem by adding jQuery/javascript to a aspx page (in this case the DispForm.aspx) But I thought I've heard that SharePoint Online installs automatically updates. Can this ...
1
vote
1answer
1k views

JavaScript SP.CamlQuery() return DateTime fields with offset (in my case +11 hours)

JavaScript SP.CamlQuery() return DateTime fields with offset (in my case +11 hours). In standart Display/Edit forms and views display correct DateTime. How to get correct DateTime via SP.CamlQuery()? ...
2
votes
1answer
1k views

How to see if current user exists in people and groups field, using ecma/client-object-model

I have a list which has two fields. (Title,EditPermission). The EditPermission is "people and group" field. I can use the following code to compare the current user with the spuser in that field ...
0
votes
1answer
825 views

How to add SPUser to sharepoint list field (lookup)

I have a sharepoint list, with a lookupfield for users. The column name is "SystemUser". I have successfully added a listitem by using javascript, setting the "SystemUser" to the current user by ...
1
vote
2answers
4k views

Check list item title in SharePoint 2010 using ECMA script

I have a requirement that I need to check the list item title in SharePoint 2010 using ECMA script. For that I am using: this.oList = web.get_lists().getByTitle('UserThemes'); ...
7
votes
3answers
3k views

Site Assets vs. Style Library

I usually store my JavaScript/jQuery files in the Site Assets library, but I see on forums that others are using the Style Library. What are the respective benefits of each?