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.

learn more… | top users | synonyms (2)

1
vote
0answers
136 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
112 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 ...
1
vote
0answers
100 views

Getting column information from a sharepoint 2010 list

I'm trying to figure out how i can get information about a column in a Sharepoint List, like what type of column it is (single line, number, date etc...) and whatever additional column info that ...
1
vote
0answers
206 views

Unable to access the SP2013 App from IE but able to access from chrome

I've started working on SP2013 App development. When I'm deploying the app from VS2012, the App is successfully getting deployed. But after Trusting the app, it is showing "Internet cannot display the ...
1
vote
0answers
314 views

display InputFormSection

Can we hide an wssuc:InputFormSection ?? I have a wssuc:InputFormSection made for adding items and it's only shown when you click on add link as the code shows : <Table border="0" width="100%" ...
1
vote
0answers
139 views

Updating a value of any item in a list based on a selection of bool for one item - jQuery

So I hope this makes sense. I have a column within a list that I want to use as an active flag. There are 5 possible categories and for each category there can only be one active value. So I need some ...
1
vote
0answers
88 views

changing language on application page

I am using following code to change the language of HTML form on application page: <asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server"> ...
1
vote
0answers
306 views

_spBodyOnLoadFunctionNames.push Not working in firefox

I tried this in firefox i dont know why its not working but it working in other browsers function loadmonth() { alert('called'); } _spBodyOnLoadFunctionNames.push("loadmonth");
1
vote
0answers
413 views

Close window after save editform with Drop off library

I have a problem with closing my explorer window from the SharePoint 2010 listitem editform. I am opening a new explorer window from Outlook. In this window I open the editform from the ...
1
vote
0answers
321 views

Load full list XML into JavaScript variable via CEWP

Currently I am using the lists.asmx webservice to POST a soap envelope and return specific list items. I really want the whole contents of the list. I realize how large that might get, but if this ...
1
vote
0answers
191 views

Changing / overwriting OOTB javascript

I've came across an issue when I was modifying / customizing the mini social tag buttons (a delegate control - class), everything went good and well untill I encountered an issue "onmouseover" event. ...
1
vote
0answers
259 views

How to handle “grouping expanded data load complete” in a list view?

In SharePoint 2007 I run some code after a grouping is expanded by overriding the ExpGroupRenderData (the custom code contained Microsoft's original code with some added extra bits). When this code ...
1
vote
0answers
505 views

Modal Dialog Delegate Event not firing

I have a modal dialog that I call from my sender page: function openCommentsDialog( ITEMID) { var DropDownListValue = document.getElementById("HideVal").value; var options = ...
1
vote
0answers
231 views

Validate list item with javascript API

I want to develop a custom datasheet view to edit a list. I add item through the javascript API. The problem is that the service doesn't control fields value. For example : - I add an item with a ...
1
vote
0answers
72 views

How can I authenticate to BPOS SharePoint using JavaScript

Does anyone know where I can find resources explaining how I can authenticate towards BPOS SharePoint using javascript? I have managed to authenticate with Office365 building on the scripts of lstak, ...
1
vote
0answers
126 views

will SP.ClientRuntimeContext.add_requestSucceeded stack events?

I'm looking for a new way to throw some tracking into list-based user actions (i.e. through ECB) and I stumbled accross SP.ClientRuntimeContext.add_requestSucceeded (see ...
1
vote
0answers
379 views

List Item file attachment using ECMAScript Object Model

How to simply upload & attach file to listItem using Javascript? And how to get/download attachments.
1
vote
0answers
482 views

Get Permissions with client object model

i want to add a permission on a folder who's inside a document library with javascript/jquery/client object model. The problem i have is, its a custom permission level created when some feature is ...
1
vote
0answers
262 views

Customizing richtextbox from formfield

This applies to SharePoint 2010. I have a requirement where users can only use a very specific set of "styles" when creating their content for SharePoint lists. As the "styles" ribbon button does not ...
1
vote
0answers
192 views

SPServices to retrieve the last record of repeated section data inside Sharepoint library

I have a Infopath that contain 2 fields which I put it as a repeating section as shown in the picture below (for the time being - please ignore the error) How do I retrieve the last record of a ...
1
vote
0answers
490 views

get current Page Layout in sharepoint 2010 using ECMA script

I have a requirement that I need to create a custom page layout and need to update the current page layout with my custom page layout. In SharePoint we have a feature to change the page layout. But I ...
0
votes
0answers
9 views

not able to fetch term stores

I am getting this error.. Failed to load resource: the server responded with a status of 404 (NOT FOUND) The error is because of this var scriptbase = ...
0
votes
0answers
9 views

WOPI iframe on Sharepoint list attachments

I really like this new functionality of the SharePoint search that shows you a document preview on mouse hover. Is there any way to make the save document preview in list item? In the search it looks ...
0
votes
0answers
29 views

CSOM: SP is not defined

Here is my error: Uncaught ReferenceError: SP is not defined $_global_portal (anonymous function) SP is not defined and the source is portal.js?rev=nIRSxJH7DAoMFUDBHc9jFg%3D%3D:1 ...
0
votes
0answers
15 views

From root site, link that creates new item in a specific list / link to newform in a specific list - javascript

I have a teamsite. On the welcome page (root) I want to have a link to newform of a specific list inside the site collection. When I click on the link I want it to redirect me so I can create a new ...
0
votes
0answers
14 views

How could i delete old items in select tag option before adding new?

I am trying to do the following: every time an item gets added in my select option remove the old ones and only display the new added in my select option? Right now it deletes all items and only show ...
0
votes
0answers
19 views

How do I access a Custom List from a client web part via the REST API?

I am using the following code to try and access my newly created Custom List called Announcements: $.ajax({ url: appWebUrl + "/_api/web/lists/getbytitle('Announcements')/items", method: ...
0
votes
0answers
15 views

Async Refresh LVWP on load with HTML Form Param

I have a List View WebPart that I need to asynchronously take a parameter from an HTML form WebPart and update the LVWP. I have some odd behavior happen when I attempt this. I have Async Load, Update, ...
0
votes
0answers
8 views

Get date before and after and query out free dates on range

When double booking in calender, the user get prompted to an dialog where Current day and +1 och -1 on day and then display the free dates, doing all this code wihout +1 om fromTime, and -1 on toTime, ...
0
votes
0answers
13 views

How do I access an image library from my client web part via the REST API?

I am busy implementing a small web part to rotate through a list of banner images. The images must come from an Office365 SharePoint online list. My first choice to implement this list is by using the ...
0
votes
0answers
15 views

How to retrieve items from Camlquery

How can I retrieve items from the date range below: 2014-12-07 08:00 to 17:00 2014-12-08 08:00 to 17:00 2014-12-09 08:00 to 17:00 With my query right now I am receiving 2014-12-07 08:00 to ...
0
votes
0answers
24 views

How to get days 5 days before and 5 days after

I want to query items from a calender list 5 days before current selected date from datepicker, and 5 days after selected value from datepicker? This code takes the selected datepicker date from ...
0
votes
0answers
12 views

Retrieve items from calender List only get first item

I am trying to get all items from my calender list i want to get EventDate and Enddate, here is my code, function onQuerySucceeded() { var startCon = listItemCustom + "T" + "08" + ":00" + "Z"; var ...
0
votes
0answers
13 views

Array EventDate And EndDate

I have two arrays 1 for EventDate and One for Endate from my calender List, var listItemEnumerator = collListItem.getEnumerator(); while (listItemEnumerator.moveNext()) { var oListItem = ...
0
votes
0answers
12 views

ECB custom action item issue

I deployed a custom ECB item action, I can see it at item level but when I click on it, nothing change. This is the definition of the custom action: <?xml version="1.0" encoding="utf-8"?> ...
0
votes
0answers
15 views

Set external content type by javascript

In the NewForm, I need to set an external Content Type lookup field by javascript. How can I do it?
0
votes
0answers
14 views

How to split EventDate and EndDate

i am trying to split on "," working with eventdate and endate but i dont get it to work. (undenified) var listEventDate = oListItem.get_item('EventDate'); var listEventdt = new ...
0
votes
0answers
8 views

Display items that are free to book and not items dates that exists

I have 2 items in my list right now it only displays that my first item in the list are busy and not the second also, because i have to items in the list, any suggestions'? function ...
0
votes
0answers
5 views

Unable to set collListItem or nullreference

Here i am trying to get the items from the dates between 8-17 on the date 12-04 The result works fine, I am trying to do the same using an SharePoint-Hosted app, Here is my code, it takes the ...
0
votes
0answers
12 views

Uncaught ReferenceError: $ is not defined Page.aspx

I want to READ list data from with the help of RESTAPI in SharePoint. I use below code to do the operation. <script src="http://code.jquery.com/jquery-1.11.0.min.js"></script> <script ...
0
votes
0answers
13 views

SP 2013 cross-platform Mobile App | HTML5 based | How to authenticate? OAuth?

I have a mobile app which will be cross-platform capable using cordova. So it is based on HTML5, CSS3 and JavaScript. My Problem is, that I don't know how to authenticate the App to Sharepoint to ...
0
votes
0answers
26 views

How to hide SP.UI.ModalDialog.showWaitScreenSize?

While loading a SP.UI.ModalDialog window, I implemented a Waitscreen as proposed by MdMazzotti. Now, I seem unable to close that waitscreen from the dialog window. apparently, this fails because the ...
0
votes
0answers
30 views

Help Updating Image Url of recently modified Sharepoint List items

I'm working on a project for my group where we want to display a different stage progress image whenever the current status field of a list item (Req Status) is changed in the Edit Properties window. ...
0
votes
0answers
12 views

getTimezoneOffset(); using returns -60

The listItemToTime before making it to getTimeZoneOffset displays in UTC format, Like this 2014-10-15T10:00:00Z var toTime = new Date(listItemToTime).getTimezoneOffset(); But after using ...
0
votes
0answers
31 views

How to get Sugested People, Documents and Sites to follow in Sharepoint online using REST

I know we can use http://<siteCollection>/<site>/_api/sp.userprofiles.peoplemanager/getmysuggestions API but I am unable to get the Data
0
votes
0answers
43 views

Document Set created using SPServices shown as folder in WelcomePageView

After creating Document Set programatically using jQuery SPServices, if i click on Document Set Name it showing AllItems.aspx page instead of default docsethomepage. I checked in the Welcomepage view ...
0
votes
0answers
18 views

Hide empty columns in PerformancePoint Scorecard dynamically

I have a scorecard with several empty columns which I want to hide dynamically. In the illustration above, I want to hide three empty columns, viz. MidYear Income, MidYear % and MidYear Status. ...
0
votes
0answers
19 views

Remote access development

I'm relatively new and have tried to search posts regarding this problem but I'm not sure whether I'm hitting the right sites. The scenario is this. I have a sharepoint 2013 installed on ...
0
votes
0answers
62 views

How to create a Sharepoint Hosted App with AngularJS and keep the Sharepoint Look and Feel

I am having the following issue. I have a mini SPA with an option to view products, edit and create. The SPA I created using the default .aspx page that comes when you add a new Item (Page), into a ...
0
votes
0answers
20 views

people picker, on edit page, display on published page as hyperlink

Basically I have a people picker like so in my page layout <SharePointWebControls:UserField ID="UserField2" runat="server" FieldName="Approver"/> this shows in the edit page and when it is ...