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
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
696 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
512 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
237 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
280 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
837 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
626 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
475 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
503 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
26k 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
303 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
472 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
839 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
733 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
265 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
110 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
170 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
891 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
344 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
608 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], ...
5
votes
2answers
3k views

Datetime update is one day off

I'm updating a list with a date field (just the date) using the ECMASCRIPT object model but when the date is inserted is one day off from the introduced date, It's literally making me pull my hair off ...
1
vote
3answers
2k views

change title of a modal window

how can I change the title of a modal window open through the command using? ExecuteOrDelayUntilScriptLoaded(function () { openModalWindow('.....')},\"sp.js\"); I would like the person to see: ...
0
votes
2answers
4k views

Include Javascript in Custom Page Layout (Sandbox Solution)

I provision custom page layout through elements.xml I want to add a javascript file to that page to be used by some webparts put on that page through elements.xml as well. In my custom page layout i ...
0
votes
1answer
3k views

SPServices: How would I add Ascending=False to CAML in GetListItems

How would I use SPServices GetListItems and still be able to add Ascending=False to the CAMLViewFields? I haven't used this for long and I am just wondering if this is possible? Thanks as always!
4
votes
2answers
4k views

Copy file using javascript client object model - new version

I have a solution that adds a custom button to the ribbon in SharePoint 2010 and am using the javascript client object model behind the scenes to copy a file from Library A to Library B when the ...
2
votes
4answers
763 views

what is the best way to host a BING map inside a page on Sharepoint 2010 Farm Solution?

I'm new to SharePoint, and could really use some advice: what is the best way to host a BING map inside Sharepoint ? The task I have is: to host a bing map inside a Sharepoint 2010 Farm Solution. ...
1
vote
3answers
3k views

jquery and javascript : can i get the last ID from document library?

Is there a way to get the last ID from a Document Library with javascript/jquery?
2
votes
2answers
11k views

How to close a modal using javascript from code behind?

So far I have tried this: Page.ClientScript.RegisterStartupScript(this.GetType(), "closePage", "window.returnValue='http://sp-pubdev:88/Resources/Images/testFile.png'; alert(window.returnValue); ...
2
votes
1answer
2k views

SharePoint Modal for Document Upload: changing the Dialog options for Edit Form

So I am using the Upload.aspx for doc lib with GUID in order to have Upload at a custom spot on a page. I think its the edit form that pops up right after you upload a document to add the metadata. ...
0
votes
2answers
1k views

Batch update with javascript client object model?

Anybody know how to do batch list updates with the javascript client object model in Sharepoint 2010? I'm putting the list into an array right now and then a kendo grid is reading it. I can update ...
1
vote
1answer
2k views

JavaScript SP.CamlQuery() return DateTime fields with offset (in my case +11 hours)

JavaScript SP.CamlQuery() return DateTime fields with offset (in my case +11 hours). In standart Display/Edit forms and views display correct DateTime. How to get correct DateTime via SP.CamlQuery()? ...
0
votes
4answers
4k views

Object doesn't support property or method 'get_item'

When i try with this code i got error Object doesn't support property or method 'get_item' . Please help me to resolve function showTitles(urlColumnName) { var selectedItemIds = ...
0
votes
1answer
3k views

Getting selected items from a SharePoint:ListViewByQuery webpart, embedded in a Visual Webpart

I am having trouble getting the selected items from a ListViewByQuery webpart, using the Client Object Model (JavaScript). Code (server-side) <SharePoint:ListViewByQuery runat="server" ...
1
vote
0answers
208 views

Changing / overwriting OOTB javascript

I've came across an issue when I was modifying / customizing the mini social tag buttons (a delegate control - class), everything went good and well untill I encountered an issue "onmouseover" event. ...
1
vote
0answers
289 views

How to handle “grouping expanded data load complete” in a list view?

In SharePoint 2007 I run some code after a grouping is expanded by overriding the ExpGroupRenderData (the custom code contained Microsoft's original code with some added extra bits). When this code ...