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)

2
votes
1answer
74 views

Where to find Sharepoint 2010 javascript api

I recently need to do some customization with the Sharepoint's rich text editor. When I looked the Javascript Class Library provided by MSDN, I found it very general also missing some namespace like ...
0
votes
2answers
407 views

getElementById javascript in a cewp

Please bear with me as I am still learning sharepoint and web technologies in general. I have put a rotator on my sharepoint page using the easy to use script generated by ...
1
vote
2answers
666 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 ...
0
votes
1answer
805 views

Using REST API to get Site Groups in SP 2013

I'm trying to use the REST API in SharePoint 2013 to get the site groups. I've been using this link for a little help... http://msdn.microsoft.com/en-us/library/jj245927.aspx It's to do it with the ...
9
votes
4answers
2k views

SharePoint 2013 hide elements (in body area ) when ribbon is expanded / ribbon is in use

Is there a css class/id in SharePoint 2013 that hide elements when the ribbon is in use? I've got some elements that I don't want to show when the user's in edit mode! In the picture below you can ...
0
votes
1answer
119 views

Sending video URL from a web part to media web part created dynamically?

Here is a simple scenario I need to send a video URL from one page to another. The page from where the URL comes is a web part and it will display a set of video previews, on click of which a new ...
0
votes
0answers
36 views

Script File and Calculated Column Format/Data Types

This may be a bit of a best practices question, but today I made a few changes to the site/lists I'm developing to facilitate development and data rendering. In CEWPs I've begun using .aspx files ...
0
votes
2answers
74 views

email page hyperlink on sharepoint page

Hi I am trying create a email link on sharepoint page i wrote forllowing script function emailstory() { mail_str = "mailto:?subject=" + document.title; mail_str += "&body= " ...
2
votes
0answers
223 views

SharePoint and Javascript - Get content types for list

I have been using the JSOM with SharePoint 2013 and am trying to get the content types of a list to iterate through, and am having no luck. First, while the success handler is being reached, the ...
0
votes
0answers
124 views

Trying to get all selected items from a list

Im trying to get all items selected in a list but unable to do so with the code below: getItem = new TextBox(); getItem.Text = "get item"; getItem.Attributes.Add("onkeyup", ...
0
votes
1answer
40 views

Is it possible to add JavaScript to the host web from an app?

Is it possible from a SharePoint-hosted app to add some JavaScript hosted on an external CDN to every page in a site (host web) without having to use a custom master page? If not, is this something ...
1
vote
0answers
120 views

Can I change the display name of column in a listview using JSlink

I've a requirement to change the display name of a column in only one view, I've to show 'Responsible' instead of 'Responsible Person'. Is this possible by JSlink ?
1
vote
3answers
4k views

How to authenticate user in sharepoint online using javascript

I have one sharepoint online 365 site. In that one public site will be there. In that there is sign-in option. Generally When ever user clicks on signin it will redirect to microsoft login page. But i ...
0
votes
1answer
159 views

JavaScript OM to Approve Designer Workflow Task

I have a SharePoint Designer 2010 approval workflow and I am attempting to approve the tasks via JavaScript Client Object Model. I am able to change all of the fields to "Completed"/"Approved" but the ...
0
votes
0answers
38 views

Sharepoint List entry

I have a requirement where I need to enter a SharePoint list with hyperlinks but I want those links to open in new tab. I entered the following script: ...
0
votes
2answers
571 views

Open in a new window a document stored in SharePoint in C#

My problem is simple. From an aspx page, I need to open in a new window a document stored in Sharepoint. To access the document in SharePoint I need to provide credentials. To open the document in a ...
1
vote
1answer
597 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
0answers
405 views

How to get the return value of an on demand executed function?

I have a script file MyScript.js in the folder TEMPLATES\LAYOUTS\MyProject\Scripts which looks like this: var MyCompany = window.MyComapny || {}; MyComany.MyProject = MyComany.MyProject || {}; ...
1
vote
0answers
242 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 ...
0
votes
0answers
217 views

How to add and delete items in SP list using multi select box?

My question is that I am using a multi select list box to insert selected data to sharepoint list and I am using ecmascript object model. <select id="dd" multiple="multiple"></select> ...
0
votes
0answers
225 views

Modal Dialogue for List Edit Form

Working to create a link to a modal dialogue box which contains the edit page for a list item. Background: I'm using SPServices to query a custom list, and render the data in a HTML table formatted ...
2
votes
1answer
432 views

Run JavaScript after “group by” in list has been clicked on and list data loaded

I have created a JavaScript function to take a url from a list item and turn it into an image. This function works great on a list that doesn't have group by setup. With this script the images will ...
1
vote
2answers
299 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
291 views

Load page error when I use ScriptLink in the page head

Here is the beginning of my custom SharePoint Application Page: <%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %> <%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, ...
0
votes
1answer
69 views

SharePoint List add comments as formatted text

I'm not sure if this is even possible but thought someone must have done something similar. What I'm looking for is the ability for a user to enter a "comment" and that comment populate another field ...
1
vote
0answers
477 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
2answers
3k views

SharePoint COM - SP.ClientContext(siteUrl) - Object doesn't support this action

Using the SharePoint COM to update a list item, but my function is failing. function updateProjectEC(projID, totalEC) { if(totalEC !== 0) { console.log("projID: " + projID); ...
1
vote
1answer
430 views

Get values from one list where a value is present in another list

I have 2 lists with a parent child relationship. List A ID Title ---------------- 1 First 2 Second 3 Third List B ID Title List A Lookup ---------------------------- 1 ...
1
vote
0answers
157 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 ...
2
votes
2answers
97 views

Can you set a JavaScript to execute periodically?

Relatively new to SP, and can't seem to find anything definitive on whether a JavaScript function can be set to execute daily, or at some other period. Currently have a utility function page with ...
0
votes
1answer
55 views

My IE developer tool indicates that my Community site (Discussion forum) page have received 5.56 MB when clearing the browser cache

I have built a community site inside my SharePoint 2013 server. and on the discussion forum home page , I have captured the network for the page using IE developer tool. and it shows that it have ...
1
vote
1answer
87 views

Should I use ECMAScript from within a user control or visual web part?

It seems to me that I could use ECMAScript from within a user control or a visual web part, but which is the more efficient in terms of resource use, speed etc?
1
vote
3answers
418 views

Using javascript to apply “noindex” to get SharePoint to avoid crawling certain content

I have a problem with navigation elements being crawled on our SharePoint site. These elements come from a custom control that's used for building the site navigation, so the output is just html that ...
3
votes
2answers
373 views

Creating a SharePoint Wiki Page via JavaScript and REST or CSOM

I'm fairly new to developing SharePoint 2013 Apps, and I was tasked to customize the Create New Wiki Page for a Site. The user has to type in the Title, I do some processing, and then when everything ...
0
votes
1answer
445 views

Execute javascript function after all async postbacks

Just upgraded to SP2013. I have some javascript functions that need to be run after every (I'm assuming) async postback i.e. when a view is filtered or paged, so I can modify content in the view. ...
0
votes
1answer
168 views

Mega-menu tab on multiple site collections

I would like to create a tab in SharePoint 2007 that is a mega menu. This mega menu tab will be implemented on multiple site collections. It will be a part of the global navigation in each site ...
1
vote
1answer
227 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 ...
0
votes
1answer
418 views

SharePoint Apps Getting the GUID of App-Provisioned List using JavaScript and CSOM

I'm a Sharepoint App beginner. I have a SharePoint 2013 App that provisions List. How can I get the GUID of those list using CSOM and JavaScript? Here's what I got so far: var lists; ...
1
vote
1answer
1k views

How to get file or list item icon in SharePoint 2013 using javascript

My requirement is i have to display files from document library with images using javascript object model or spservices. pls let me now is there a way.
0
votes
2answers
155 views

Access DVWP z:row with Javascript [duplicate]

I need to loop through the z:row of a Data View Web Part on the client using JavaScript to push to an array and then use the JavaScript CSOM to create a new list item in an existing list. var ...
0
votes
0answers
99 views

Trying to get list of groups a user belongs to

I came across this post showing how to create a permissions management webPart using SPServices. I tried to do it in SP2010 but keep getting error " User not found". I think it has something to do ...
1
vote
1answer
603 views

SPServices Autocomplete and dynamic CAML query

I have two Text filter web parts (Project and Customer Name) with Apply Filters button for one list. There is a SPServices.SPAutocomplete on each and it works great. Now, I want to show the values in ...
0
votes
1answer
142 views

Calender and Date picker will overlap when i re-size my browser

I have the following components inside my App part ; a calendar and a date picker (i have moved the datePicket to be in the left side of the screen instead of being on the right side):- And I set ...
0
votes
1answer
387 views

Forcing showModalDialog() when an item is clicked from a web part links list

We have a web part on a page that refers to a simple list with two fields: Title and URl. Obviously, this list is used by the end user to show links to various items (google, etc) on the web part in ...
0
votes
4answers
3k 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
0answers
120 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 ...
0
votes
1answer
461 views

SP Online - Code blocks are not allowed in this file

I have built a selection of ASP.net controls on my default.aspx page. I am using the following line of javascript to try and get the value of an ASP control. var imgUrl = ...
0
votes
1answer
125 views

Sharepoint 2010 Javascript Client OM, get user data (not current user) via javascript object model

There are plenty of examples of getting the current user via javascript object model in SharePoint 2010, but I am looking for help with getting any users email/title when I have the loginName. There ...
0
votes
0answers
115 views

consuming WCF web service from client side in SharePoint 2010 Visual Web Part Sandbox Solution

I have a visual web part Sandbox solution. I need to attach an external WCF web service in order to submit data to database using the custom form I have created. Is there a way I can attach web ...
0
votes
1answer
660 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 ...