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
129 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
315 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
611 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 ...
4
votes
3answers
7k 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
10k 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
337 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 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
0
votes
0answers
228 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
573 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
353 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
3k 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
597 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
313 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
3k 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
726 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
533 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
2k 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
241 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
2k 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
285 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
842 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
633 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
117 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
6k 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
481 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
3k 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 ...
3
votes
2answers
5k 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
509 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 ...
8
votes
5answers
27k 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
306 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
488 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
854 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
3answers
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 ...
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 ...
3
votes
6answers
12k views

SP.UI.ModalDialog.RefreshPage from the dialog itself?

I have customized the display form on one of my list. On a webpart page, I have drop a view to this list. When I click on the title of my item, the custom disp form is shown as expected in a modal ...
1
vote
2answers
758 views

How do I create dynamic infographics in SharePoint?

I'm looking to add a dynamic infographic with the ability to update it using a SharePoint data library or list. Has anyone accomplished this (that is easy or quickly updatable). For example, I want ...
1
vote
1answer
268 views

grabbing a column from a list

I'm having an issue when I'm trying to grab a column I made in the tasks list (it's a lookup column). for some reason when i'm try to access it with javascript i always get an exception that it isn't ...
1
vote
2answers
3k views

How can i get ModalDialog.args in aspx-page codebehind?

I have a button, that opens Modal Dialog using SP.UI.ModalDialog.showModalDialog(options) Options contains field "args". I can read this "args" using window.frameElement.dialogArgs in javascript code ...
-3
votes
1answer
111 views

What JQuery effect is this? [closed]

I found this really nice effect on this website: http://www.engadget.com/ Please take a look at the IE advertisements on the top and the right side of the page. It seems like some kind of elastic ...
0
votes
0answers
67 views

How to extent the logout time when doc is opened for edit/view sharepoint site?

I have custom javascript to logout the sharepoint page after 30 minutes. Now the problem is, if i have opened any document from shared document to edit/view. then also sharepoint site got logged out ...
0
votes
2answers
171 views

Block Page while doing some actions

I have to block page, while system doing some action For example, user clicks on a button, system start doing some long action and when it finishes page will refresh. I think it will be OK, if while ...
0
votes
1answer
1k views

Is it possible to run a workflow on all items using either workflow or plain javascript code?

Let say I have a forms library with a workflow (let's call it 'A') that is attached to it. I have configure that the workflow can be manually run. So, is it possible to create another workflow (let's ...
0
votes
3answers
2k views

JavaScript window.location doesn't work in content editor webpart

my issue is, that the following script with its window.location function doesn't work in a sharepoint content editor webpart. I've tested it as a standalone and it worked fine, but as soon I inserted ...
0
votes
1answer
1k views

What are the BCS/External List Limitations for ECMA CSOM?

I cannot seem to find any documentation on this topic. Are there any limitations for what I can or cannot do with the JavaScript CSOM in SharePoint Server Standard 2010 External Lists as compared to ...
2
votes
2answers
902 views

Created a custom image uploader for the Rich Text Editor, but how do I insert the image?

Some background: I have created a custom image uploader for my rich text editor. I feel like I have taken the functionality most of the way, currently it can: Upload the image to another server ...
1
vote
0answers
345 views

Load full list XML into JavaScript variable via CEWP

Currently I am using the lists.asmx webservice to POST a soap envelope and return specific list items. I really want the whole contents of the list. I realize how large that might get, but if this ...
0
votes
1answer
626 views

How to access a javascript variable from a parent page in a modal window?

I have a page with the following javascript on it: var myVal = 'something'; Pub.Ribbon.PubRibbonComponent.launchDialog('_layouts/RteUploadDialog_Advanced.aspx', ...
1
vote
1answer
1k 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], ...