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

Edit Items in DVWP using ECMAscript from CEWP

Is it possible to edit items in a dataview webpart using javascript from a content editor webpart on the same page. What methods would I use? What I want to do is manipulate certain columns in a list ...
0
votes
2answers
75 views

I am trying to display data that is typed in textbox ,but it gets displayed when the page is loading but disappears after page loads why?

I am making an app using SharePoint 2013 in which user inputs some text in TextBox, and that text I want to display in button click but that's not happening completely the text gets displayed when the ...
0
votes
1answer
46 views

How to display list item name instead of title of ModalDialogPopup confirmation box?

I created modalDialogPopup confirmation box with sharpoint object model. I want to display list item name instead of please confirm(title). See following code: var options = { html: ...
0
votes
1answer
30 views

Sharepoint Hosted App, Javascript and Permissions

I've deployed a sharepoint hosted app with custom javascript. When I access my devsite with administrator I can use my app. When accessing with another user the js-files aren't loaded in my apppart. ...
0
votes
4answers
727 views

Retrieve List Items Using JavaScript gives unexpected response from server

I'm extremely new to SharePoint and was recently experimenting with the client side object model. I've used one of MSDNS examples. however, I seem to be getting this error response : "request ...
0
votes
3answers
410 views

Use CAML query based on ID to retrieve a file name?

With jquery and spservices, I use getSelectedItems to retrieve the IDs of a few documents. Can I have a loop which goes through a caml query for each of those IDs to retrieve the file name ...
0
votes
3answers
420 views

count items in a list javascript CSOM [duplicate]

I am wanting to count the number of items in my list. Using CSOM in javascript I have tried it but my code doesn't work. Where am I going wrong. Here is my code: var clientContext = new ...
0
votes
2answers
218 views

JS/JQuery Connect to SQL Server

Right now i am modeling a ClientWebPart outside of the SharePoint server. Although, i advised the client to let me on the server to do Code Behind connection, they said not right now. Server might ...
0
votes
1answer
96 views

How to include built in JS files

I'm attempting to follow the instructions from this post. I've added the Sharepoint links to call the JS files however it seems that they are not included by viewing network activity in my broswer. ...
0
votes
1answer
130 views

Proper way to check for failed SPServices call?

I'm running a SharePoint method with SPServices that should copy several items. I just noticed that the return value is "Success" even when I've specified an invalid location and nothing has actually ...
0
votes
1answer
61 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 ...
0
votes
1answer
65 views

two drop-down side by side

I want to show two drop-downs for Day and Month in SharePoint OOTB form in one row (side by side).
0
votes
1answer
78 views

JSOM function get_isSiteAdmin() is always false

I'm trying to get the property "IsSiteAdmin" from a user object in Javascript JSOM. The app I am programming needs to be able to distinguish normal users from Administrators. function ...
0
votes
2answers
381 views

How to cast a date column value in JSLink javascript, and how to increase this date variable?

I am using sharepoint 2013 online. I have created a custom list. On this list I have used JSLink to show an icon in a column. I would like to do some logic to show a red or a green icon. I have now in ...
0
votes
1answer
54 views

want to place my button image to specific place in DispForm ribbon by using sequence number?

Currently Im working on sharepoint designer 2010 DidpForm.aspx page. By using this I have placed one delete button(red colored image shown below) logo on ribbon. I given sequence no 11 so it is ...
0
votes
1answer
35 views

Error when i parse string object to json object [closed]

Hi I'm trying to parse my string to a json object, it wont work, I get a error when I debug the code, Syntax error, here is my variable I want to parse, var myyVar = "{title: 'myTitle',root: ...
0
votes
2answers
663 views

How to deploy a custom JavaScript file to Style Library from SharePoint Apps?

I want to do some java-script operation on a custom list in SharePoint 2013 Online version. So I am creating a separate java-script file and deploying to Style Library manually. Does anybody know how ...
0
votes
1answer
342 views

Using a redirect URL parameter in WebForm_PostBackOptions

I have a custom list form in SharePoint Online 2013 which after validating using the PreSave() function displays a modal dialog giving the user a choice of two outcomes. This works fine and the user ...
0
votes
1answer
73 views

Querying SharePoint search for all departments with REST API

I currently have an ajax request set up in my javascript to call the search API but this only gives me departments matching whatever I input for query: $.ajax( { url: ...
0
votes
1answer
2k 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 ...
0
votes
1answer
56 views

Run script on quicklinks on every page

On our sharepoint there is a serverside issue that morphes links into invalid values. I am able to correct that error clientside using javascript and ive been able to do so on the main page ...
0
votes
1answer
545 views

SharePoint 2013. JSLink (CSR) for field Type=“User” on EditForm

How to create custorm render for field type="User" on EditForm? I need to replace standart peoplePicker control with my custom render. Code below work without exeptions, but don't set 'Sponsor' ...
0
votes
2answers
1k views

Get Icon URL and filename of document library file using JSOM in office 365 app

I have an app that includes a Document Library...using my normal code to display the list but keep getting a null on the field...i've tried rptDocsListItem1.get_item("xd_ProgID") and ...
0
votes
1answer
246 views

Javascript in CEWP on EditForm.aspx not kicking off in Chrome

In our SharePoint 2010 Enterprise environment I tried adding Javascript into a Content Editor Web Part on a custom List's EditForm.aspx page, and for some reason the code only runs when the form is in ...
0
votes
1answer
248 views

Call JavaScript function on Page Render in o365

I'm trying to add some JavaScript code to my o365 site which should be called everytime when the site is rendered and all the needed objects are initialized. So far I got to this, but still it doesn't ...
0
votes
2answers
412 views

Start Workflow programmatically

We work with an Doc Library which receives the files via E-Mail. This works great, but now we want to change the filename via workflow. The problem in this situation is that the workflow doesn't start ...
0
votes
1answer
2k views

Programming to retrieve list items in a SharePoint list using Javascript

I have requirement which is Retrieve List Items in a List(list created through OOB) Display those list items on the sharepoint site by binding to repeator control Using javascript and client object ...
0
votes
2answers
183 views

Ribbon Button activating when a field in the Document / List item metadata = 'Yes'

Im hoping this is an easy answer as Im sure it must be, but my mind has gone blank! Basically I have created a button to run some javascript code to fire a custom (manual) workflow on an item that is ...
0
votes
3answers
450 views

Populate dropdownlist with only active and checked in vehicles using javascript

I'm not sure if this can be done or not but I'm creating a vehicle reservation site and need to populate a dropdownlist with only cars that are both active and not requested for the same period of the ...
0
votes
2answers
926 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 () { ...
0
votes
3answers
165 views

Show progress indicator until last row has loaded into DVWP

I have designed a DVWP in SharePoint Designer 2010 that shows multiple items from a library (let's say it shows 1000 items for example) grouped by category. What I would like to do is show a loader ...
0
votes
1answer
160 views

Display Form Text Inaccessible via JS

I'm overriding the Display Form of a list as per Mark Rackley's blog post: http://www.sharepointhillbilly.com/Lists/Posts/Post.aspx?ID=47 For this particular list, I need to parse a text field, split ...
0
votes
1answer
79 views

Additional page head delegates with 2 scripts

I have a question regarding the additional page head delegate control. Basically this delegate controls helps to register some scripts in my case. But i have 2 different additional page head delegate ...
0
votes
2answers
506 views

How to store the value into the xslt variable returned from Javascript function?

I have created a template in ItemStyle.xsl for CQWP. I want to store the xsl variable value that is returned from javascript: My template is: <xsl:template name="DepartmentsTemplate" ...
0
votes
2answers
384 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 ...
0
votes
1answer
757 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 ...
0
votes
1answer
108 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
2answers
70 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= " ...
0
votes
2answers
522 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 ...
0
votes
1answer
52 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 ...
0
votes
1answer
418 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
2answers
149 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
1answer
135 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
123 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
1answer
836 views

Unable to pass xslt variable in the javascript function

I have added an icon before the image title in asset library. I want to pass the name of the current logged in user and the image title in the JavaScript function to add it in other custom list. My ...
0
votes
2answers
75 views

How to change the Ribbon.calender colour from green to blue

Blue is our official colour, and the higher management mentioned that all the colours should be blue. So for my Ribbon Calendar the upper boarder will be green as follow:- So is there a way to ...
0
votes
1answer
224 views

Openning two javascript:OpenPopUpPage dialogs at the sametime

I have added a script editor inside my team site, that contains two links to show pop-ups dialogs as follow:- <li unselectable="on"><a ...
0
votes
2answers
95 views

Client Side Object model code goes in onFailure function

I am using the client side object model to approve multiple items from the form library. I need to access the values of some of the columns of the form library. The following is my code: var ...
0
votes
1answer
155 views

Editing SPO 2013 Master Pages - no effect and where do you place javascript code block?

I'm trying to add a jQueryt block to oslo master page on spo 2013. check out, make changes and save, but no apparent impact. Am I placing javascript in the wrong place? do I need to do any additional ...
0
votes
4answers
3k views

Referncing a java script inside my master page will not fire

I have added the following to my seatle.master page inside my SharePoint server 2013 :- <SharePoint:ScriptLink language="javascript" name="custom.js" OnDemand="true" runat="server" ...