Tagged Questions

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
0answers
28 views

Sharepoint mobile view issues

I am working on Mobile View for SP 2013 site and I used some java script for better user experience, this java script works perfectly with IOS and ANDROID devices, when it comes windows phone like ...
0
votes
2answers
105 views

Getting all sites for user with permissions

I'm trying to get all sites for a user on which he has permissions. For this I'm using the search api. In a for-loop from 0 to totalRows. This is my request url: ...
1
vote
2answers
458 views

Javascript Displaytemplate not working on sharepoint 2013 blog site view post page

I have a blog site in sharepoint 2013, I wanted to use Javascript Template for displaying the Post in a custom style. Here is how my js file looks like. (function () { var overrideCtx = {}; ...
0
votes
0answers
48 views

Managed metadata not loaded in standard metadata-dialog

I have a standard SharePoint list which has a (required) Managed metadata-column. When I want to add a new item and click on the icon to show the Managed metadata-dialog, the dialog opens but nothing ...
0
votes
2answers
86 views

Get id of an element by js in a module item

I don't know if i choose the correct title. Here's my probleme, I've created a module in wich I can put my js/css (http://img4.hostingpics.net/pics/586674moduleJs.png) and I would like to get the id ...
2
votes
3answers
1k views

Removing top links from Sharepoint online team site

The whole day yesterday I have been trying to follow the instructions from MSDN to hide the top links in a SharePoint team site (SharePoint Online in Office 365). However, I can not get it to work. ...
3
votes
1answer
426 views

JSLink and Javascript Events

I have customized the view for my SharePoint 2013 List using a JSLink file but have not been able to get the buttons I added to the page to respond properly. They cannot find any DOM elements when the ...
0
votes
1answer
163 views

Need help troubleshooting JQuery call to workflow

Running SP 2013. I've got SPServices 2014.01 and JQuery 1.11.0 both copied to my site collection and loading in my masterpage, plus I've confirmed they're loading with the page in question. I've got a ...
2
votes
1answer
802 views

Refresh page or call JS function after New Item dialog closes

I have a link when clicked, shows the New Item dialog. When the user clicks 'Save', the list item is added. Is there a way to attach the dialog's onClose event to another piece of code? Or can I ...
1
vote
1answer
76 views

Sharepoint Skype status field with skype button

I have a skype name field in a list. I would like to use skype button to it or any other way users can can call or chat by pressing on it. Is this possible? Thanks in Advance
2
votes
1answer
282 views

SharePoint:SaveButton save and then close window with Javascript

I'd like to have the standard SharePoint save button SharePoint:SaveButton To use JavaScript to close the open window (this is not a modal, but the actual window or tab) when it is finished. Is ...
1
vote
2answers
2k views

JSLink: Render FileLeafRef with Title in document library

JSLink is the greatest thing since sliced bread. Not. There are some weird issues concerning standard stuff and I'm not sure whether these are limitations or I'm doing something wrong. I want to have ...
0
votes
1answer
1k views

Saving Page with WebPart error Invalid postback or callback argument

I'm using SharePoint 2010 Foundation with Visual Studio 2010 Ultimate. I developed a Web Part with extensive use of JavaScript and Ajax call. I deploy application by Visual Studio correctly, enable ...
1
vote
1answer
706 views

2013: Trying to pass jQuery user object to AngularJS

I am creating a SharePoint Hosted App and the default Visual Studio project uses jQuery to access the SP.clientContext to get_currentUser and save it in a global variable. To trigger an AngularJS ...
0
votes
1answer
42 views

Multiple Languages Support For Sharepoint App [duplicate]

I have developed an app for SharePoint and it is available on SharePoint app store. Currently it is in English only. Now i want to add support in multiple languages such as German, Japanese, French. ...
0
votes
0answers
236 views

WebForm_DoPostBackWithOptions not working on SharePoint2010

I am trying to emulate a save action and avoid redirection, so I used the WebForm_DoPostBackWithOptions function, for some reason the item is not being saved eventhough the save button id is correct ...
1
vote
1answer
822 views

Sharepoint 2013 Content Search vs. Javascript CSOM

I did what this page teaches: http://code.msdn.microsoft.com/SharePoint-2013-Querying-a629b53b It works, but the thing is that I used the same KQL query in a content search webpart and I have ...
0
votes
0answers
106 views

How to assign a java script variable to xsl variable

I have a requirement where the user enter the price in text box and i need to get the value in java script/jquery function and by using the value i need filter list data using xslt. I have to assign ...
0
votes
2answers
5k 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
1answer
356 views

Lists with null columns not returned when retrieving custom lists with Caml query and Javascript

I am retrieving a list with caml query and Javascript. Everything works fine besides the fact that I have an image column and not all lists have that column populated: Here is a sample query I am ...
0
votes
0answers
37 views

Events not firing inside popup dialog

I have a popupdialog created like this: var options = { title: newsArray[i].Title, autoSize: true, ...
1
vote
2answers
95 views

How to run the JS with on() function with Javascript

In the Calendar with Add button, after the JS Calendar starts completely, the HTML below appears and I would like to run my JS with AsynchronousViewDefault_CalendarView attribute. However, it doesn't ...
0
votes
0answers
68 views

401 on /_api/web/sitegroups/getbyid(xx)/users call

Logged in users are getting prompted for user/pass when /_api/web/sitegroups/getbyid(xx)/users is called. I don't think that's supposed to happen (according to our vendor). What's my step in ...
0
votes
1answer
497 views

Iterate through List items in a view and manipulate column data using JavaScript

The short story is I want to open a custom filtered view created by the standard SP UI and click a button that will iterate through all the items in the view and change the status field to complete. ...
0
votes
2answers
134 views

WebParts with JavaScript don't work with managed path

I developed a SharePoint 2010 WebParts with JavaScript and CSS(inside a module). I haven't problem on development environment but in production environment. In production environment I have a ...
0
votes
1answer
406 views

Value of a parameter in the query string causes a new page to open instead a modal dialog

ListIDFromQueryString = '{08.....3-d...-....-....-........ce47}'; I want to use this value as the parameter (with a different name) in a link to open a modal dialog box. ...
1
vote
3answers
471 views

How to replace all href elements when mouseovers with Javascript

In the Calendar with Add button, I would like to replace all href="javascript:void(0)" to href="http://google.com" when mouseover the image caladd.gif with Javascript and jQuery. Summary: That means ...
2
votes
1answer
246 views

Mimic Target Audience in SharePoint Foundation

As a preface, I know Foundation does not have audience targeting. But, I do not have an option to upgrade to SharePoint Server. So, with that preface, here is my dillema. I have two SP groups, ...
0
votes
1answer
335 views

BoxShadow and BorderRadius do not appear in IE with Javascript and CSS?

I got into a trouble that in the SharePoint, the Box-shadow, Border-radius and the showToggle's div tag don't appear in IE, but it runs very well in FF and Chrome. Please let me know what is going ...
0
votes
1answer
297 views

How to Attach file to Outlook Application

I am trying to attach a file to outlook Application using java script.Its working fine in IE 10 and above but not in any other browsers. Here is my requirement. For Document Library a. When a user ...
0
votes
0answers
773 views

UpdatePanel not working inside Parent GridView ItemTemplate

There is a SharePoint 2013 Visual Web Part in our project. It has 4 nested GridViews together. On click of one Image button 3 grids will get expand. Population is also coded on click of that image ...
2
votes
1answer
1k views

SP.RequestExecutor on SharePoint online

I deployed an App SharePoint hosted. I am using SP.RequestExecutor and it is working fine on SharePoint premise. but on SharePoint online it is not working. I added the library using this: ...
3
votes
2answers
1k views

SharePoint 2013 get user groups by CSOM

I wrote some code to get the current user groups by CSOM. function getCurrentUser() { this.clientContext = new SP.ClientContext.get_current(); this.oWeb = clientContext.get_web(); ...
0
votes
0answers
280 views

JSLink: Getting item URL or identifier

I'm using a modified version of the Accordion Menu code sample (here). Inside the accordianTemplate function, I need to get the URL or some kind of identifier of the currentItem object so that I can ...
1
vote
1answer
3k views

Creating dynamic accordion from a custom list using jQuery and jQuery UI in SharePoint not displaying as should

I am trying to dynamically build accordion from list of items returned using JavaScript, jQuery and jQuery UI. Below is my code: <div> Search List <input type="text" ...
-1
votes
3answers
504 views

Get id of current inserted item by javascript

I'm currently trying to get the id of my currently iserted item. I'm making a timesheet which user is able to save and retrieve his own timesheet. The thing is that i put the ID of an item in the html ...
0
votes
1answer
76 views

Script in webpart freeze the whole site

I have a JavaScript in my script editor that on page load freezes the browser . I can't use SharePoint designer to remove it because the script is in a script editor. I have tried disabling JavaScript ...
0
votes
1answer
41 views

Recalculate Calculated Columns with Javascript

Has anyone some sample javascript code to recalculate a calculated column in SharePoint 2013 tasks? This should work on new and edit form and also with the AllItems view. Many thanks.
1
vote
4answers
638 views

Format Date (25 Jul) using Javascript Object Model

I am using sp2013 and building display templates. I would like to build a locig in javascript object model to get a date field back and display it on a page e.g. var itemDate = $getItemValue(ctx, ...
3
votes
1answer
252 views

How to set a List's Default Content Type (order) by using Javascript?

I've spent a lot of time Googling and MSDNing on this topic and then stopped at the set_uniqueContentTypeOrder method. This method will take an array of Content Type IDs and change the "New Item" ...
0
votes
0answers
137 views

Start Workflow with Initiation Form via Ribbon

I want to start a workflow for selected items using JavaScript and a custom button on the Ribbon. I was able to get this working with the help of SPServices. In essence I needed to get the item id, ...
0
votes
0answers
90 views

Discussion Board Best Reply Clost Thread

I am creating a discussion board app and want to know if I can amend the top button that has the text "Best Reply". I want users to be able to mark the discussion as complete. I am adding a choice ...
1
vote
1answer
826 views

Get ContentType name with select fields

I have a problem with getting the ContentType name for a item. when i use http://sp2013dev/sites/mms/_api/web/lists/GetByTitle('List')/items(1)/?$expand=ContentType I get as response all Fields ...
1
vote
1answer
124 views

Reindex search results (Content Search Web Part, 2013)

I will just leave this here, since it helped us a lot: We have a Content Search Web part with custom Display Templates with link to edit item. After user edit item, we want to refresh the search ...
0
votes
0answers
104 views

Use jQuery to make a “column” on the default view?

I am trying to append a value to the end of each row by selecting the number value in one column to do some sort of math with it and output the value on the other one. This code works for me on one ...
0
votes
0answers
168 views

How to change state (toggle on/off) of ToggleButton?

There is a ToggleButton: <Tab Id="Ribbon.Book" Title="Book editor" Description="" Sequence="2"> <Group Id="Ribbon.Book.TextFormatting" Description="" Title="Text ...
0
votes
2answers
153 views

How to make webEnumerator.moveNext wait until executeQueryAsync query executes

I want executeQueryAsync to complete before giving back control to webEnumerator.moveNext, anyway ? function onGetSubwebsSuccess(sender, args) { var webEnumerator = webCollection.getEnumerator(); ...
1
vote
2answers
465 views

How to get title and url using allproperties

How can I get title and url using allproperties? I can get custom proeprty but do not know how to get title and url. I am not able to know as why I get the alert twice in the following code, ...
2
votes
2answers
633 views

SharePoint - How to get field value using JSOM + JSLink without Async call

I'm fairly new to the JavaScript Object Model (JSOM) and I want to do a simple call to get a field value. Very easy in C#, but I can't seem to get a field value even though I have the ListItem: ...
0
votes
1answer
151 views

Retrieve list item information using path

Using: SharePoint 2010, JavaScript, jQuery 1.10.2, SPServices In SharePoint 2010 I have a custom (JavaScript-based) page where users may type in text and link to items in SharePoint lists. A recent ...