An open-source, cross-platform JavaScript library, now endorsed by Microsoft

learn more… | top users | synonyms

0
votes
1answer
39 views

Web Part specific DOM Manipulation. Two identical Script Editor Web Part Code blocks

We have a script editor web part with javascript that references some jquery libraries. The code creates web part properties and hides DIV tag in the web part based on some conditions. It works ...
0
votes
2answers
16 views

Highcharts jquery version for web part in SharePoint

I am trying to create a web part in SharePoint to get data from a custom list that contains our departments revenues. I don't want the users to check the original values instead I have a publishing ...
0
votes
1answer
34 views

Script Editor web part stops working after a filter

Whenever I apply a filter to a list view using the default filter options, my script web part stops responding. The code I'm using for the web part is: <script type='text/javascript' ...
0
votes
1answer
21 views

Some underlying elements visible in jQuery hover menu

I have created a hover quick menu that slides down when moving over the homepage link in List Views in my SharePoint Hosted App. Works fine, however some elements from the background are still visible ...
0
votes
1answer
26 views

Change Excel web access dynamically using javascript

I have a page with a button and an Excel web part. When I click on the button I want to load another Excel file in that web part. Is it possible to do this? Please suggest some ideas on it.
1
vote
1answer
29 views

How to Send return value to the caller function correctly

Hi i have a code like this. var guiD = myCallerFunction('abc'); alert(guiD);====>Line No Y function myCallerFunction(name){ //Some code here var terms = termSet.get_terms(); ...
0
votes
0answers
11 views

SharePoint 2013 - In Page Image Pop Up

I would like to implement some image pop ups using jquery, AJAX or similar to perform actions as shown on this page: http://dimsemenov.com/plugins/magnific-popup/ It is not desirable to have a new ...
0
votes
0answers
18 views

Cascading dropdown in Sharepoint 2010, issue using SPCascade

I'm trying to use this script http://www.spcascade.org/ and have followed each step accurately, however when testing it, the drop-downs simply display (None) rather than the values saved in the first ...
0
votes
0answers
23 views

Cascading dropdowns with 2 parents

I've used SPservices to create cascading dropdowns via lookup columns without issue. My question is if it is possible to create a cascading dropdown with two parents (without using infopath). ...
1
vote
0answers
14 views

Infopath 2010 form in Sharepoint 2013 modifying values before save

I have a really complicated problem that I haven't been able to find a solution for and was wondering if anyone can provide some suggestions. Background: I have a SharePoint list that contains 2 ...
0
votes
0answers
26 views

Enabling Maximize Button for a list in sharepoint 2013

I have applied the following code in my SharePoint 2013 site in the content editor webpart: var options = { allowMaximize: true, showMaximized: true, url: “siteURL” }; ...
0
votes
0answers
15 views

Sharepoint 2013 - jcom - How to add function and increment 1 to a specific field?

The following setup is working perfectly for fetching data from my custom list... var items; $(document).ready(function () { SP.SOD.executeFunc('sp.js', 'SP.ClientContext', CustomAction); }); ...
0
votes
0answers
24 views

How to get Users in the Farm with JQuery

want to users all the Sharepoint farm, so I would like to consume SharePoint web services using javascript/jQuery. I am capable to write small scripts using javascript/jQuery, but I don't know how to ...
1
vote
1answer
49 views

SharePoint 2013 redirect on save or cancel jquery

I've been battling to get this work for the last day or so and its driving me up the wall. Firstly I'm using the 'SPUtility' jQuery scripts which are great to showing or hiding fields depending on ...
1
vote
1answer
32 views

How do I embed a hyperlink in a NewForm.aspx to a second related list

I have two related lists in SharePoint 2013. I want to add a link from the new form of one list (NewForm.aspx) to open the second list, so I would be able to add new items to the second list quickly. ...
0
votes
0answers
19 views

Opening Hyperlinks inside Excel WebAccess webpart in the Same Window

I have the same question as in this link, but this solution is not working for me. $(document).ready(function() { $(".ewr-sheetcontainer a").each(function(){ ...
1
vote
0answers
27 views

How to get Web Application url in SharePoint 2013 in Javascript?

I'm looking for a "beautiful" and the fastest way to get only the web application url (don't want to trim or substring or anything else).
0
votes
2answers
41 views

Display Images from sharepoint library in table

The below code displays the images in the image library Horizontally. But i want to display the first 5 images from my array in the table format. I have attached the output below. Can you please help ...
0
votes
1answer
40 views

how to get Relative Url using Jquery in Sharepoint Site?

in my sharepoint site first i want to get Host URL(/Site URL ),and user enter Relative URL in TextBox then i want to append that relative url with Host Url Using JQuery and nedd to check that url ...
0
votes
2answers
50 views

How to verify if current user is a SCA (Site Collection Administrator)?

I have a NavBar at my master page that will only be displayed to the SCA (Site Collection Administrators). I'm using jquery SPServices to do that validation, but the only examples that i found suggest ...
0
votes
1answer
38 views

The choice SELECT doesn't work, only 1 value boots, and there is a lot of them, help with a code

$().SPServices({ operation: "GetListItems", async: false, listName: "Telekom Group", CAMLViewFields: "<ViewFields><FieldRef Name='Title' /><FieldRef Name='Name' ...
1
vote
1answer
40 views

Jquery accessing an element in Approval Task Form

I've been dealing with an error I can't solve. I've got an approval task form in which I want to hide the ribbon depending on the value of a field. The HTML generated when clicking the task link: ...
1
vote
1answer
42 views

Can we trigger a SP2013 WorkFlow using REST API + Jquery?

Can anyone suggest whether there is any possibility how to trigger a SP2013 WorkFlow using REST API & Jquery ?
4
votes
1answer
78 views

Edit item popups not working with ms-listviewtable class in a CEWP

I'm using SharePoint 2010 and Internet Explorer 9. (I have no choice in browser or versions -- policy dictates I use these until told otherwise) I actually solved my problem, but I still don't ...
0
votes
2answers
37 views

how to implement this jquery for preview

I have a jQuery to display pictures as thumbnail for a document library. It works great but as soon as I add grouping to the view then the pictures do not show up as thumbnail. They show up with ...
0
votes
0answers
38 views

Problem while resetting the share point lockup value with 20+ items

I have a sharepoint lookup and a text box. On Text box changed event i want to reset the next lookup value to (None) and text box to empty. Below is the code for the same. This code is working ...
0
votes
1answer
49 views

client side IDs of share point elements

I need to hide some menu items that come OOTB on sharepoint pages. I can do this through javascript/jquery, but am not sure how consistent are the client side IDs of various elements on SP pages. I ...
0
votes
1answer
37 views

Reset sharepoint lookup with None option using jquery

How to reset the lookup value to None in Editform.aspx page using Jquery. I want to empty the lookup dropdown if text box does not have any value . Here is the code which i have tried.I was able to ...
0
votes
1answer
39 views

Fill textfield with JavaScript

I have a textfield which needs to get the value of a variable. When I select the <input> by it's ID, and use jQuery.val(variable) I get [] as output (Chrome Developer Tools). When I use ...
0
votes
2answers
36 views

jquery to display actual picture

This jQuery should give me thumbnail view of the icjpg.gif but it does not give the actual image that are in the document library. Any idea what I am doing wrong? It just gives me the sharepoint ...
4
votes
2answers
150 views

How to filter 65.000 list items fast

There's a list A with over 65.000 list items and growing about 300 items/year. There's a list B with a lookup field to list A. I want to use the OOTB form to add an item in list B, but I need ...
1
vote
2answers
66 views

jquery tabs and sharepoint 2013 CQWP

I'm using Jquery tabs to display some contents from a content query webpart (used this ...
1
vote
1answer
46 views

ASCX controls, how to prevent multiple inclusions of same Javascript file?

By example we have two webparts on page, with ascx controls. One ASCX control loads this.Controls.Add(new ScriptLink() { Name = ...
0
votes
0answers
69 views

Customize drop down list with jquery

I'm using SharePoint 2010 and trying to limit the choices in SharePoint SpListFilterWebPart filter, using jquery. The filter has around 40 values to choose from (stored in SharePoint as list), but ...
0
votes
1answer
31 views

Retrieving All Sub Site with Sharepoint Object Model Error

My code: using System; using System.Web; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.SharePoint.Client; using ...
0
votes
1answer
74 views

jquery slider in display template works only every second/third time

I've added PGWslider to a Display Template in SharePoint 2013. And it renders nicely - most of the times. Every second or third time I refresh, F12 from IE tells me that "the object does not support ...
0
votes
1answer
47 views

How can I call a server side method when browser gets closed

I have created a SharePoint 2010 visual web part. I have create a method CheckPref in usercontrol.ascx.cs. How can i call this method when the browser window is closed? If i useScriptManager ...
0
votes
1answer
16 views

How to effectively ping SQL databases from SP 2013 per list item?

What I'd like to accomplish is to have some script per each custom list line ( in a column ) that will show an icon green or red or td background color when the db is pinged and connection is ...
0
votes
2answers
53 views

Asp.net label returns empty string when using jQuery

I have created a SharePoint 2010 visual web part. In the page load event of the user control, i am setting the value of an asp.net label. <asp:Label ID ="lbMessageIndex" runat="server" ...
0
votes
0answers
19 views

Read xml in infopath using javascript

I want to read xml inside the infopath form. I am saving all infopath forms after submitting into a form library. Now I want to read the xml inside that. I am doing like following, $(function(){ ...
0
votes
0answers
47 views

Filter calculated columns in sharepoint 2013 using rest api

I am using Rest Api to filter values. Can i apply filter on Calculated columns. Basically the calculated column returns a string . Her is How my View Looks My REST API CODE IS like this ...
0
votes
2answers
152 views

How to filter for files using rest api ( sharepoint online )?

Why doesn't the following string returns data from within a folder in the same asset library: Asset Library Name is Production_Library Folder Name is at the top level of the asset library and is ...
0
votes
0answers
50 views

Access denied while calling external URL ajax call

I got the access denied error when i am calling external URL from Ajax call. it is working fine without SharePoint 2010. <script> function httpGet(theUrl) { debugger; var ...
0
votes
1answer
24 views

Populate SharePoint textfield value into dialog dropdown

Today i ran into this issue, simply described: I have a SharePoint custom list where I have added a custom button in the it's ribbon, this button pops up a custom ASPX modal dialog, this dialog only ...
0
votes
0answers
24 views

How can I fill value into Search Center default.aspx textbox?

I am using SharePoint 2013 on-premise. By some reason, I need to pass the querystring value into the search center default.aspx. On the page there is only 1 textbox. I can capture the querystring ...
0
votes
0answers
22 views

zoom out Grantt chart SharePoint 2013 through Javascript

I would like to zoom out SharePoint 2013 Grantt Chart so that it only shows month in scale. I have seen few examples which shows the same thing but none of them is working for me. ...
1
vote
1answer
150 views

js link group count list SharePoint 2013

(function () { var itemCtx = {}; itemCtx.Templates = {}; itemCtx.Templates.Group = GroupOverride; SPClientTemplates.TemplateManager.RegisterTemplateOverrides(itemCtx); })(); function ...
0
votes
1answer
31 views

Change in jQuery code from SharePoint 2010 to SharePoint 2013

I'm migrating a SharePoint 2010 VS project to SharePoint 2013. The project has custom list definitions and custom add, edit and view forms and uses jQuery 1.8.3. In 2010 the following code works fine: ...
0
votes
1answer
15 views

SP2013: Adding commas to text fields

There's a lot of threads about getting rid of commas, but I want more commas. On the NewItem and EditItem screens, I have some number and currency textboxes. My users are entering values in the ...
0
votes
1answer
65 views

sharepoint resize verticle scroll

I am going to add a custom div in b/w ribbon and workspace div. I find the scrolling bug HTML <!-- ribbon --> <div class="s4-pr s4-ribbonrowhidetitle" id="s4-ribbonrow" style="height: ...