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
112 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
425 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
603 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
110 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
171 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
144 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
247 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
468 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
198 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
366 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
540 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
354 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
222 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
330 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
628 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
256 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
75 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
173 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
612 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
289 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
240 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
571 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
15 views

Make this code to Asynchronous to Synchronous call in Javascript using for loop

I am having values in result[15452,33616] when using for loop ,The for loop for i=0 it takes the value of result[0]=15452 ,it is not going to async function.The loop continuing ,after loop over only ...
0
votes
0answers
22 views

How to give group visitors permission to run custom JS?

I have a custom JS file located in siteassets in the homesite https://companyxxx.sharepoint.com/SiteAssets/scripts/custom.js I have added this JS file in the masterpage of one of my collections and ...
0
votes
0answers
14 views

How to Dynamically Change a Value in the Column of the Current Item Through Clicking Hyperlink in Email

I have a script on Content Editor Web Part that me and my coworker tested on a list called TextTestList. The requirement is: When user clicks a hyperlink in email, received from a Workflow, that ...
0
votes
0answers
19 views

check group permission with javascript

I am developing a sharepoint add-in for Office 365 and I need to check groups permissions for my site. Has anyone some ideas?
0
votes
0answers
19 views

Distinct Values selection in list column using rest

I am selecting top 500 rows from the list using below REST API method. I want to select only distinct values for ESI_ProjectSeqNoLookupId column. Please explain in below code where to insert ...
0
votes
0answers
15 views

Dynamically display media content in pager viewer when selecting items from a list

I want to display 2 webparts - side by side - on a page. The left side is a Page Viewer web part that is linked to a panoscan image URL and the right side is a list of panoscans with a URL column. ...
0
votes
0answers
17 views

Start a workflow task and assign it with JSOM

I am trying to see if it would be possible to start an Approval or Collect Feedback workflow with JSOM. There is some documentation out there for kicking off a workflow with JSOM: ...
0
votes
0answers
15 views

Client People Picker difference “Share” and custom

I can't wrap my head around the difference when adding a custom client people picker, and the one that's being used in "Sharing" (/_layouts/aclinv.aspx). The peoplepicker in "Sharing" resolves new ...
0
votes
0answers
18 views

I have a web part which needs to communicate to built project online web part which called Basic Info

In this case I need to add a Content Editor to make a connection between my web part and Basic Info. Is there any way to communicate between web part and Basic info without any Content Editor? I'm ...
0
votes
0answers
34 views

SPUtility not working on Custom edit Form

I have created new Custom Edit Form for one of my List and trying to set Value using SPUtility.js. I am constantly getting error Unable to get a SPField named Title(Field Name) But same piece ...
0
votes
0answers
14 views

SP 2007 makes IE to hang while running a jssor code

I'm using a jssor slider with vertical navigation (no-jquery version) on Sharepoint 2007 page within CEWP where i have replaced all the image links to images store under SP image library and ...
0
votes
0answers
12 views

contents of a list in EditForm.aspx disappear when a Postback function was triggerred

I have a javascript file in the masterpage that triggers postback function to change list displayed in my custom DVWP megamenu. This runs on page load in ALL page in my Site. The code is working ...
0
votes
0answers
13 views

How to detect a customize EditForm.aspx (Sharepoint 2007)

Scenario: Admin will create a custom Edit form aspx page. Q1: Is there a way a javascript can detect the new edit page of the List? Thanks
0
votes
0answers
14 views

CustomJavaScriptFileUrl references script twice - should it?

I'm using PowerShell to provision a SharePoint solution and I'd like to include a link to a javascript file on all pages throghout the site (SharePoint.SPWeb.CustomJavaScriptFileUrl) What seems to be ...
0
votes
0answers
33 views

Custom Thumbnail view with javascript as asset library

At the moment I am creating a teamsite for my team at sharepoint 2013. My problem: I want to create a special view for my document site. I followed these instructions from an external sharepoint ...
0
votes
0answers
21 views

GET Column data Through query or javascript

I have a table and after table tag one button when button click then get 4th column data Email table...All Email of customer and store in a array. Kindly help me to find out the problem.
0
votes
0answers
37 views

Call a Javascript Funtion when Delete Operation Occurs in Document Library

I need to call a Javascript function when a delete operation occurs in a document Library. What is the best way to do so? Example: Suppose I need to show a JS Alert when a document is deleted.
0
votes
0answers
49 views

SharePoint Online Edit Form JavaScript Errors

I am seeing JavaScript errors on the edit form of one of my tasks lists - see below. I have added my own custom JavaScript on this edit form. This is in the Chrome browser. I haven't tested ...
0
votes
0answers
30 views

How to retrieve all pages from “Wiki Pages Library” using JavaScript

How to retrieve all pages form Wiki Page Library through CSOM (JavaScript)? Can anyone share an example?
0
votes
0answers
28 views

How to connect Office Add-In to SharePoint On Premise

I am trying to develop a Word Add-In and I need to retrieve a SharePoint list items. 1st Question: It is posible to write CSOM (c#) code instead Javascript? 2nd Question: How can connect to a ...
0
votes
0answers
13 views

how to give a document link in resourse.js file varialble

I am using below var importFileNameDescription = "Browse to the document you intend to import. This document has to be a Excel file."; for localization in my Resource.en-US.js file in the text I ...
0
votes
0answers
19 views

Add New Calendar item default All Day Event BUT reset when unchecked

I have the below code for setting all day event to yes ( checked) BUT I wanted to do the resetting to the original when unchecked in SharePoint 2010 Calendar event: <script> ...
0
votes
0answers
26 views

SP13: Showing Image in Custom List

The first part is working not the second. Intent: To have users select add attachment button on a custom list new form. Then select browse button that allows to browse out to select image on ...
0
votes
0answers
31 views

Javascript to submit Web Part without click

From a previous question, I am able to populate a textbox with a value I can use to reference another list. However, in order for this functionality to be as user friendly as possible, I would like ...
0
votes
0answers
33 views

JavaScript not firing after Page Refresh or Paging

I'm using some JavaScript to manipulate a list view, such that the clicking of a button (provisioned through a calculated column), will redirect a user to another page. Based on the reference in ...
0
votes
0answers
27 views

Javascript with MDS in Visual Webpart

I need to include a Javascript file in my visual webpart, but using the Minimal Download Strategy. The problem is when i would like to include a SharePoint:ScriptLink tag in my ascx file, i have some ...
0
votes
0answers
19 views

Webpart that uses CSS fixed positioning

I have a two column webpart page. On the left side is a link list webpart, which I would like to stay in sight as the right side scrolls. Is this possible? I did see an example which did it with the ...