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

learn more… | top users | synonyms

0
votes
1answer
367 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.
2
votes
2answers
105 views

Adding a “next” Button to displayform.aspx

Is there a way of adding a button in the Dispform.aspx or the editform.aspx that will take you to the next item in the list?
0
votes
3answers
31 views

Two jquery webparts on same page. one not working

I have two web parts that use jquery on the same page. this causes one of them not to work. One of them is an actual web part with a reference to ~SiteCollection/Style ...
0
votes
0answers
35 views

How do I display Sharepoint 2010 list items within an external (intranet) HTML static web Page

Overview: I'm currently able to display Sharepoint 2010 List items from 3 Lists within an external HTML page on our company intranet. I use a JQuery script that pulls the RSS feed for each list. This ...
3
votes
0answers
21 views

Click anywhere in data view group by for expand/collapse

I'm trying to get the functionality of being able to click anywhere in the group by header element to expand and collapse the group. I have gotten close where I can click anywhere in the element ...
1
vote
1answer
17 views

Animate left navigation

I am trying to do some branding in SharePoint 2010, how can I make the left navigation as http://tympanus.net/Blueprints/SlidePushMenus/ 'Show/Hide Left Slide Menu' The code which I try left ...
0
votes
0answers
31 views

Loop through array and update metadata on files using relative URL only

I've got a script that combines JavaScript, jQuery, and SPServices to build an array of documents, copy each file or subfolder to an alternate location, then update the original file to indicate it's ...
0
votes
1answer
14 views

Overide Core.js Options?

What is the best way to be able to manipulate objects in the DOM using JQuery/JavaScript, specifically in an InfoPath browser enabled form in SharePoint 2010? If I try to grab a value from an input ...
0
votes
1answer
789 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
2answers
72 views

Display loading/processing while processing using CSOM

My current implementation includes following, User adds an item, once saved it is redirected to the display form of the same item. I have implemented this requirement using below steps. On ...
0
votes
2answers
23 views

Add run with run with elevated privileges for spservices?

I am unable to add users to the group using custom button and SPServices,only site administrators can only able to add the users to the group.can any one help me how to add the run with elevated ...
0
votes
2answers
25 views

Add users to the group using SPServices?

I created a button in sharepoint site using content Editor,when the current users click on the button he must have to add to that particular group,can any one give example how to add current users to ...
3
votes
1answer
43 views

Checking CSOM people editor value

How can we check the user entered key in Client people editor is user or group? I have created a people editor in CSOM. I can save the value to the list successfully. But before saving i need to ...
0
votes
0answers
23 views

Using SPServices' GetListItems to sort by what the current user has “liked”

I'm using getlistitems to grab list data in SharePoint 2013, and I've managed to be able to filter by the current user's "liked" list items... but is there a way to sort by what a user has liked and ...
0
votes
0answers
25 views

discussion board

i am trying to pull and display the items from dicussion board in a content editor webpart and also a column to show number of posts in the discussion board . Any suggestions on how to approach using ...
1
vote
1answer
50 views

Updating document metadata using Javascript or jQuery

I have a large, complicated script that copies selected documents from Library A to Library B when a user clicks a button. At the end of the script (as a final step), I'm calling the three functions ...
0
votes
0answers
16 views

jQuery .validate - submit don't fire after error

Validation plugin works fine except following scenario: user click submit button while text box is empty, get error message, then fill text box and click button again. This time nothing happens. Any ...
1
vote
1answer
577 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 ...
2
votes
1answer
52 views

How to disable Dropdown in infopath IE doesn't but It works in FF

I have a element of type dropdown I would like to disable in an InfoPath form based on a user's group membership. When I use the below code it works in FF but not in IE 10. ...
0
votes
2answers
87 views

Jquery to display the list items in a content editor webpart

Hi Am using sharepoint 2010 and am trying to find ways to display the list items in a content editor webpart using jquery . I want to display them i a html table. Let me know any kind of suggestions ...
0
votes
1answer
281 views

Jquery is not working if page is opend in popup

We have one page that has a "jQuery" document.ready script function. It is working fine if we were to browse it in a new tab. But when we try the same page in a Popup the script does not work ...
0
votes
1answer
9 views

When I add a CEWP my columns titles are condensing

I am following these steps to create a label on my SP new form. When i add the CEWP and insert the code snippet that is provided in the instructions my title columns condense and go from looking like ...
0
votes
0answers
24 views

Update webpart sharepoint 2013 with jquery

I want to update my custom webpart, I tried the UpdatePanel but it updated all the Webparts in my page, so I looked for the Webpart Id then I wrote a script : <script> ...
1
vote
1answer
723 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
99 views

SharePoint 2013 Rest API OData Query

I am calling rest uri from jQuery ajax with filter string comparison startswith as below ...
0
votes
1answer
335 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 ...
0
votes
1answer
25 views

how to access input element in parent from inside iframe in sharepoint

I have the following jquery code and I have inserted it in an html page where I call it inside an iframe in a SharePoint page. I am using this line of code to get the id from the control in the parent ...
0
votes
1answer
388 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> <th>Id</th> </tr> ...
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 ...
4
votes
1answer
978 views

List Item required field: Change of form element Title attribute?

In my SP Online (2013) site I have some heavily customised list input forms, the input fields of which I have been quite happily referencing using jQuery using the following syntax: ...
0
votes
0answers
35 views

jQueryUI autocomplete zIndex issue inside SP.UI.ModalDialog

I'm having an issue with zIndex for jQueryUI autocomplete in a page, autocomplete list is hidding behind the SP Modal popup. Below is the code in my Page1, where i'm trying to show a page ...
0
votes
0answers
22 views

Click to Auto-Upload Templated File in SharePoint

I have a unique use-case that I am trying to address for a project that I am working on. I am looking to find a way to bind an onclick event to the SharePoint file-upload function to upload a file ...
7
votes
2answers
8k views

Adding jQuery to master page

I am trying to customize a Sharepoint 2013 team site. I created a copy of seattle.master and set it as default master page via context menu. I added my custom CSS within head tages like so: ...
0
votes
1answer
436 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 ...
1
vote
2answers
1k views

How to read image file from a URL and save the image in image library in SharePoint 2010

I have a form, and that form has a field for a Picture and a Thumbnail which are currently Single Text fields. What I would like to do is when people input a URL on those fields, I would like to get ...
0
votes
2answers
25 views

Javascript isn't linking in IE for a webpart

I'm adding a web part(farm solution) into SharePoint 2013, the problem that I am receiving is that any scripting link I add(specifically jquery in this example), doesn't seem to be found by internet ...
1
vote
1answer
379 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
0answers
31 views

Sharepoint attachment control

I'm using designer to create a custom edit form and would like to create two controls in that would upload attachments to the list item, I'm using - ...
1
vote
2answers
50 views

Strategy To Manage Deployment Of jQuery In SharePoint?

There are a multitude of examples where jQuery libraries and plugins are used in SharePoint 2010 and 2013 solutions. There are problems with this approach because multiple versions of jQuery can be ...
1
vote
0answers
184 views

Getting Calendar items on Office 365 using REST API

Hi SharePoint Ninjas, I am having trouble with a REST call using jQuery on Office 365 and was wondering if you guys have ever experienced something similar and could give me some hints? What I am ...
0
votes
1answer
43 views

drag and drop folders,Items in sharepoint

I need to drag and drop folders between SharePoint libreries. drag drop items between list. Those are not offered in SharePoint 2013. DO I need a jquey script? And if any one have an idea how to do ...
0
votes
3answers
54 views

How do I add bold text to my form?

Using a script editor on my new form I added this script. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script> <script ...
1
vote
1answer
369 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 ...
0
votes
0answers
25 views

SharePoint 2013 how to add jquery image loader for image library images

I have added an image library in my SharePoint 2013 site I want that when a user clicks an image it should be loaded with any JQuery image fancy box library to display full image with pup up in ...
1
vote
0answers
61 views

Add Read more link in Summary view of Announcement web part sharepoint 2013?

I have added an Announcement Web part in my SharePoint 2013 in summary view I want to add read more link please help me. I am new to SharePoint Development I want to add a Read more link when my ...
2
votes
2answers
2k views

How to get PublishingRollupImage for page in Page library with REST and jQuery?

I have a repeater in a user control and I databind it in code behind like so: var items = list.Items.Cast<SPListItem>() .OrderByDescending(a => ...
0
votes
2answers
56 views

List Query - How to get attachments link

I have a query: function consultaPropostas() { var customlist ; var clientContext = new SP.ClientContext.get_current(); var oWebsite = clientContext.get_web(); var oList = ...
0
votes
1answer
840 views

SPO - /_vti_bin/lists.asmx returns Error 500

I am currently developing a news scroller/ticker in SharePoint Online (Office 365) and am using the follow script to access a list: var emptyResults = "<li>No current ...
0
votes
1answer
29 views

The deployment type “TemplateFile” of file “xxx.js” in Project Item “Layouts” is not compatible

I have deployed my SP solution to farm successfully with some js files, those are added to layout mapped folder. Then I want the same solution to be deployed to SharePoint online. I just chaged the ...
1
vote
2answers
44 views

jquery in SharePoint 2010 layouts folder not working

I have placed the jquery library script in the layouts folder on my server: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\CustomScripts for what ever ...