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
2answers
3k views

How can I retrieve list items from a subfolder using spservices?

I have a document library with subfolders containing images. I'd like to traverse the subfolders and grab the URLs of those images so that I can display them on my little js web app I'm whipping up. ...
0
votes
3answers
497 views

SharePoint redirect to add parameter

I want to add a parameter "Force=True" when the user is redirected to userdisp.aspx (when you click on people's name) What is the best way to do it? Details: I need that because I do not have a ...
0
votes
1answer
36 views

Get the current view name

In javascript, i need to know the current view. I found this post but in 2010 it doesn't work: How to get the current custom view name of my SharePoint List When i do context.view, it's undefined. ...
0
votes
2answers
53 views

Accessing a SharePoint 2013 checkbox with JavaScript?

It seems the way a checkbox renders in SharePoint 2013 server has changed from the way it was rendered in 2010. When I view the source through the browser I see... <!-- FieldName="MyCheckboxes" ...
0
votes
2answers
185 views

Remove item from ECB in sharepoint 2013

I am currently trying to write javascript within a script editor to hide the 'View Properties' and 'Edit Properties' items in the ECB. I have found many solutions that edit the core.js file. However, ...
0
votes
1answer
190 views

Want to access data using sharepoint REST Api in web application

I want to access SharePoint data in my application. I am new for this so don't know much about this to access data from SharePoint. I do not have permission on all pages in SharePoint so need to ...
0
votes
1answer
125 views

Check if the user has attached any file

When I open(edit) some item in a list I want to check with JavaScript if the user has attached any file in my Edit Form...
0
votes
1answer
117 views

Identify if a Library item is a folder or not in CSOM

I have Library on which I have created a ribbon button. On click of the button I am trying to identify if the selected item is a folder or a file. below if the code snippet that I am using: var ...
0
votes
2answers
871 views

get Library document URL using Javascript client object model

I am working with SP.js to get data from a SharePoint library. Below is the code i am using: var clientContext = new SP.ClientContext(); var oList = ...
0
votes
2answers
497 views

Current MySite url by javascript

I need to get the current user MySite Url using javascript / jQuery. I am using SP 2013
0
votes
2answers
301 views

Jquery to display date in MM/DD/YYY in sharepoint client object model [closed]

In My sharepoint list i have a Duedate if type DateTime.Using Client object model when we fetch the value from this Field, it is displayed in the below format(Mon Jun 23 GMT+0530 2014).How to convert ...
0
votes
1answer
19 views

buzzboost script on SharePoint page

l am trying to display a buzz boost script from feed burner into a Content Editor web part but it is not working. I noticed that when I activate the web part it removes part of the JavaScript. Any ...
0
votes
3answers
49 views

IE6 user browse Sharepoint 2013 get the same Javascript error on everypage

I understand IE6 is no longer support in SP2010 and SP2013. My only requirement is hiding the Javascript error and let the user able to read the Sharepoint page only. In my test environment, IE6 user ...
0
votes
2answers
6k views

The value of the property is null or undefined, not a Function object

I cannot for the life of me figure out why I don't get the null or undefined error here, the input button is where I'm getting the error in F12 or firebug....... <SharePoint:ScriptLink ...
0
votes
2answers
763 views

How to insert record to sharepoint multi choice field via CSOM

I am trying to insert a Multichoice (checkbox) field to sharepoint via the SP namespace in javascript. Updatnig single choice is simple. For Multichoice I have tried: var itemCreateInfo = new ...
0
votes
2answers
154 views

Ribbon javascript function reference

I was wondering whether there is somekind of reference available with the javascript methods called for each of the buttons in the ribbon. Question behind the question: I want to make a button on a ...
0
votes
1answer
117 views

How to find Web Parts on the current page using SP.js

I am trying to find out the title of the current page with SP.js without having to get it from the DOM. Is there a way to find what Web Parts are on the current page?
0
votes
3answers
1k 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
1answer
470 views

Export my Enterprise Wiki aspx pages to a PDF files

Our client has asked if we can add a link to their current Wiki pages named "Export to PDF", so when the user click on the link the Wiki content will be exported inside a pdf file ? i got confused if ...
0
votes
2answers
92 views

changing css in jquery sharepoint list

I am wanting to change the css in jquery if a certain statement returns true. I have just been playing around without the statement but it doesn't seem to work. This is my js file: <script ...
0
votes
2answers
30 views

In which place we should paste Div tags in sp designer 2010?

I have a js file which needs some html div content. where exactly I have to add div tags content in aspx page in SP designer 2010 . Thank you.
0
votes
1answer
768 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
175 views

If a user accidentally closes dialog in sharepoint, can we force it to submit to it's list?

In our sharepoint item workflow we have users enter info into a form, then hit submit as usual. A manager does not want the users to have to do it again if they accidentally close the form, or fire ...
0
votes
2answers
5k views

Retrieving List Items using REST services in NAPA app

I tried retrieving List items from the List(Marketplace) I created in the Hostweb using REST services in NAPA app , Set the permissions for Web, Site Collection, List to Full Control, Please helpe me ...
0
votes
1answer
273 views

Jquery show loading progress [closed]

Good day, I have a page with several javascript pages that get loaded. How can I check that all the JS files have been loaded? I tried the below with just alert boxes. $(onPageLoad); function ...
0
votes
2answers
4k views

How to get document URL of a Document Library item given Item ID and URL - using javascript?

I have access to a document library item URL. E.g. /Documents/Forms/DispForm.aspx?ID=585 Based on this information, I would like to get the URL of the document associated with this item. E.g. ...
0
votes
3answers
1k views

Get current ListItem with ECMAScript

I need to calculate a value for a custom ListItem field, based on some values on the same form and also on some values from other lists. I should be able to do this, using ECMA Script. I started by ...
0
votes
1answer
601 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
967 views

Adding a cusotm title for javascript:SP.UI.ModalDialog.OpenPopUpPage

I have a code snippet inside my team site home page which contain the following code to display a pop-up dialog, as follow:- <li class="ms-comm-adminLinksListItem" unselectable="on"><a ...
0
votes
2answers
1k views

Javascript fails in chrome and firefox, works fine in IE

I have this JavaScript code for my SharePoint forms which does not work in other browsers but Internet Explorer. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" ...
0
votes
1answer
149 views

Writing Javascript code in XSLT

Can I write Javascript code in XSLT? Basically I will be calling Javascript's document.location.href to check which site is currently opened (English or Arabic). So let's say if English site is ...
0
votes
2answers
364 views

Changing “New Item” Text

I want to change the "New Item" text into "Yeni Ekle". I viewed the source of the list from browser. Here is the part of the New Item; <a id="idHomePageNewItem" ...........> <span ...> ...
0
votes
3answers
878 views

jquery client object model to return json: what about caml vs. js filtering?

trying to learn client object model (ecma/js/jquery) approach to returning json data and working with that. below I will supply a quick example, but my question is basic context of how would I go ...
0
votes
2answers
613 views

CSOM list query with JOIN, return tree structure

I have two lists, Parent and Child. The Child list has a lookup field called "Parent", which "looks into" the Parent list, using ID column. Using CSOM I'm joining the lists with this query ...
0
votes
1answer
206 views

Why does javascript on the page stop the drop down menu working?

I have just inserted a javascript world clock via a text doc and a CEWP. However now that this is functional on my page I cannot see my drop downs from the top nav bar. It was working fine before I ...
0
votes
2answers
340 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 ...
0
votes
1answer
979 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 ...
0
votes
1answer
2k 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!
0
votes
2answers
640 views

referencing jquery in a sandboxed solution

I have a sandboxed sharepoint project, in which I have created a module, put jQuery there and referenced it from my webpart's ascx page like this: <head> <script ...
0
votes
3answers
780 views

javascript issue in sharepoint

I am having issues making a javascript work. Basically i just use this script for different web parts which have the .q1table class to insert some other classes. I am getting an error uncaught type ...
0
votes
2answers
1k views

Javascript How can I return a value for document.write in CEWP with javascript

I am new to this, and I am just trying to understand how to use some of the javascript I have learned in different ways. This may be a question of context, but an examples or explanation is always ...
0
votes
1answer
752 views

Hiding left hand navigation menu

I'm using the following code to hide the left hand navigation in SharePoint: <style type="text/css"> #s4-leftpanel { display:none !important; } .s4-ca{ margin-left:0px !important; } ...
0
votes
1answer
1k views

SP.UI.ModalDialog.showModalDialog not working with IE7

I'm trying to make this link below work with IE7 but it doesn't fire. Whereas is ok in IE9 and firefox. Any ideas what i'm doing wrong :( THanks <a href="#" ...
0
votes
2answers
57 views

Loading image freezing with Javascript Object Model and jQuery Promises

I have some code using the javascript object model to get items for several dropdown boxes on a form. I also heard that using Promises was the way to go for speeding up things and created 2 wrapper ...
0
votes
3answers
28 views

Get value of lookup

In js, i retrieve some items and inside there are lookup column and people column. When i print them, it's [object Object] Are there a way to determine if it's a lookup column? This one doesn't work ...
0
votes
3answers
54 views

JavaScript to auto turn pages of a list (for digital signage)

We're currently pulling work schedules from SQL in a Custom List and Displaying it on a TV screen for freelancers to use (Digital Signage). The tv screen can only display 30 rows so we set the list ...
0
votes
3answers
36 views

Callout (js) error in application page

Callout throws the following js error: Error: Argument has no callout associated with it. The above error results from a Callout on an application page, via the following code: <script ...
0
votes
1answer
37 views

Getting and updating the value of a hyperlink/picture field in Sharepoint 2010 using Javascript and COM

I'm trying to get the image url for a Hyperlink or Picture column field in a SharePoint list, however after trying a lot of variations I just can't get the url to display in the alert to make sure i'm ...
0
votes
2answers
55 views

Add javascript to sharepoint 2013 [duplicate]

I must add a JavaScript to Sharepoint 2013. I must add by JavaScript dropdownlist with links. How could I add a Link to dropDownList which will work at site Sharepoint 2013.
0
votes
1answer
102 views

CSR Coloured Colum

I've created a document library with some folders in it and I have added a new Column "Permission" to this Library. So now I want to color the cell or the entire row when e.g. the value "Owner" ...