Questions tagged [jquery]

jQuery is an open-source multi-browser JavaScript library designed to simplify the client-side scripting of HTML. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.

Filter by
Sorted by
Tagged with
1
vote
1answer
677 views

Using Jquery to perform a composite AJAX request

I have been building an application that utilises Salesforce's REST APIs and have been successful with all API requests except composite, which I keep getting a 404 back on. I have stripped the ...
2
votes
2answers
2k views

How do I disable or lock lookup fields on a Visual Force page?

I have a visual force page where I want to disable the user from editing some of the fields on it. I used the css class attribute to identify these fields. Input Textboxes were disabled successfully ...
1
vote
2answers
1k views

Web to Lead, Date showing in Debug page, but not in the Lead

My contact for is using 2 date pickets, Check-in/Check-out dates. When I fill out the form the dates show fine in the debug page. I receive and email with a link to view the lead and the dates are ...
2
votes
1answer
860 views

cannot use select2 jquery library in lightning components with LorckerService activated

I used the select2 jquery Library in order to have better look and feel on select element on my lightning component. It worked fine but when I activated the locker service this feature didn't work ...
1
vote
1answer
343 views

Persisting CSS through apex:outputPanel refresh

I have an VisualForce page set up like this: <apex:actionPoller interval="5" reRender="panel" action="{!getPanelRecords}"/> <apex:outputPanel id="panel"> <button onClick = "...
0
votes
2answers
175 views

VF page Command button Rerender issue loading JQUERY

VF Page: <div class="modal-footer"> <apex:commandButton id="filter" styleclass="btn btn-primary" value="Go" action="{!accountWrapperObject}" reRender="...
0
votes
1answer
117 views

Issue with Bootstrap Select All check box in apex:repeat WrapperList

I have a page with bootstrap Checkbox. The select All is working fine, however each row wise select check box is not working properly. only first row checkbox is selected and unselected. If I click on ...
0
votes
1answer
685 views

Bootstrap Select All check box in apex:repeat

I have a page with bootstrap Checkbox. The select All is working fine, however each row wise select check box is not working properly. only first row checkbox is selected and unselected. If I click on ...
3
votes
1answer
2k views

Lightning Application: $A.get(event) returning undefined when called from a jQuery callback

I am using a jQuery widget within my lightning application. The jQuery widget is simply a multi select input which calls a function on selection: <!-- component --> <ltng:require scripts='/...
7
votes
3answers
9k views

Is it possible to call a Lightning Component from a Javascript function?

I am using a jQuery Datatable inside one of my lightning components, and would like to call another lightning component on click of one of the fields in the Datatable. On click of the "edit" field ...
1
vote
2answers
743 views

Click on button keeps the box moving for thrice [closed]

I have below code where when I click the button, square box moves once. I need to move it further on second click. Again move it on third move. On fourth click it will reset to default position. I can ...
1
vote
1answer
411 views

Disable actionPoller with Javascript

I have an actionPoller visualforce component rerendering an output panel every 5 seconds. This works fine, however when I switch to another outputPanel 5 seconds later the action poller will rerender ...
0
votes
1answer
167 views

How to Avoid Adding Extra Table Row When Enabling Through Checkbox Click Using Jquery and Visualforce?

I encounter this weird problem in visualforce page wherein for every checkbox click, there is an extra table row added, whether I tick/untick it. The table row is supposed to display only if I tick ...
0
votes
1answer
518 views

Display/Hide an Empty Table On Click of Javascript Checkbox Using Jquery and Visualforce

I am trying to search anything about automatic rendering of an empty table row for each selected javascript checkbox using jquery and visualforce. The aim is for every selected row from CustomObj__c,...
0
votes
1answer
920 views

drag and drop using jquery full calendar

I am trying to replicate drag and drop functionality using Jquery Fullcalendar plugin from below link - https://salesforceprojects.quora.com/Implement-full-calendar-drag-and-drop-in-Visualforce-page ...
0
votes
0answers
137 views

How to display selected date in a label

I have this below code where i want whenever i will select start and end date and click on + sign, it should add it in a label below and display. How to achieve this - <apex:page docType="html-5....
2
votes
1answer
506 views

How do I make the labels invisible?

Here is a very simplified version of a visual force page that I have created. This page displays two fields from the opportunity object. I am attempting to hide a few fields from this page. My idea is ...
0
votes
2answers
1k views

query _click tables to see whos clicked a certain email piece

I'm trying to query the _click table to fill a new table with the email of the users who have clicked a link in the email and on the date clicked. What would my query look like? Also trying to figure ...
1
vote
1answer
1k views

how to show/hide bootstrap popover on radio button value set to false [closed]

Im listening for a change event on radio buttons. If the value is set to false I want to show the popover. Below is what I have, but the popover doesn't show. $j = jQuery.noConflict(); ...
2
votes
1answer
1k views

show/hide a div if radio selection is true

I want to show all contents inside a div if a user selects a radio button (true). If false to hide it. By default I have styled one of the div to display:none. Its partially working. My trouble is ...
1
vote
0answers
473 views

Can't find variable: $

I'm got this error in lightning while testing in an iPad (issue only occurs in iPad / iOS. All other os , desktop,tablet works fine). My solution is locker service enabled. All the resources like ...
0
votes
2answers
239 views

Access salesforce related list hover links in jquery

I need to disable the 'hover' functionality of one of the related list hover links. It just needs to go to the related list tab/section when clicked. It shouldn't have the hover functionality. Can we ...
0
votes
1answer
551 views

Removing disabled="true" does not allow form to submit

I have an apex:commandButton which I use for uploading an attachment. This works ok but I want to disable the button until a user has actually browsed to and selected a file. What I have done is the ...
0
votes
1answer
106 views

JQuery function wired select list [closed]

Hi everyone i have a Jquery function wired to a select list onchange. When i change the class of the select list (Error class) the onchange snap. How i can inhibit the onchange when i change class? ...
1
vote
0answers
579 views

Errors when using DataTables in Lightning Components?

We're using jQuery datatables without our components but are getting TypeError: $(…).DataTable is not a function errors a lot of times when we load the page (not every time though). In our component ...
0
votes
1answer
578 views

Using jquery plugin for pagination is not saving the previous page selected values

Visualforce Page: Plugin: <apex:includescript value="//code.jquery.com/jquery-1.11.1.min.js" / > <apex:includescript value="//cdn.datatables.net/1.10.4/js/jquery.dataTables.min.js" /> &...
6
votes
2answers
1k views

jQuery NiceScroll not working when Locker Service is active

I am having an issue when using NiceScroll (GIT Hub) when locker service is enabled. If the locker is turned off, it work's fine. Code:- Component: <ltng:require scripts="{!join(',', $...
1
vote
0answers
95 views

afterScriptsLoaded Only Working Once and Not For Tabs

I am using afterScriptsLoaded to call a function after my jquery has loaded. I have multiple tabs that load charts. On the first pass, each tab is loaded lazy and the charts show up nice. On any other ...
0
votes
2answers
475 views

VF jQuery Autocomplete: Controller List

I have a jquery autocomplete that is "working" only if I hardcode an array in javascript. Here's what's happening. Type__c is a picklist. Once I change the picklist, I call a method in my extension ...
1
vote
1answer
310 views

jQuery UI not loaded in custom lightning component for community builder

I am trying to include jQueryUI version 1.12.0 in one of my lightning component (I need it for autocomplete). That lightning component is used in community builder. What I did was to include jQUery ...
2
votes
3answers
5k views

Change Background color of row in pageBlock Table

I have created a VF page where in I am displaying some rows in a Table. What i am trying to achieve is - there is one row named "Status" in the table.Status can have 3 values - RED , GREEN , GREY. ...
5
votes
1answer
814 views

JQuery Treetable in Lightning is not working when navigating from standard pages to page where treetable is implemented

I have a requirement where I use jQuery Treetable in Lightning and I have implemented the same as below code. I created a Lightning Tab from this component and used in Lightning Experience. Component: ...
2
votes
1answer
54 views

Inconsistent output with jQuery and Lightning

With jQuery I'm able to select elements on the page on my lightning app. When I execute this command in the console $('#all-items table tbody tr'); I get When I assign this command to a variable in ...
0
votes
0answers
379 views

How to resolve jquery popup issue?

When i click on custom button called Request for warranty as admin the Jquery popup is fine. But when i click on same button as partner (logged into partner user) the jquery message is like ...
2
votes
0answers
502 views

Dragging and Dropping Jquery functionality not working in controller.js after loading Jquery libraries in Lightning

I have a requirement in lightning to drag & drop records to multiple divs from a list of records. I tried to implement it using jquery in Lightning,I am facing issue in loading the jquery ...
1
vote
2answers
8k views

How to call a controller method from jQuery/javascript

Can any one tell me how to call JavaScript function from jquery. Jquery: $(document).ready(function() { $('.email2Class').bind("cut copy paste",function(e) ...
0
votes
1answer
463 views

"Catch" iPad back button event in Salesforce One

I'm confronted with following problem: I have created a jquery-mobile application within salesforce, to be used on the ipad in salesforce one. In the app, the ipad back button is displayed. If a user ...
4
votes
1answer
840 views

Locker Service problem - jQuery offset() returning 0 values for left and top

I've been trying to get the fullcalendar scheduler plugin to work with Locker Service and one of the issues I found was that the jQuery function offset() is always returning 0 for top and left. To ...
4
votes
2answers
1k views

How to show Columns of Visualforce Page Based on Custom Settings Fields?

So I got my Visualforce Page to display a table with columns (e.g. Version, Date, Type, etc.) as well as values from a dataset for each corresponding column of the next rows. I'm trying to integrate ...
3
votes
0answers
398 views

jqGrid issue after enabling lockerservice

We have a lightning component that uses jQuery2.2.4 and jqGrid 5.1.1. After enabling lockerservice this component stopped working. We have come up with a simple test case to reproduce the error. App ...
1
vote
3answers
757 views

JQuery Datatable renders nested Datatable on Visualforce rerender

I've just recently started incorporating jQuery into my Visualforce pages in form of the Datatable plugin. It's worked very well so far, but I'm running into a problem when I need to rerender the ...
0
votes
1answer
103 views

JQuery or plain JS for hiding elements on Visualforce page

I hope this question is not too opinionated. I want to hide a few elements on a Visualforce page, when a checkbox or button was clicked. Would it be "overkill" or bad practice if I include the jQuery ...
1
vote
2answers
140 views

Image link not being displayed in jquery mobile

I am using the following piece of code function showContacts(records) { $j('#cList').empty(); $j.each(Contacts.data(), function() { var newLi = $j('<li></li>');...
1
vote
2answers
902 views

Select element using jquery with lockerservice

I'm currently using the fullcalendar lib to show some events on a basic calendar. Although working with lockerService activated, whenever I use the Salesforce Lightning CLI for code validation I get ...
3
votes
1answer
624 views

Why the value of var is NAN in summation of integers [closed]

I have a method in javascript which calculates value of var sum in below code function calculateLppAmount() { var sum = 0; j$('.lppDetailAmount').each(function (i, obj) { ...
5
votes
1answer
658 views

JQuery-UI and jQuery-DataTable compatibility with Lightning Locker Service

Is there any version of following libraries: jQuery-UI (https://jqueryui.com/) jquery-DataTable (https://datatables.net/) Bootstrap JS (http://getbootstrap.com/javascript/) That are compatible ...
3
votes
2answers
454 views

Global AjaxStart and Stop event on visualforce page

I am new to Salesforce and I want to achieve what I used to do in html pages. I defined ajaxStart ans Stop event and want it to be called whenever Apex execute it's actionFunction using Ajax. here is ...
5
votes
2answers
2k views

Uncaught TypeError: Cannot redefine property: title throws at .../aura_prod.js (Lightning Locker)

Lightning Locker seems to be causing major issues with the jQuery selector and find actions (and by extension most other jQuery functions). Certain errors were arising due to jQuery 2.1.4 that are ...
2
votes
3answers
2k views

Locker Service - Uncaught TypeError: Cannot read property 'expando' of undefined

Uncaught TypeError: Cannot redefine property: title throws at https://final-bugfix1-dev-ed.lightning.force.com/auraFW/javascript/dpJ3LUIaUXt-CtvrXqBcnQ/aura_prod.js:459:356 I have enabled Locker ...
4
votes
1answer
3k views

How to limit maximum number of characters that can be typed into input field? maxlength attribute not working

I'm using the UIInputField. I want to limit the numbers of characters that can be typed into input field, however, there is an issue. I tried using the "maxlength" attribute, but it doesn't effect ...

1
4 5
6
7 8
15