Questions tagged [jquery]

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

516 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
10
votes
3answers
2k views

Bootstrap in HTML Web Part

I got HTML/CSS from our Designer to implement on a Sharepoint 2010 page. This page is using bootstrap. I implemented it with HTML Web Part and also tried to split the web page layout and work ...
6
votes
2answers
16k 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 ...
6
votes
1answer
2k 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 ...
6
votes
2answers
3k 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 ...
5
votes
2answers
4k views

How can I populate a dropdown with a SP list?

I have a SP List with data that I need to be in a dropdown list. I also need these to have specific classes. I'm trying something like the following but having no luck: $().SPServices({ ...
5
votes
3answers
2k 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 ...
4
votes
1answer
213 views

SharePoint Online Remote authentication using JSOM script

Could anyone share script to authenticate SharePoint Online using jQuery/ajax method. I can see some forum, using POSTMAN tool to authenticate. But I want to do through script not using any tool. ...
4
votes
0answers
112 views

SharePoint Online JSOM Problems adding new item with Managed Metadata field

Hoping someone might be able to shed some light on a problem I'm having adding new items to a SharePoint Online list, using JSOM? I have modified some code I found here on stack exchange, the code ...
4
votes
1answer
903 views

401 (Unauthorized) in Google Chrome

When I Get the document list from SharePoint site I get this error "401 (Unauthorized)" only in Google Chrome, but in IE it works. This is my code function GetListItems() { var siteURL = "http://...
4
votes
1answer
2k views

Cannot find module 'jquery'

I am using this tutorial to try to load jquery into my SPF project. http://dev.office.com/sharepoint/docs/spfx/web-parts/basics/add-an-external-library I followed strictly tsd install jquery --save ...
4
votes
1answer
323 views

Accessing Sharepoint 2013 list from a plain old HTML page (not on SharePoint server)

I have a STRONG need for this. I created dynamic HTML pages that use AJAX to bring in XML files from an Excel spreadsheet. I REALLY want to store the list information in SharePoint 2013 and access ...
4
votes
0answers
49 views

Sharepoint 2010 Advanced Search

This is the question related to the Advanced Search. The second Test Box value "The Exact Phrase is getting cleared", once I search the required Word Documents (like Alerts, and Result Type = Word ...
4
votes
0answers
366 views

Can zRSSFeed handle HTTPS RSS Feed from SharePoint?

I'm working on an internal website for my organization. The Company uses SharePoint to allow orgs to create their own blogs. I created a blog (in addition to a website for my org). I am now trying to ...
4
votes
0answers
8k views

How to use SPServices jquery to add new item

I have a list and I would like to have a link on each item (dynamic) that I can click to insert some data to another list. What I'm after is to get some data when a user clicks an item. (Kind of to ...
4
votes
1answer
374 views

Moving from CEWP to SPFx - import fabric components

Been struggling with this for the past few days. I am quite new to Sharepoint development. Got my head around CEWP and was using office-ui-fabric-js components with code samples from here. I am now ...
3
votes
1answer
118 views

Change image and send filter to datatable on click, via SharePoint jslink

I am using the DataTables jQuery plug-in to drive custom formatting, filtering, and searching on a SharePoint list. The list is an agenda for a conference, with dates, topics, rooms, session types, ...
3
votes
0answers
58 views

How to work with JSOM typed-objects

This is a stumbling block that I keep hitting over and over again. Any advice or tips would be very helpful. I prefer to use the SP REST api to accomplish all kinds of things on our site, but for ...
3
votes
2answers
267 views

People Picker Field Validation without Designer

SharePoint 2010 and unable to use SharePoint Designer Form: Users answer a yes/no question in one column, then provide a name in another column. The people picker column is only required when the ...
3
votes
1answer
274 views

Warning Pop-Up Window Before Saving

I do not know which way to turn. The scenario is that I have created a SharePoint List with a InfoPath form attached to the list. There are numerous individuals that will be touching the form per ...
3
votes
1answer
1k views

SPServices $().SPServices.SPFindPeoplePicker not working for required field

I am using SharePoint 2010 and SPServices to get values from people picker in custom field. It is working fine but not fetching data for required fields. can anyone help me with this. var PP = $()....
3
votes
2answers
1k views

How to restrict the number of lines to show using jquery or css?

i have created simple Custom webpart. It looks like in that web part, Description display multiple line . i have used html P tag to display Description value <p>​Loream Ipsum​Loream Ipsum​...
3
votes
1answer
142 views

How to know which people picker is which

I'm trying to replace all of the "bad" old-style people pickers on our custom new/edit forms with the new good client-people pickers. With this thread I came up with the idea to use jquery to find ...
3
votes
1answer
253 views

JSLink in form tag is not working from schema.xml in my SharePoint hosted app

In the app ,for schema here is my code from schema.xml <Forms> <Form Type="NewForm" Name="{65B105CA-E7D8-4B28-8C9F-5B0DCBA7E0CA}" SetupPath="pages\form.aspx" WebPartZoneID="Main" Url="...
3
votes
2answers
359 views

SharePoint List using jQuery

I have jQuery static code that works well. Code: <!-- CSS --> <style type="text/css" media="screen"> #slider1 { width: 720px; /* important to be same as image ...
3
votes
1answer
433 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 ...
3
votes
1answer
1k views

Force PDF to open in new window/tab

I am using SharePoint Foundation 2010 and attempting to have my PDFs open in a new tab or window. I have been able to get this to work from document libraries by using jQuery. You can see this code ...
3
votes
0answers
3k views

Why Sharepoint FormField's ID is parametrized and how it can take different values after its initial creation?

In SPD 2010, on designer surface of a web part page I insert DataFormWebPart by: "Current Data Source" ("Data Sources Details" Task Pane) --> choose rows --> "Insert Selected Fields As.." --> "New ...
3
votes
3answers
3k views

Getting Calendar items on Office 365 using REST API

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 trying to achieve is to ...
2
votes
1answer
169 views

Using jQuery plugins in SPFx web part

I'm looking for a reliable way to implement jQuery plugins into my SPFx web part (targeting SharePoint 2016 on-prem). I have jQuery installed with npm install and imported with import * as jQuery from ...
2
votes
0answers
38 views

Custom validation for people editor control

How to add custom validation for in asp.net if the user adds more than one username an error message must appear that he can only add one user. Thanks Regard.
2
votes
5answers
324 views

SharePoint Online List Search is not working by using jQuery

I am trying to programmatically trigger a search using the "Find an Item" search box within SharePoint 2013 List Search Box. The plan is to insert text into the search box (an input control) using ...
2
votes
0answers
242 views

Load js plugin if only jQuery is available in SPFx

I have created 3 SPFx web parts which are fine when I test them individually. But if I keep all of them on the page then issues are coming, because of jQuery loading. All three are using jQuery file. ...
2
votes
1answer
808 views

Redirect to thank you page after submitting survey

I'm using sharepoint 2013.I created a survey using the survey app. I added a web part script to the survey. I tried to redirect to a thank you page after clicking the finish button on my survey. It ...
2
votes
0answers
366 views

Sharepoint click event on listview

So I thought I had this script working till I ran into the issue with Ajax. I have the script so if the user clicks on the item it will automatically change the value on the item. It was looking until ...
2
votes
0answers
26 views

Cloud Hyperlink Warning Message

This has never happened to me before. I have a hyperlink that I have added to a page. I have added on the page, not in a list. I add the link on the page without any problems. Clicking on the link ...
2
votes
1answer
82 views

Passing displayed item ID to a newitem form of a webpart

I have a webpart with list B put in a displayform of an item of list A . Lets assume its for adding grocery in your basket where list A contains baskets and list B groceries with a column associated ...
2
votes
0answers
94 views

Key Filters fields which contain Managed metadata columns will float out of the layout if i move the mouse over one of the managed metadata fields

I am working on an enterprise wiki site collection inside sharepoint farm 2013 on-premises. now i enable the metadata navigation and filtering site feature, and i added 5 managed metadata site columns....
2
votes
1answer
171 views

how to implement licensing for sharepoint hosted app?

I create sharepoint app for office 365.I want to implement licensing function for that online sharepoint app ? using https://verificationservice.officeapps.live.com/ova/verificationagent.svc it is ...
2
votes
0answers
22 views

Parent-Child Indexes

I have two (2) lists that I've connected by an "Control ID" field, using the Web Part connection - the thing is, when I update the Child list [using "New Item"], the Parent "Control ID" value does NOT ...
2
votes
0answers
437 views

Performance issues when using Jquery Datatable in Sharepoint

I am currently using Jquery Datatable in Sharepoint, where I am not using ajax in datatable as I am fetching data from multiple tables and after doing than I am joining the list and converting it to ...
2
votes
0answers
20 views

Content editors accessing content on a different site

I have a content editor which links to a text file on a fellow site (same root directory) which formats the list on the page. when I used this site as a template for a site on a different root the ...
2
votes
2answers
637 views

Content Query Webpart (CQWP) Pagination in SPO

I am trying to paginate a CQWP results set but I am struggling with XSLT. Is there an easy way to do it? Should I work directly on the ItemStyle.xsl? Should I use jQuery instead? I can't believe ...
2
votes
0answers
25 views

Can we compose REST query which first apply some function on item then compare?

I have a date which is in Indian time zone, my SharePoint Online site is in different time zone. Now I have a rest query which filters the record. SiteUrl/_api/web/lists/getbytitle('ListName')/items?$...
2
votes
1answer
678 views

Why is my Ajax call returning a 500 Server Error?

I'm currently building an application page for a SharePoint 2010 site. One of the methods on this application page retrieves the User Profile information from the server and displays it to the client. ...
2
votes
1answer
511 views

SharePoint custom JavaScript and jQuery blocked by MDS Minimal Download Strategy

Here's my setup. Onprem SharePoint 2016. I have a master page which is basically a copy of seattle.master and I want to add jQuery and a custom Javascript to manipulate the DOM. The minimal download ...
2
votes
1answer
941 views

Using html2Canvas API to generate images of custom aspx pages

So I have an html table I'd like to convert to an image and I found a pretty neat API to do exactly this. It's called html2canvas. I have been able to use it pretty easily using HTML pages in my ...
2
votes
2answers
1k views

jquery plain multiline text value with CRLF characters

I have a Plain Text multi-line value on my SP2013 list. Text is entered into the box with Line Feed characters. When I use the jquery command in an attached JS program var Falerts = $("input[id$='...
2
votes
1answer
244 views

Display image(preloaders) before content is loaded WebPart - SharePoint 2013

I'm using a plug-in called lightSlider and I notice it doesn't display the whole content on first load until I refresh. I have tried using 1. windows.load, 2. ExecuteOrDelayUntilScriptLoaded, 3. ...
2
votes
0answers
55 views

Aggregate tasks across different sites and display them in custom timeline

I would like to build a timeline where I can aggregate tasks which are located in different subsites. While I was searching around I found this post and I thought to use REST. But my biggest concern ...
2
votes
2answers
57 views

Is There A Way to Determine if More Than One Option in Custom Dropdown Field?

I have a custom dropdown choice field that is created using jQuery after a date is selected and a choice box is selected as "Yes." Here is that function: function queryEvents(date){ $('#...