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)

0
votes
0answers
103 views

Possible to read values from file (.doc, .ppt. .msg) in library using javascript/jquery

Is is possible to read values from .msg file using javascript/jquery (or some other mechanism like workflows, etc) that are in library in SP2010? I know I can read values from a xml file, curious if ...
0
votes
0answers
88 views

Fail to update a SP List item from JS

I am trying to update a list item from a list with a single column 'Test' and I'm getting the following error: Request failed. This task is currently locked by a running workflow and cannot be ...
0
votes
1answer
94 views

Delete selected file in Document Library with Javascript

I have a Document Library, when I select some files from it the ribbon appears and I can choose "Delete Document". I need to make a button on the page (.aspx view of the Library) that calls a ...
1
vote
1answer
515 views

Invalid field or parameter requestInfo.url

I am trying to get users blog post (newsfeed blog posts) which are located on same web application as other site collections and show them within a web part by using JavaScript. I use ...
1
vote
2answers
2k views

How to use client object model (javascript) to get a custom user profile property?

In my sharepoint 2010 environment, I am using the client object model (ecma script/javascript) to display people information. In my user profile service in sharepoint, I have created some custom ...
0
votes
1answer
3k views

Getting 'ExecuteOrDelayUntilScriptLoaded' undefined error in aspx page

I created a test custom .aspx page in sharepoint 2010 and I want to get client object model (javascript) working on it, without loading the master page. However when I load the page, I get this ...
0
votes
1answer
172 views

access denied when getting personal site (JSOM)

I am trying to get my blog posts by using JSOM, following is my code to get personal_site/blog which generates "unexpected response data from server", when I debug the JavaScript it shows "Access ...
1
vote
1answer
167 views

Populate a Filter web part from a List item and execute

I have a Business Data Related List called Projects. It is connected to a Business Data Item, so it has the option to select an item (the two-way arrow next to an Item). From this List I need to pass ...
0
votes
2answers
256 views

Calling multi argument Javascript function in XSLT

I am working on a data view web part. I am using Java script for some of my functioning and having trouble with calling javascript function with more than one arguments while single argument function ...
3
votes
2answers
866 views

SP 2010 - Client object model (javascript) - How to use get_listItemCollectionPosition for paging?

This is my code: When I call the function to get the items, it fails (doesn't go to the fail function, it goes into the success function but crashes when I try to get the position object), and I get ...
0
votes
1answer
278 views

Clear all values in a multi-value lookup, via REST, SP 2010

Conditions: SP 2010, html/javascript, using REST to read/write to various lists. Im using a jquery multiselect plugin to set a multi-value lookup column. I need the selecting Groups of items, easy ...
0
votes
0answers
157 views

SharePoint 2013 Partial Postback and add_endRequest

On my SharePoint search/results page I am trying to capture a partial post back by doing the following: <script language='javascript'> _spBodyOnLoadFunctionNames.push('bodyReady'); function ...
1
vote
1answer
392 views

How to get only the first x items starting at position y from a list, using CAML query?

In sharepoint 2010 client object model in javascript, I want to create a caml query, that can download items from a list. I have this part working, but I want to download only x items, not the whole ...
0
votes
2answers
919 views

How to check checkboxes in caml query?

In SharePoint 2010 client object model (JavaScript), I am using this caml query to download list items. There is a column called 'Office' and in it, there are several check boxes (i.e. its a ...
0
votes
3answers
49 views

Type is not defined

The .js file is loaded in aspx page like this: <SharePoint:ScriptLink runat="server" ID="script1" name="/js/my.js" Localizable="false" /> And when page is loaded throws javascript exception ...
0
votes
0answers
123 views

Sharepoint 2007 onClick not finding javascript method

I'm having some real problems trying to fire a really simple piece of a Javascript code that I intend to run on the click of a button. I think the problem is the location of the script or another ...
0
votes
0answers
318 views

sharepoint 2010 with Kendo UI, REST, autocomplete

User defined List in SP 2010, with Kendo UI code as below does not display any data in for my simple 'autocomplete example' . Here is the code <script> ...
0
votes
1answer
39 views

Hide some MySite social features

I'm new at SharePoint 2010, and I'd like to implement social features. I used MySite, but there are too much possibilities, and I would like to hide (or disabled) some of them (red-cicled in the ...
1
vote
3answers
613 views

How to Make Webpart Title to Display Day of the Week?

I have list View webpart in my sharepoint 2010 team site home page. Generally Web Part title can be easily modified by editing the webpart and providing Title value. I am looking for a solution to ...
0
votes
1answer
138 views

How to add the close button in SP.UI.Status

I use status bar to show exception message in code-behind. I wanna add a close button in the status bar for user, so they can remove the bar. Here is my code: protected virtual void ...
1
vote
0answers
292 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 ...
0
votes
1answer
336 views

Set SSRS Report Parameter Through JavaScript

I am running SSRS 2008 in SP2010. I want to set some report parameters through JavaScript. Is it possible if yes then how. Basically I read some values from the page itself and then set the report ...
2
votes
1answer
159 views

Sharepoint 2010 javascript client object model - downloading items and item attachments?

Is there a way, so that you can download the items from a list and all its item attachment files in one context call? Currently I am downloading all the items, then looping through each item, and ...
0
votes
0answers
46 views

Possible to load different things in context for sharepoint client object model code?

In my javascript (ecma/client object model) for sharepoint 2010, I am first making a request to get the current user name, then when that succeeds I then make another request to download items from a ...
3
votes
2answers
2k 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
435 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
350 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 ...
2
votes
2answers
694 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
349 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
1answer
197 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
34 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
2k 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
311 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 ...
3
votes
3answers
1k 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 ...
0
votes
1answer
23 views

Setting audiences in share point 2010

I have written html/css code to display the menus. Now i need to hide the multi level menus(links) using windows authentication. i mean we need to set the target audience for the links. But,. i do not ...
2
votes
2answers
273 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 = ...
1
vote
1answer
548 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
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: ...
3
votes
0answers
133 views

Gantt View and Javascript Events [closed]

I'm displaying a Gantt view in a page in like this: <Module Name="DefaultBlank" Url="" Path=""> <File Path="EmployeeWorkspacePages\default.aspx" Url="default.aspx" > ...
0
votes
1answer
247 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
69 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
262 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
438 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 ...
1
vote
1answer
177 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
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 ...
1
vote
2answers
385 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
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:'" ...
1
vote
0answers
48 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
94 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
164 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 ...