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
118 views

Error from script tag for sp.runtime.js

I'm working to set-up the PreSaveItem() on an edit form for a list such that it evaluates parameters from the query string, and some list fields to execute workflows based on various criteria. Based ...
1
vote
0answers
99 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 ...
1
vote
0answers
154 views

Custom Field RenderPattern Customization - SharePoint 2007

I'm creating a custom field in SP 2007. I need to Get the Custom field value and field properties on Item click, in the list item display view. Also i Need to pass these values to a JavaScript. So, ...
1
vote
0answers
95 views

Unable to get related information from related list and display it on textbox on parent list using logged in user

I have two lists Created for my leave application in sharePoint. I need related information's come from related list (Leaveinfo) and display it on the textbox in Parent list (LeaveApply). I have ...
1
vote
0answers
438 views

Change Ribbon Button Enabled-Function

I want to change the EnabledScript function of a existing Ribbon Button (Upload Document) but keep everything else, like the original CommandAction it executes on click. More specifically I would like ...
1
vote
0answers
831 views

Javascript in CEWP queries a list every time dropdown is changed on NewForm.aspx not working

I am trying to apply javascript in a CEWP to a NewForm.aspx page of a simple custom list. Basically, the idea is to auto-populate a text field on the new item form whenever a dropdown column's ...
1
vote
0answers
318 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 ...
1
vote
0answers
253 views

Default.aspx (Reference Error: AddItem is not defined)

So I'm trying to push through learning how to code in the SharePoint environment. I created a script in a text file that i'm calling through a content editor webpart. When I debug the page using ...
1
vote
0answers
114 views

Update CEWP without refreshing page

I have a webpart which contains 3 charts. The charts are built using google's chart API and SPJS Chart The problem I face is that I'm trying to get the charts to seamlessly update as the list gets ...
1
vote
0answers
889 views

How to filter a list view by SP group membership (CAML, JS, anything)

I have a list. I need to filter the list view in SharePoint to show items: created by someone in current user's group show all to admin group I am using Infopath for the list's form view, and ...
1
vote
0answers
171 views

Client Object Model, wait for a list to load

I'm writing some javascript that modifies a SharePoint list, I've added it to the page using JSLink. Sometimes the script fails because the list appears not to have fully loaded. If I add an alert ...
1
vote
0answers
283 views

Office 365 Public Website JavaScript Snippets - how to remove

Playing around with Office 365 public website Master Page. Used security trimming to strip down the master page to reduce weight for use in responsive design. Assumption is we would not want any of ...
1
vote
0answers
118 views

JavaScript function in URL field value

Is it possible to set the value for the URL field so that when clicked it runs a JavaScript function? I have created a field which stores links to files in SharePoint, but when clicked, the file is ...
1
vote
0answers
477 views

ListData.svc: How to upload attachment?

How does one upload an attachment to a list item using JavaScript/HTL5 file upload API and the ListData.svc API? I know I can do this using managed CSOM but I want to understand the SP 2010 REST API ...
1
vote
0answers
631 views

SharePoint 2010 edit item popup, fullscreen with jquery?

I have sharepoint 2010 portal. In this portal I have some libraries maded by a custom library template. This custom templates shows an example of the pdf file If you open it in the edit form. The ...
1
vote
0answers
121 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 ...
1
vote
0answers
182 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:'" onclick="CoreInvoke(&#39;createNewDocumentWithRedirect2&...
1
vote
0answers
147 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
105 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
250 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
487 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
209 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
368 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
565 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
355 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
224 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
336 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
648 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 = SP.UI....
1
vote
0answers
265 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
76 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
177 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 http://msdn.microsoft.com/en-...
1
vote
0answers
632 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
296 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
246 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
584 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
6 views

Document Preview Word, Excel and Powerpoint Support Javascript?

I'm looking for a way to make a SharePoint library preview fully functional with all types of documents using Javascript. So far the preview feature only works with images and PDF's. This is the ...
0
votes
0answers
18 views

JSOM query execute when followed by a alert, but not without

I'm overriding some behavior in the edit form of one of my list. I'm using JSOM to programmatically update some fields for some items in my list. It's all working fine, except for one thing. When I ...
0
votes
0answers
18 views

Clear search without having to refresh the entire page

I've got a publishing page with the web parts: searchbox searchresults search refiners ... When I've done a search I want to clear the search box, search refiners and the search results web part ...
0
votes
0answers
23 views

Error in updating batch list item

Here is my code: var clientContext = SP.ClientContext.get_current(); var oList = clientContext.get_web().get_lists().getByTitle('FlexMasterList'); var oListItem; var i=1; var j=0; for(i=1;i<...
0
votes
0answers
20 views

Display Google Analytics using API on Sharepoint Site

I'm wanting to display Google Analytics on my Sharepoint site, which acts as an internal intranet. THIS POST HERE seems to have a solution but I don't quite get it - I'm hoping for a dummies guide ...
0
votes
0answers
24 views

how to merge two items in a single list

In SharePoint 2010 List how to merge two item id in new item while clicking on button using JAVASCRIPT/JQUERY/SPSERVICES. For example I've List1 in this two item inserted. Now once I'll select both ...
0
votes
0answers
17 views

Can SharePoint 2016 crawler index JavaScript driven pages?

We have pages that are heavily driven by JavaScript and need to get them into the search results. Is this be possible?
0
votes
0answers
21 views

Auto Minify files on publishing SharePoint hosted app

I have created SharePoint Hosted app with some list, scripts and css. Now I want to minify my files. Can we automate minification of files on deploying or on publishing? Also can we apply ...
0
votes
0answers
27 views

How to query the Active tasks?

Hello i query the task for the current user with a html file and the according javascript. This works and here is the code: var context = new SP.ClientContext.get_current(); var userSessionManager = ...
0
votes
0answers
28 views

View Version History from SharePoint using VBA

new to SharePoint and at the edge of my knowledge (but not comfort zone - GIMME MORE) with VBA/Java(?) I basically want to look at a SharePoint site and determine the version history; This, but with ...
0
votes
0answers
11 views

SP2010: Simply need to figure out why my SPServices UpdatePermissions call reports success but permissions remain unchanged

Examples of how to use this UpdatePermissions or AddPermission call in JavaScript alone would be awesome and appreciated, but of course any clues or information with regards to my main question would ...
0
votes
0answers
23 views

Album in SharePoint 2013

I added the Gallerie Libary to SharePoint using this Tutorial Now I want Albums with different cover-pictures. How I can create it?
0
votes
0answers
39 views

REST API / People Search Results

In my people search results I am querying the REST api to get a link to each person's CV, which are all held in a single document library. I am returning the correct results, but rather than one CV ...
0
votes
0answers
33 views

SP '13 - Calculated Column -> with Look up -> JavaScript with color output

I'm building a column that combines two Look up columns (CDF_oQ and CDF_oT) and one date (CDF_date) column. The result should be a column (the calculated Column = CDF) showing the date and the (...
0
votes
0answers
18 views

SharePoint Webpart UpdatePanel (dropdown change) async Postback not working in safari browser

I am using Update Panel in my SharePoint application(web part). Update Panel having drop down post-back. It is working in IE,Chrome,Fire Fox without any issue. Issue: Same thing tested in Safari 5.1....