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

learn more… | top users | synonyms

0
votes
0answers
7 views

js link group list items SharePoint 2013

(function () { var itemCtx = {}; itemCtx.Templates = {}; itemCtx.Templates.Group = GroupOverride; SPClientTemplates.TemplateManager.RegisterTemplateOverrides(itemCtx); })(); function ...
0
votes
0answers
2 views

zoom out javascript Grantt chart SharePoint 2013

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. ...
0
votes
1answer
22 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: ...
0
votes
1answer
40 views

Jquery on sharepoint Dropdown Fields

I have 10 Dropdowns in a sharepoint list. When the user Clicks on Add New Item in Newform.aspx Currently it will show only First Dropdown i.e (Drop1) With Empty Value. When the user Selects any Value ...
0
votes
1answer
17 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
10 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
33 views

Filtering list view based on querystring using jQuery?

Using Sharepoint 2010 Content Editor Web Parts (some links dynamically created) List View Web Part Ability to add additional software or packages to the system extremely limited (so would prefer ...
2
votes
3answers
3k views

Detect Modal Dialog Close with JQuery

In my application, I am trying to hide scrollbars in the parent window when a modal dialog is opened... I've added this to my Master Page: $(function(){ if(window.frameElement != null) { ...
2
votes
3answers
3k views

Loading jQuery and jQuery UI within JSLink script

How would I go about using jQuery and jQuery UI (mainly the sortable component) within a JSLink script. So far I've tried several methods of dynamically loading javascript within the JSLink script ...
0
votes
0answers
19 views

Need to show Popup showing whole content of web part [closed]

I have a webpart on SharePoint online site. I have customized the site using bootstrap3 model. I need to write customized JQuery code such that if content on webpart exceeds 4 lines, it should trim ...
2
votes
2answers
3k views

Left navigation bar customization based on user permissions

I have to change my left navigation based on specific user permission. Is that possible without change in masterpage? I know jQuery is one solution but any other way through we change left ...
0
votes
2answers
86 views

“Read more” sort of thing for partial load of items?

We have a asp.net listview displaying news item on a page and it has paging functionality to load the next set of news which works fine. A requirement now is to implement more modern Read more ...
0
votes
1answer
82 views

Catching query suggestions dropdown value

Next to search box there is a dropdown containing query suggestions (everything, people, ...). How can I catch the value of this dropdown (it is div.s) in JavaScript (jQuery). Also I want to know ...
1
vote
1answer
229 views
1
vote
1answer
661 views

jQuery wait until the page (with several webparts and Ajax controls) loaded

I have a page which has several web parts. In some of them, it has Ajax controls. now, I need to do this: after the page is fully loaded, I want to use jQuery to change some attr for some links (a ...
0
votes
1answer
1k views

SPServices - GetRolesAndPermissionsForCurrentUser

I have a list where one group of users is not allowed to delete items but they have view and edit permissions. All items in the list contain an attachment. However, users are not allowed to delete the ...
1
vote
1answer
813 views

SPServices Autocomplete and dynamic CAML query

I have two Text filter web parts (Project and Customer Name) with Apply Filters button for one list. There is a SPServices.SPAutocomplete on each and it works great. Now, I want to show the values in ...
1
vote
1answer
12 views

JQuery link in Shareboot masterpage

I am building and testing a local sharepoint site using Shareboot but can't get my link to JQuery in the Shareboot master page working. When I add it I'm only getting a blank page returned. I take ...
0
votes
0answers
20 views

Disable DataSheet view only on one specific ListView

I have setup a specific ListView with all the columns I need. I need to disable the Datasheet view on this ListView (called SubmittersList) then I need to have Datasheet view enabled on my other ...
1
vote
0answers
30 views

Calendar - Only display available resources

I have a resource calendar. Is there a way to limit the resources based on the date user picks when they want to reserve a resource. For example, user clicks on 1-26-2015 date and conf room 3, 4, and ...
1
vote
1answer
546 views

Hiding Column on a List View with Grouping

I have a list that I need to dynamically hide columns on based on user. Sort of a rudimentary Column Level security type deal. This is being done through Javascript and JQuery to simply not display ...
0
votes
1answer
34 views

Cascaded drop down not working in IE alone

I have created a 3 level cascading drop down in SP2010 list. The cascading drop down is working perfectly in Firefox and Mozilla but in IE,the drop down values from level 2 are not displayed. Can ...
0
votes
2answers
76 views

Disappearing UI jquery

UI accordion, mega-menu and slider banner all disappear for all users with the exception of Site Collection Admins until fully authenticated....is it a user issue or branding? Code below: ...
1
vote
2answers
465 views

Help with SPCascadeDropdowns cascading lookup column

I have this jquery added to my editform.aspx in SharePoint. I want the childcolumn to also have unique values, although it may contain duplicates example below. Example. When I select mycountry, I ...
1
vote
1answer
454 views

How to add link to Title field when list data is fetched using REST API and rendered through Datatable.js

<table width="100%" cellpadding="0" cellspacing="0" border="0" class="display" id="example"> <thead> <tr> <th>Title</th> ...
1
vote
1answer
458 views

A script on this page may be busy, or It may have stopped responding

there is one webpart on page that rotate the images so i added a jquery to rotate images and its working fine but after sometime it gives error like A script on this page may be busy, or It may have ...
0
votes
1answer
48 views

jQuery to Reset sharepoint Dropdown value to empty in

Can you please let me know how to reset Dropdown value to empty using jQuery. I tried using like this on Dropdown doen changed event but it is not working. Can you please help me. Below is the code i ...
0
votes
2answers
52 views

Sharepoint 2013 list Dropdown change event is not working using Jquery in NewForm.aspx

I have 10 Dropdowns in SharePoint list. Initially I want to show only one Drop down in the newform.aspx. Once the user selects a value in the dropdown i want to show another dropdown. I was able to ...
0
votes
2answers
36 views

Edit masterpage, need to add jQuery - how to ensure it does not duplicate?

SharePoint 2010 Server. I edited section of my masterpage like this(in sharepoint designer, not programmatically): <script type="text/javascript" ...
0
votes
1answer
41 views

Creating valuepair arrays SPServices

I have the information below working, however if I have more than 3 value pairs it can be a long string. How do I turn the value pairs into an array? I tried to use this example but I'm not clear on ...
0
votes
0answers
21 views

REST get all roleassignments for particular user

I would like to get an overview which would show me what can particular user see in our Sharepoint Site - in other words what are all his role assignments - in groups and also lists and in other ...
1
vote
1answer
1k views

set multiselect lookup column using jquery

I have a Multi select Look up column which as you all know is a control with two list boxes and "Add or Remove" Buttons. The user populates the right-hand side of the control with some values by ...
2
votes
1answer
662 views

How can I create Ctrl-F Functionality from a search field?

I have a long page on SharePoint 2010 that needs to be searchable for keywords on that page. Apparently the target group is "unable/unwilling" to learn Ctrl-F so I was asked to create a permanent ...
-1
votes
1answer
34 views

add a custom web part programmatically in web part page using Jquery

Hi We have 90 document libraries 90 different districts. Client wants, each district user should only see their own document library. I am getting district name from user profile (AD). I am ...
1
vote
3answers
77 views

Remember filter value using jquery and cookies

I am looking for a solution for the following problem: I have a large list that is related to a second list. The two list web parts are on one page, when you select an item in the first list, the ...
1
vote
1answer
454 views

Customize InfoPath Form select element

I have an InfoPath form used for ordering inventory from our warehouse. There are drop-down lists with the roughly 180 inventory items available for request. I would like to make hybrid drop-down ...
1
vote
2answers
68 views

jQuery Code Only Works When Alerts are Active

I posted this to Stack Exchange as well, and I was wondering if some of my fellow SharePoint developers could help me out. This is not a SharePoint direct question, but I am building a site ...
0
votes
0answers
27 views

SPServices.SPCascadeDropdowns not working

Who knows as to connect it to the HTML form??? not to NewForm.aspx and to HTML form? type="text/javascript"> $(document).ready(function() { $("#State").SPServices.SPCascadeDropdowns({ ...
-2
votes
1answer
56 views

JQuery sharepoint lookup value neighbouring column

2 columns in the Title and Another list are everything hi, it is necessary in case of a value choice from the Ttile field, in other field to add value from the Another column i.e. that it turned out ...
1
vote
1answer
613 views

Set value of choice field based on input from people picker

I have Choice Field which i use to filter items within a list. I'm trying to figure out a way to set value of this choice field within my edit form is there is a name in the people picker field. ...
0
votes
0answers
34 views

OnPostRender on a hover display template

I have this code which works on a normal display template, so runs after the display template has been rendered but when I add it to a hover, it does it before the template has been rendered. Is there ...
0
votes
1answer
17 views

Get and Alert All z:row Elements

I am using SPServices to get the list items I want returned to me from a specific list. I know how to find a particular element using this the GetListItems function without a problem. Is there a way ...
0
votes
1answer
36 views

How to get the value of the PeopleEditor in SharePoint 2013

I need to get the value of the PeopleEditor using JavaScript and jQuery. following this article : ...
0
votes
1answer
383 views

Hover effect over an image in SharePoint 2010

I would like to add a kind of hover effect over an image. My source code in JavaScript looks like the following: _spBodyOnLoadFunctionNames.push("color"); function color(){ var $th = ...
0
votes
3answers
36 views

Remove Search this site in sharepoint 2013 using jquery

i have written the below jquery to remove the text “search this site”. it is working fine . but on mouse over it is still showing the old text i.e ” search this site”. Also when I now try to insert a ...
0
votes
2answers
123 views

jQuery selector won't work SP2013

Ok I've already opened a subject like this, but this time I have no hairs left so I'm gonna summarize my knowledge on this issue, clearly, and hope that someone could help me. Goal I try to hide a ...
1
vote
2answers
23 views

SPServices SPDisplayRelatedInfo css

I have modified my newform.aspx to have the $().SPServices.SPDisplayRelatedInfo details of related information is also a lookup, when I choose the columName from the dropdown, it has a hyperlink. ...
0
votes
2answers
45 views

How to filter by document name using javascript and Json

I have two document libraries: bucket and Documents. The user uploads the file to the bucket and when all the field are filled, an event receiver checks if the filename already exists (and renames it) ...
0
votes
1answer
508 views

SPServices SPGetLastItem returns last id for current user

The function SPGetLastItem from SPServices returns last id for items that only the current user has created. I want a function that returns the last id for any user.
3
votes
4answers
7k views

Posting JSON to a REST WCF endpoint in Sharepoint using cksdev

http://ranaictiu-technicalblog.blogspot.com/2011/09/sharepoint-2010-access-wcf-service-with.html?showComment=1323864446083#c4340503928745769810 has an example of using JQuery Ajax to GET or POST to ...