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
1answer
592 views

How to make web part with properties for Js Development only

I want to start development for SharePoint with JavaScript, but I am not sure if it provides the same flexibility as the server side development, for example I would like to make a web part with ...
1
vote
1answer
2k views

Promoted Links with different sizes in same Page

I have a complicated requirement in which I have to embed a promoted link with different sizes and styles in the same SharePoint page. Figure at the bottom illustrates what I am trying to achieve. ...
1
vote
1answer
6k views

How to get the managed metadata column value in a list client object model

I am trying to get values from a list for different columns like Title ,ID ,Region Where Region is a metadata column . I am able to get all the values except metadata column values . Pleas tell me ...
1
vote
1answer
141 views

Page with discussion board does not refresh after creating a new discussion within a modal dialog

I'm using the following code to allow users to create a new discussion topic in a modal dialog, rather than on a new page: // When called, this function opens the dialog. function openDialog(pUrl) { ...
1
vote
3answers
1k views

Get value of lookup field

I have a cascading lookup using two lists on my SharePoint 2010 site. I want to get the value of first selection made in the lookup and show/hide other fields on my custom form based on that first ...
1
vote
1answer
283 views

SP2010 Javascript Object Model: programmactially add calculated column to list

I am building lists and adding fields via the following. I am wondering if I can add a calculated field and how you set the formula in this (or another method): function onCreateRootCause() { var ...
1
vote
1answer
3k views

Retrieve Iist Item column values with column names on Item click, JavaScript

I need to retrieve List item column values with column names on item click. In SP2010, I have a XSL which calls the JavaScript. I have sent the list item id through the XSL into the JavaScript ...
1
vote
4answers
443 views

Is it possible to change Web Part attributes via CSS or XSLT?

I am working on a dynamic SharePoint design using DVWPs. I have a hidden DVWP which controls other webparts based on values in a list. I'm running into a slight snag, though. I need to know if it's ...
1
vote
3answers
3k views

How to set user in multi allow people picker control using javascript

I want set the value to the people picker control which is multi allowed. I have a code which assigns only single value to it, which is as below: $(document).ready(function () { ...
1
vote
1answer
2k views

How to save the webpage data as pdf using javascript

Using window.showmodaldialog(), populating HTML data as popup. We need the same populated data as PDF using JavaScript (Without using third party tools), how can we do this?
1
vote
2answers
2k views

How to update 'asynchronous update' enabled listview programatically using javascript

I'm have a page in which one custom visual webpart and one listview webpart. I've have some custom checkboxes and dropdowns in my visual webpart, I'm making an ajax request and when i select the ...
1
vote
1answer
1k views

SharePoint 2010 Modal Dialog on Page Load

I have created an application page that mimics an input form. This form will eventually go into an SP List with other forms. What I'm after is when a user clicks the link to the form from the SP ...
1
vote
2answers
620 views

How to include a 'yes' and 'no' button on the PreSaveAction() on the EditForm.aspx to return true/false accordingly?

I am simply looking to use the PreSaveAction() in a content editor web part as an extra cautionary step prior to saving a list item. Here is what I have: function PreSaveAction() { alert('Are ...
1
vote
1answer
401 views

CSS and js UX optimization for 2013 master page

I've been trying to optimize the user experience of a 2013 site that has an entirely custom responsive-design master page. So far, the only recommendation I've come up with is "Put your CSS links at ...
1
vote
4answers
13k views

How do I get the value of a SharePoint:FormField with javascript?

I have a form field: <SharePoint:FormField runat="server" id="ff2{$Pos}" ControlMode="New" FieldName="Number_x0020_1" ...
1
vote
3answers
2k views

SPO - /_vti_bin/lists.asmx returns Error 500

I am currently developing a news scroller/ticker in SharePoint Online (Office 365) and am using the follow script to access a list: var emptyResults = "<li>No current ...
1
vote
1answer
468 views

Can I add hide/show list to my Quick launch links

I have parent/child links hierarchy inside my Quick Launch links, but is there a way to be able to hide/show the child links, instead of always showing the child links? ::EDIT:: I have modified my ...
1
vote
1answer
7k views

The property or Field not initialized exception even I request explicitly

I'm using the following code to get the user permissions on a list item in javascript csom context = SP.ClientContext.get_current(); var field = ...
1
vote
1answer
209 views

Custom script not loading for user groups

I have a script that adds an RSS-button to my discussion list. This script is added to the masterpage (seattle.html) as a ScriptLink. If I or one of my colleagues who have full access to the ...
1
vote
2answers
632 views

Problem with jQuery Function for Expanding Grouped Lists

In my portal, I have a custom list that is using grouping. Now, I want to automatically expand all the groups, so I have mustered this javascript/jQuery function. I use a delaying function to load ...
1
vote
1answer
693 views

Column not found when creating list item with Javascript

I am making a SharePoint app with javascript. I am trying to add a list item to a list I have defined in Visual Studio. I have done this just by adding a list in the solution explorer, and I made ...
1
vote
1answer
8k 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 ...
1
vote
4answers
2k views

How to perform date validation in publishing page layout?

I have the following 2 datetime fields which are used in my custom page layout on my publishing site. Basically, when a user is editing the page I want to validate that the 'NewsLiveDate' < ...
1
vote
2answers
122 views

Reference to hidden CEWP

could you help me with the following problem. I have a html and java code drawing a table below a SharePoint list, in the table I place some calculation based on the list above and it works fine, ...
1
vote
1answer
150 views

I am confused about the Javascript Client Object Model and when it can be used

Is it only intended for use "inside" SharePoint? Using the .Net/C# client object model I can execute applications on my local machine and access a remote SharePoint server. I can only find examples ...
1
vote
1answer
432 views

Help using the client side object model with javascript and jquery, reading an item

So I usually only deal with server side code, and need some assistance. in c# i was able to just do something like, numStirng = listItem["fieldName"].toString(); num = Convert.ToInt(num); ...
1
vote
4answers
2k views

Modal popup error in sharepoint 2013

var options = { url: "http://siteUrl/_layouts/Page.aspx?ID=6", width: 800, height: 600, title: 'Attach File', }; ...
1
vote
1answer
228 views

Accessing page metadata properties via clientside API

Morning all, Can anyone advise if it's possible to access a document / web part page properties via the client/JSCript API for use elsewhere on the page. To put this in context, I've inherited a ...
1
vote
3answers
642 views

How to load page load javascript when update progress is over

How to load page load javascript when update progress is over. $(function() { // how to load this after update progress is over } Explanation My Grid inside update panel.. In Grid some of ...
1
vote
1answer
132 views

Site Template with Custom Pages: css, javascript?

If I create some custom pages that include custom html, css and jquery and this page exists within a site that is used as a site template, will that cause issues? From my limited experience with this ...
1
vote
1answer
844 views

How to deploy custom context menu item?

I made a custom SharePoint application page and now I want to open it from edit control block (item context menu). My XML won't compile because it is telling me that I have illegal characters in the ...
1
vote
1answer
2k views

How to get files count from particular library?

I'm using Sharepoint 2007 and unfortunately don't have any ways to server site scripting, no C# or PowerShell. Is there any way to get total number of files in a given Library using SPServices ? It ...
1
vote
1answer
1k views

How to upload image file into the SharePoint 2010 picture library using javascript

I need to upload image file to SharePoint 2010 picture library using javascript. The requirement is: We have File Upload control Ee have to upload image file from that file upload control My code ...
1
vote
1answer
2k views

Get web part Id with javascript client OM

Do you know how to get the current web part Id with the javascript client OM API ? Or an idea for a work-around ? Thanks
1
vote
3answers
3k views

List view loses focus when additional webpart added to page

I have a list page to which I need to add an additional webpart (in this case, a more powerful filter). However, the ribbon doesn't appear because the listview does not have focus. This is easily ...
1
vote
1answer
2k views

JavaScript in CEWP does not execute

After putting a small script together and pasting it into the Content Editor Web part all my breakpoints show the following warning in IE 8's debugger: "The breakpoint is not valid. No executable code ...
1
vote
1answer
2k views

Access ListItem.Properties from Javascript COM

Is there a possibility to access the ListItem.Properties from the Javascript COM? All I'm seeing is the possibility to read all Fields. There also is the funny [SP.ListItem.LoadExpandoFields()][1], ...
1
vote
4answers
1k views

Single line of text field validation in Sharepoint 2010 list

I have single line of text field in a Sharepoint 2010 list. I need to validate the particular field. The user will enter the number by starting with I or F. How do I validate the field if the user ...
1
vote
2answers
579 views

Pushing data from a classic ASP site to SharePoint

We have a publicly facing classic ASP site and I need to capture some data from that site and push it to SharePoint and vice versa. There are a few options as far as I know; Writing a custom web ...
1
vote
3answers
2k views

disabled dropdown has value reset

I have a dropdown in an edit form that is disabled via jquery/javascript. When I go in and edit an item/record, save it, and reopen it, the selected value in the dropdown gets reset to its default ...
1
vote
1answer
973 views

Opening a webpart from a separate page in modal form

I am an IT schoolboy who is on an 8 month apprenticeship. I have been charged with creating a little sharepoint site for our tiny group in the company I am working at. I have site collection (is that ...
1
vote
1answer
75 views

Javascript: How can I tell if the page is being customized (and not personalized)?

How do I know if the page is in Edit Mode from JavaScript? tells me how to know if a page is in Design mode. I need to distinguish between the two design modes: customizing vs personalizing. How can ...
1
vote
1answer
1k views

Anyone know how to upload files into a Sharepoint Library using javascript and the SOAP API in SP 2010?

I am writing custom forms in javascript. I do not have access to visual studio. I need to be able to upload a file into a document library with meta data. I've been playing around with the Copy.asmx ...
1
vote
2answers
2k views

Displaying the item version history programmatically using Javascript

I have a SharePoint 2007 list that have version history enabled. I am interested to know how do I view the version history of a item using Javascript (or JQuery).
1
vote
2answers
162 views

Tooltips on check boxes

I have a CheckBoxList , I want to assign tooltip to all the checkboxes. How is it possible? I cannot find any property associated with this. <asp:CheckBoxList ID="XYZ" RepeatColumns="3" ...
1
vote
4answers
175 views

Showing url images in webpart

I need to display the images of the url typed in a custom webpart . i.e if i type url name (www.google.com) , atomatically it should display the small logo of google in webpart .Anyone with this idea ...
1
vote
1answer
3k views

Script Manager in SharePoint pages

I am working on some mobile web parts and have got into a problem. My issue is that I have a custom web part which is a mobile web part. I have got everything working and I can see the web part in ...
1
vote
1answer
208 views

Guidelines for rich UI?

Edit : actually, my current task is focused on the refactor of a webpart, but the question is in fact a general question : what are guidelines for "cool" SP UI. /Edit I have to maintain a set of ...
1
vote
3answers
6k views

Auto populating columns within a list?

First time user & poster here. A friend recommended me to this site for a question I have in relation to populating columns within a list. Hopefully I can explain it properly and someone could ...
1
vote
3answers
2k views

Adding item to list view context menu

SharePoint 2010 question here. I have a document library with a number of documents, and I want to add an entry to the list item context menu (the dropdown menu that contains the "View ...