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
1k views

Insert html in formula field of a calculated column in sharepoint 2007 using javascript [duplicate]

Possible Duplicate: how to show HTML code in column? Is it possible to insert html/code in the formula field of a calculated column in sharepoint 2007 using javascript?
1
vote
2answers
669 views

Get id's of tags that are in a web part in Javascript

Ok, I have a page that that has a DataFormWebPart that basically displays the info from a document library. Now what I want to do is, using jquery, display or hide a section in the web part. I can do ...
1
vote
1answer
183 views

Inserting ordered or unordered lists in custom rich text editor breaks the dom

I have a div that is part of a custom web part. Once a user clicks an edit-button I want the div to turn into a rich text field to allow the user to edit the contents as they would edit any rich text ...
1
vote
3answers
4k views

How to get Item name and extension from itemID and listID in javascript client object model

in my custom page i receive two parameters - a list ID of a list and an Item ID of an item inside said list. So i write this: function getfileName() { var clientContext = ...
1
vote
1answer
465 views

How to get a full name from a User Lookup Field using ECMA CSOM

How do you get a user's full name using the ECMAScript (JavaScript) CSOM?
0
votes
1answer
506 views

Set defaul value for DVWP parameters programmatically

Good day I need to set default value for ParameterBinding of DVWP as follows: <ParameterBinding Name="StartDate" Location="Postback;Connection;" DefaultValue="2012-07-01T00:00:00Z"/> ...
4
votes
4answers
6k views

Multiple Values in CAML query from Array? SharePoint 2010 using jQuery/SPServices

So if I use SPServices to GetListItems with CAMLQuery, is it possible to insert multiple values inside Value Type='Number'> here I would like to evaluate things throught a flow in my page, add to an ...
6
votes
3answers
6k views

How to Use ECMA CSOM to Set a Field of Type SPFieldUserValue

I have a JavaScript array containing the string representation of some usernames (domain\username format). Using the JavaScript CSOM, what is the best way to create a new item and add those usernames ...
0
votes
3answers
409 views

Overriding complicated javascript function

I have a some default SharePoint complicated javascript function and I'm not sure how to override it, replace it. In gerenal i know how to replace the functions, so that your implementation is called ...
0
votes
0answers
257 views

injected javascript code in a basic webpart

I have a working solution according to below, but I want a dynamic link which is created in Createchildcontrols and included as an arguement in the function newitem but I get an JavaScript error on ...
1
vote
3answers
2k views

JS files returning Cached (Old) Versions Despite Update

We are currently in the wild throes of a migration from SP 2007 to SP 2010. I'm attempting to move some custom JavaScript Validation from the current production site to our staging site. My ...
0
votes
2answers
478 views

Reference InfoPath field in edit.aspx InfoPath web part

I have a colleague I'm trying to help. He has a list on a SharePoint site. He modified said list's web part with InfoPath. Upon creating a new item, the item is saved as well as emailed to a 3rd party ...
0
votes
0answers
85 views

SharePoint 2010 Motools JavaScript incompatibility

I created a JavaScript Slideshow base on Slideshow2 using Mootools. It works great stand-alone. I decided to incorporate it into my SharePoint 2010 Master Page and at first glance it was working ...
1
vote
4answers
6k views

How to use javascript client object model in sharepoint designer?

I have to fetch data using javascript client object model and for that i have to use Sharepoint Designer 2010 only i have searched on google and there i got solution only by adding code in visual web ...
2
votes
1answer
1k views

Rich text editor fails when pasting in IE 8 and 9 error 800a025e

We have a solution with a lot of customization. At some point something was added that breaks the rich text editor because now I cannot paste from clipboard using either Ctrl+V or the "Paste" ribbon ...
1
vote
1answer
122 views

Web Part JS ToggleMe not running

I want to add toggled visible / invisible divs to a SharePoint wiki page, and put the function for the toggling in a web part. My toggling script works fine testing outside of SharePoint, but inside ...
0
votes
1answer
293 views

Modal Dialog unexpected redirect

I follow these steps: 1) Open file permissions page in modal dialog clicking "Document Permissions" button on the Ribbon menu. The next page is opened: 2) Then I click "Modify" -> "Edit User ...
1
vote
1answer
533 views

javascript/jquery to create a document set

i have seen several SOM examples online for programmatically creating a document set, but I would need to accomplish this with javascript/jquery if possible. Is this possible, and if so how is it done ...
3
votes
3answers
6k views

Create SP People Picker on the client-side

I would like to know if there is a way to generate a SharePoint 2010 People picker control just with JavaScript. Imagine that I am doing a Windows 8 App, I would like to create that control ...
3
votes
1answer
7k views

How to retrieve all items from a list (with custom fields) by javascript object model

I need to get all my custom fields from my list by Javascript Object Model.. The code I wrote down is this: var items; $(document).ready(function () { ...
0
votes
2answers
284 views

Overriding function in imglib.js

My question is regarding a default SharePoint imglib script. The script is located in following folder: 14\TEMPLATE\LAYOUTS\1033\imglib.js The script has a function called: GenerateFooterContent(f, ...
1
vote
1answer
1k views

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

I need to upload image file into the sharepoint 2010 picture library using java script... requirement is -- we have File Upload control And, we have to upload image file from that file upload ...
1
vote
1answer
1k 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
0
votes
0answers
215 views

XSLTListViewWP: filter results based on javascript variable/other control on page?

I have some custom html/jquery form stuff on a page, and I would like to update a LVWP on another part of the page if a user adds something. So for example, the list view web part just shows items on ...
1
vote
1answer
495 views

Clear Multiselect Lookup

I am trying to add a button for my users to clear a multiselect lookup value using JQuery or Javascript. I have found some information about setting a default value on a single select lookup, but ...
0
votes
2answers
345 views

Notify item update by JavaScript

I created a popup window that updated the metadata information of my item. When the operation of updating is complete I would like to close my popup and show the notify alert. I succeed to close the ...
2
votes
1answer
2k views

dataform webpart button redirect new ID after saving

I have two DataFormWebparts on a page, one for creating new objects, one to edit them. The Webpart that creates them has this button : <input type="button" value="Save" name="btnSave0" ...
0
votes
2answers
577 views

OpenPopUpPage and external Links

Is there any workaround to allow the javascript:OpenPopUpPage(SomeExternalSiteUrl) works for external links, when I tried it it gave me Webpage Can not be found
1
vote
1answer
263 views

Javascript editor (tinymce) in sharepoint online (office 365)

I'm trying to add a editor on my EditForm.aspx. I'm using Tinymce for this. Importing works fine. Also adding it to a textarea. But when I click a button in this editor, and a popup SHOULD appear with ...
1
vote
4answers
2k views

How do I display HTML on a Sharepoint List?

I am trying to inject HTML into a Custom List schema. Essentially I am injecting a button that would go next to every document in a document library. Is this possible to do without having to build a ...
0
votes
1answer
3k views

How To Use Javascript to Get Field Value From Another List?

Salvete! How do I use javascript to fetch a value from a custom list that is not loaded in the browser? This post seems relevant, but it fetches values from a list that is loaded. From that post, ...
0
votes
1answer
608 views

AllItems View of Query String: can I group using value in query string?

Can I somehow how a query string to show a group of documents within a given library. Not one single item, but the AllItems like view. So within the library I have a grouping type of id value in a ...
0
votes
1answer
374 views

Modifying new/edit item form to add ECMA script on save click

I have a requirement of doing some complex calculations based on the multi lookup values selected in the form while creating an item. I can't use a calculated column nor SharePoint designer as they ...
3
votes
3answers
1k views

ECMA script - retrieving SPList property bag

I have added a property bag to SPList. Since the SPList doesn't support property bag, I have added my custom property to SPList.RootFolder.Properties. I would like to retrieve this property using ECMA ...
2
votes
2answers
213 views

Changes in SharePoint Online (Office 365)

I have an idea to solve a problem by adding jQuery/javascript to a aspx page (in this case the DispForm.aspx) But I thought I've heard that SharePoint Online installs automatically updates. Can this ...
3
votes
1answer
1k views

Can I Access the SPAuditQuery from the JavaScript Class Library?

Or there's a SP2010 Built-in service to access Audit data? [UPDATE] Quick awnser, No, there's no way to access the SPAuditQuery from the SP JavaScript Class Library. At the end I end up using a WCF ...
0
votes
1answer
264 views

XSLT/Webpart View in Custom Javascript text file?

So this may be silly but I want to ask anyway, if I am using the text file approach (markup and javascript within text files that a CEWP references), is it possible to add mark up or script that would ...
0
votes
2answers
765 views

Send Paramets from HTML form to DVWP via javascript

Good day! I have a DVWP. DVWP has parameters as query string "StartDate" and "DateEnd" and filters on datefield "Date" by parameters "StartDate" and "EndDate". Also I have form on the page with ...
2
votes
3answers
574 views

Javascript API for formatting dates in 2013

I've noticed that SharePoint 2013 uses past tense time periods for a lot of it's date formatting. eg A few seconds ago Yesterday at 3:00pm 5 days ago etc. Is there a JavaScript method available ...
2
votes
1answer
114 views

Stopping users from using the “newitem” and “edititem” forms

I have a series of pages that use the javascript object model to interact with information stored in lists (this supports sort of an application behaviour but not quite, but I can't complain it's the ...
2
votes
2answers
4k views

Sharepoint 2013. Add JS to NewForm.aspx of a list

how to place JS-code to NewForm.aspx of a list in SharePoint 2013 APP. In sharepoint 2010 we can use this list definition to add JS: <List ...> <MetaData> ... <Form ...
1
vote
0answers
430 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
2answers
2k views

Problems adding javascript to newform.aspx

I am having problems adding a Javascript snippet to my newform2.aspx in SharePoint Designer. I have read several submissions that state to just add it below the PlaceHolderMain in the form. But this ...
2
votes
2answers
4k views

How to access the documents in using javascript in SharePoint 2013 Preview?

I try to get familiar with with the Javascript API of SharePoint 2013 (Preview). Therefore I started a SharePoint-hosted app using VS2012. The default app works just great after deploying to my local ...
0
votes
1answer
467 views

getItemById javascript error

I'm creating a custom form and am trying to add a button to the form, and have functionality when its clicked. I don't really have much experience with javascript, so if there is a better approach to ...
5
votes
5answers
22k views

How to get current user with javascript?

I have a list . I want select items of list with a special quary.(get items that created with current user). Then get count of items. I use this code for get current user : function Initialize() { ...
8
votes
1answer
290 views

What does ULSxSy:; do in SharePoint JS files?

So I was going through init.js and sp.js and found out that nearly all of the SharePoint OOB JS functions start with the following line: "ULSxSy:;" For example: function ctxInitItemState(ctxCur) ...
1
vote
2answers
392 views

javascript method to delete content from recycle bin of a single site only

So I know you can use jvascript:emptyItems() in the address bar of the recycle bin to clear it, but this clears the entire site collection. Is there a way using javascript to empty the recycle bin ...
0
votes
3answers
711 views

Why don't update a choice column with javascript?

I have a list . I want update special item of it with javascript. I created a js file and add this code to it : var context = new SP.ClientContext.get_current(); var web = context.get_web(); var ...
1
vote
2answers
2k 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 ...