Web scripting language.
3
votes
1answer
22 views
SharePoint 2013 lazy load for .click() issue
With IE 10 and Chrome 26 on Win7 x64 (Host1) no issues are appearing, except Firefox 20.
With IE IE 8 on Win7 x64 (Host2) and IE 10 on Windows Server 2012 x64 (Host3), there is the following issue I ...
3
votes
1answer
38 views
JS CSOM in Custom .HTML File
I am building a SPA using SP 2010 as my back end but with custom HTML/CSS/JS deployed to a subfolder of _Layouts. I get everything I need from ListData.svc with the exception of the current logged on ...
0
votes
2answers
35 views
How to get display name from created by field in sharepoint client object model?
In my sharepoint javascript code, I am retrieving items from a list in my SP 2010 environment. I used a camel query to download specific fields. One of the fields was created by (person who created ...
1
vote
2answers
37 views
How to modify the sharepoint 2010 NewItem2 function?
In sharepoint 2010, I want to add javascript to the alerts popup window page, but I don't want to modify the actual layouts file. I want to dynamically insert javascript in it. Basically the button to ...
1
vote
1answer
23 views
I'm looking for a way to detect the ribbon load event
I'm looking for a way to hide a button from the ribbon using javascript, but to do this I need to wait until the elements of the ribbon are loaded.
Is there a way to detect such event?
2
votes
0answers
19 views
Updating contents in a custom webpart in a Discussion Board topic page
I have made a custom Visual Webpart. I'm wanting to periodically update a label in the webpart without refreshing the whole page. I've got the label to update, however it is also updating the replies ...
1
vote
0answers
12 views
How to create object of type SP.ListItemFormUpdateValue
How can i instantiate object of type SP.ListItemFormUpdateValue and initialize it to a List field so i can read the field values on client side?
If this is not posible, how can i read a value in a ...
2
votes
1answer
49 views
Add New List Item with SPServices anonymously
I have an HTML5 + jQuery application with a built in contact form that I wanted to hook into Sharepoint, and Lists seemed an ideal way to do that. I used the jQuery library SPServices to get this up ...
1
vote
2answers
41 views
Item ID of current row
I am working on a script that needs to pull the SharePoint list item ID from the current row. I have a checkbox field in a multi-item form webpart that, when checked, needs to update the item without ...
2
votes
2answers
43 views
Prevent/override standard Modal Dialog close button(X) from closing
I want to validate custom modal dialog form and if its not ok, prevent form from closing.
For this purpose, I attached to X-close-dialog-button. Problem is to prevent it's default behavior.
function ...
2
votes
2answers
51 views
Get Modal Dialog Close button
I have override new item form for list, opening myPage.aspx where this javascript is in the "PlaceHolderAdditionalPageHead":
function fGetCloseBtn() {
var closeButton = ...
0
votes
1answer
25 views
Getting user email from a List Item column using Javascript
I am creating a Hosted app using NAPA on Sharepoint 2013 (Office365). I need to retrive a user from a list column and get the user's email.
SP.List.getItems with a query returns a listEnumerator ...
1
vote
1answer
63 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:
...
0
votes
1answer
26 views
Getting user's manager in Sharepoint (Javascript)
I'm having trouble with getting user's manager data in Sharepoint Javascript Model.
I'm using context.get_web().get_siteUserInfoList(); through SiteUserInfoList. What I got back is a bunch of info ...
0
votes
1answer
16 views
Add javascript to Discussion Board Topic page
I'd like to add javascript to discussion board topic pages. Thatis, the page that consists of a single Topic, and lists all the replies to that topic.
From google, I've learnt that I can add a ...
2
votes
1answer
42 views
jQuery not loading in sharepoint 2010 asp.net page
I am making an visual webpart in Sharepoint 2010, and I am trying to load my jquery files in the ascx page.
Near the top of the page I have this:
<SharePoint:CssRegistration ID="jquery_css" ...
1
vote
1answer
44 views
How to open file in adobe reader using command line without checkout from Javascript?
I am working on print functionality. I am printing the PDF files (uploaded in SharePoint Library) using Adobe Reader command line from javascript. I am using ActiveX object to call the cmd. refer ...
0
votes
1answer
27 views
Javascript IIFE and SharePoint Client Object Model
I'm having a problem with my javascript code that I am sure is to do with scope, but I can't figure out where I'm going wrong.
I'm trying to write a method that will allow me to retrieve items in a ...
1
vote
1answer
40 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
2answers
57 views
Control JavaScript with Ribbon Button
my aim is to add a Ribbon Button which is opening a printing dialog for a selected file in a document library. I already added the Button with SP Designer and linked it with a html file which is ...
0
votes
0answers
29 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:'" ...
1
vote
0answers
21 views
Display New item Icon with SPServices
I want to display the New Item Icon with SPServices or using custom Javascript to show a new item icon for n days when Created. I achieved this using XSL. Thank's to Mark ...
1
vote
0answers
29 views
getting top X items in each folder with a CAML Query
i'm trying to do a visual representation of a document library using javascript and webservices.
basically i want to present the folders in the library, with a preview of the first few files in each ...
3
votes
1answer
43 views
Get Site Template ECMAScript
I have an ECMA script that I'm using to build a site directory (Thank you Bill Simser). I'm trying to add additional information such as the template the site is using, and not having much luck ...
0
votes
1answer
81 views
add multi select dropdown selected values to sharepoint list by Ecmascript
I have a sharepoint list which where I want to insert multi selected values from a dropdown list.
<select multiple="multiple">
<option>A</option>
...
2
votes
0answers
44 views
Initialize word document content type properties using Javascript
I'm trying to create a new word document from a template using the following javascript code :
var word = new ActiveXObject("Word.Application");
var doc = ...
0
votes
1answer
46 views
Programatically update profile field(s)
I have a requirement to update user profile fields. I'm able to query the fields, of course, using the CSOM API in Javascript.
But, as per here - ...
0
votes
0answers
35 views
JavaScript OnChange for PeoplePicker or something similar in a NewForm.aspx
i have a document library where i added a people picker column where i can assign a person from the company. Also i have a column where the user should enter the department of the selected person.
Is ...
0
votes
1answer
13 views
Designing a Sharepoint Workflow Distribution list filtered on column values
I'm working on putting together a Sharepoint site to report issues with a new software that is being implemented by my company. I already have a workflow that automatically sends an email to specific ...
0
votes
1answer
46 views
Need to remove html tags from <td></td> area in SharePoint custom DispForm.aspx
I had created a custom DispForm.aspx for a SharePoint list, using SharePoint designer. I included a Rich Text column type to show in DispForm.aspx. The contents of the column are showing, but somehow ...
2
votes
1answer
51 views
show modal dialog for list with opened ribbon
I need to display a standard list inside a modal dialog. Currently I'm using SP.UI.ModalDialog.showModalDialog(..) and I'm building the URL like this:
options.url = ...
1
vote
1answer
43 views
Change CSS of selected item in sharepoint menu
Is there a way to do the same as done here with some Javascript?
AspMenu does not render css-class for 'selected' element
I want to use this CSS for the selected item in the menu
.s4-tn ...
0
votes
0answers
60 views
add new object not opened in a modal dialog for Sharepoint Photo Library
I created Photo library now For add new item i have written Javascript code and which works fine in IE,Firefox but not in Chrome browser i get a error as"Uncaught TypeError: Object # has no method ...
0
votes
2answers
44 views
Enlarge a Choice column's “specify your own value” text area?
Can anyone suggest a way to make the "specify your own value" text box larger in the Edit Form of a list item's Choice column? I would like to make it look more like a multi-line text field type, ...
1
vote
1answer
43 views
Sharepoint 2013 not going to http://sharepoint/SitePages/Home.aspx
Currently in my Sharepoint Site, when I want to go to the main page sharepoint/SitePages/Home.aspx, it actually ends up going to sharepoint/_layouts/15/start.aspx#/SitePages/Home.aspx.
This really ...
0
votes
3answers
39 views
Multiple Webparts with same JavaScript on one Site (another Problem)
I rebuild the site (site before). I have on the site two or more Webparts. These CEWP are including the same JavaScript and this the JavaScript is displaying a table via:
...
4
votes
2answers
126 views
how to set list alert using javascript in sharepoint 2010?
I need to set a list alert for current (logged in) user using javascript.
var currentcontext = new SP.ClientContext.get_current();
var currentweb = currentcontext.get_web();
...
-4
votes
1answer
37 views
Javascript brainstorming questions [closed]
I am searching for some brain storming questions in javascript. But every result was for objective type quiz. I need some questions that is not in the internet.
1
vote
0answers
30 views
Retrieve property bag for sub sites using JSOM
I need to go through all sites belonging a site collection to validate a property bag of them. following is my code. the problem is the second call to get the property uses only one of the sites. I ...
0
votes
2answers
69 views
Multiple Webparts with the same Javascript
I have a site with multiple Webparts. Some Webparts are linking on the same .html file.
The HTML file reads data from a list and displays it in a table by using javascript. My problem is that there ...
0
votes
1answer
72 views
SharePoint 2013 - Error “init.js failed to load”
I am new to SharePoint 2013 server and SharePoint designer 2013. When I browse SharePoint site in IE, I am getting the below error.
"init.js failed to load"
But when I browse SharePoint site in ...
0
votes
1answer
40 views
Customizing Top navigation bar with javascript
I would like to make a customized the top navigation bar with mouse hoover and dropdown.
The list is all sites that person have access too in that site collection.
Since some people have access to ...
0
votes
1answer
40 views
Access sharepoint web service from separate HTML application
I want to access list items from a SharePoint 2010 site in a HTML application (not connected to the SharePoint site).
My approach is to use SharePoint web services by passing user credentials through ...
1
vote
2answers
181 views
SharePoint 2010 web service - GetListItems not working in Chrome & firefox
function GetListItems() {
var soapEnv = "<?xml version='1.0' encoding='utf-8'?><soap:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'>" +
...
0
votes
1answer
48 views
Conditional Formatting very slow
i am using SharePoint 2010. I built a webpart which is displaying elements from another list on the same page.
This works fine and fast but when i put in the conditional formatting the loading process ...
0
votes
0answers
27 views
Get Property Value from Standard App Part Sections
I know that I can define custom App Part Properties through the Elements.xml óf the App Web Part.
<Property Name="ListName" DefaultValue="Movies" Type="string" WebDisplayName="List Name:" ...
0
votes
2answers
57 views
Sharepoint timeout
I want to implement timeout in sharepoint site. I want to popup a message to user every 30 min if he is idle on the site. A continue button should be coming in popup and if he clicks ok he should be ...
0
votes
0answers
26 views
Timeline graphs in SharePoint 2010?
My client has a requirement to display a SharePoint calendar in a timeline format. Currently, it's being done by Simile Widget timeline:
http://www.simile-widgets.org/timeline/
Since I'm ...
0
votes
1answer
157 views
SharePoint Client-Object-Model - Return List Item Counts by Created Month
Looking to get monthly totals of items from a list using the SharePoint COM/SP Services. My intention is to pass this data to a D3 chart.
2
votes
3answers
336 views
Analog of SP.UI.ModalDialog.showModalDialog function, but render to specific div
How to make the analog of SP.UI.ModalDialog.showModalDialog function, but render to specific div?
I need to render EditForm to div on page and set callback function. Something like ...
