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.

learn more… | top users | synonyms

3
votes
0answers
23 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 ...
0
votes
0answers
25 views

How to set value of controller's variable from javascript ? [duplicate]

I have a javascript function which has to set a value of variable in my controller based on user input in confirm() dialog box. This is my code function alertMessage(){ var hop_size =...
1
vote
3answers
34 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
31 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 ...
0
votes
1answer
32 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>');...
0
votes
1answer
72 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
28 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) { ...
3
votes
1answer
86 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
44 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
1answer
144 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
2answers
200 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 ...
3
votes
1answer
64 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
vote
1answer
74 views

Unable to render charts with jQuery and Flot.js libraries when LockerService is enabled

I've been using Flot.js to render some charts inside lightning components and everything worked fine until the new LockerService update was activated. As far as I researched, many people have had ...
0
votes
2answers
37 views

Enable corresponding command button when corresponding checkbox is selected in pageblock table

I have a requirement where if user selects an apex input checkbox then apex command button should be enabled. These two (checkbox,command button) are in columns of page block table.Below is the code ...
3
votes
2answers
58 views

Map Visualforce Input picklist values

I need to be able to map a Picklist field values in a visualforce page, for use with some JQUERY. Without using VF/SF it would look something like this: HTML: <div id="AU" class="resultHide" ...
3
votes
1answer
78 views

Jquery .val() is giving undefined since Salesforce Summer'16 release

I have a Lighting app which was working fine, before Summer'16 release. There were issues with Jquery 3.0 thus, downgraded to Jquery 2.2.4; When I am trying to access html select element, it is ...
-1
votes
1answer
53 views

Fetching records by using JQuery [closed]

How to display all records which are available in custom object by using jquery plugin(Same as pagination in visualforce page).
2
votes
1answer
46 views

Fullcalendar is not displaying on visualforce page

I have been trying to show events that are accociated with contact on vf page using fullcalendar plugin, I am not getting any error but calendar is not getting displayed on vf page. Controller in vf:...
1
vote
2answers
143 views

Lightning Component jQuery behavior in Summer16

I am having quite a bit of problem with jQuery as of Summer 16 updates. We have a developer edition and a normal dev sandbox and both behave very differently with the same browser with the same code. ...
0
votes
0answers
30 views

Dynamically rerender apex:outputPanel using dynamic id using jquery

I have a requirement wherein there will be different blocks each block elements will have different id's generated dynamically, i am facing issue while rerendering outputPanel dynamically.As first ...
2
votes
2answers
276 views

Attaching jQuery library in lightining component causing an error on Summer 16

I'm using jquery as static resource. <ltng:require scripts="/resource/jquery/jquery-2.2.4.min.js" /> In firefox it throws an error: TypeError: fn is undefined throws at https://light-...
1
vote
2answers
125 views

Error in $A.getCallback() [ReferenceError: $ is not defined]

This is my controller code : doInit : function(component, event, helper) { var action = component.get("c.getpickval"); var inputsel = component.find("InputSelectDynamic"); var opts=[]; ...
1
vote
0answers
38 views

jquery datatable not sorting all records [closed]

I am using jquery datatable show the result. but some reasons i created custom pagination through standard set controller and disabled the jquery datable pagination. While sorting the columns it ...
0
votes
2answers
52 views

Selecting a element by ID dynamically (JS/jQuery) [closed]

I have a list of html elements which I want to target one at a time such as: thisIsAnId1 thisIsAnId2 thisIsAnId3 I would like to select these individually and dynamically with jQuery, however due ...
0
votes
1answer
49 views

Edit Image Before Upload [closed]

I have a requirement like after choosing the file there should be a section below that for edit purpose so that i can crop the image and a button should be there to replace the original file with the ...
0
votes
0answers
50 views

how to get value of id in apex repeat when used inside bootstrap carousel

I have designed a survey page and I have used bootstrap carousel to slide the page which 2 to 3 questions per page using apex: repeat. The id's are getting dynamically generated for each Component ...
1
vote
1answer
30 views

Problem updating only values in current pageclocktable row using JQuery

I have a visualforce page that we use for product selection on our opportunities. I've updated it recently with a couple of Jquery functions that allow users to edit the sales price and auto-calculate ...
1
vote
5answers
459 views

Unable to load jQuery in Salesforce Lightning Application after Summer '16 Release

I have a couple of applications built in Salesforce's Lightning Components. Recently Salesforce released their Summer '16 Major Release this past weekend, on June 4th 2016. Something weird happened ...
0
votes
1answer
30 views

Get input field value on removing the row using javascript

I have below code that has a pay date add button "Add Pay Date" which adds a row having amount, date and retry payment and remove row link. I want to grab the amount field of the row when the remove ...
0
votes
2answers
35 views

Input Field onchange not working

I have an input field in apex given below <apex:inputField value="{!paymentDetails.Amount__c}" onChange="enableLppAmount(this)" required="true" /> Also I have a simple input box <input ...
1
vote
0answers
24 views

Update an uneditable input box [closed]

I have two objects X and Y. They share master detail relationship. X is the master object and Y the detail object. Y object has a field called currency shown on the page and has a button whose ...
1
vote
1answer
67 views

Ability to limit dates/ranges for selection on calendar in a Date field in salesforce

Is there an option to restrict the pass dates and say dates after few months in Date picker in VF Page? Requirement is like a User shouldn't take an Order/Opportunity of past dates and not which ...
1
vote
1answer
35 views

Cross Domain API Call from JQuery

I am trying to submit a HTML form from my VF page to different domain using jQuey syntax similar to below: $('#loginform').submit(function(){ $.post($(this).attr('action'), $(this)....
0
votes
0answers
21 views

Edit mode record displaying last in the list view in jquery datatable

I am using jquery datatable in vf page. I have one issue. when i trying to edit the record, that record automatically going end of the list. Is there a way to stay on the same row. As per my ...
1
vote
2answers
33 views

How can I access VF variablein java script and increment the variable based on href click and then display the incremented variable in vf page?

How can I access VF variable(value="{!articleAttach.downloadscount}") in javascript and increment the variable based on href click and then display the incremented variable in vf page ? <apex:...
10
votes
2answers
121 views

Lightning and Jquery error: Uncaught Error: Access denied for insecure view

I'm just starting out in Lightning (Summer 16 sandbox) and I'm trying to use jQuery, but getting the error: Uncaught Error: Access denied for insecure view in aura_prod.js:1:27. I'm testing in a very ...
1
vote
1answer
76 views

Requested unknown parameter '1' for row 0

I have problem with jquery databale. I am getting error "Requested unknown parameter '1' for row 0". sorting also not done correctly. It is sorting based on the previous columns. below is my code. ...
1
vote
2answers
51 views

Connect PageblockTable and Plain HTML Table in visual force using sortable in Jquery

Im Trying to connect pageblocktable and plain HTML table in visualforce page but I'm not able to do. When Im Dragging element from table 1 to table 3. element is not being appended to table 3. Can ...
0
votes
0answers
27 views

How to take out an account from one list and push it to another

people. I have to change a custom option field of Account with drag and drop. So I made 3 account list(for level1, level2 and level3) bound to 3 tables in the visualforce and make it draggable and ...
1
vote
2answers
54 views

Need to restrict <apex:inputFile> extension using jquery

I am working on Visualforce Site. I am using to attach the attachment in contact. I want to restrict the user to attach only image, PDF or .jpg file at client side. How can I do this using jquery? ...
0
votes
1answer
65 views

how to add if logic in visual force onclick method

I have a visual force component, from a visualforce commandbutton, I am calling modal window with the help of Jquery. How can I call the modal based on certain condition if it pass. Below are the ...
1
vote
2answers
88 views

Find all elements ID starting with or Ending with using JQuery in Visualforce [closed]

I am trying to search all input elements that starts with a partcular set of characters such as 'idAcc' where my VF page has two inputfields with id = idAccFN and id= idAccLN respectively. <apex:...
4
votes
3answers
67 views

How do I reload all JavaScript on the page using oncomplete?

I want to reload all this javascript/jquery. I tried sticking it in a function but it doesn't seem to be rendering properly. <script type="text/javascript"> var $ = jQuery.noConflict(); ...
2
votes
2answers
102 views

Jquery change/click not working with visualforce tags

I am trying to use jquery from visualforce page. Have added the min.js library file too..Below is the code piece sample. I'm able to get 1st alert output i.e. - 'ready to go' inside document.ready ...
0
votes
1answer
32 views

Passing values using actionfunction with javascript not working

I'm trying to filter a page based on two dates, this is my current actionFunction: <apex:actionFunction action="{!modifySoQLBasedOnNewDataRange}" name="passDateValues" status="loadingDiv"> <...
2
votes
0answers
19 views

How to paint a visualforce grid without using APEX controller?

I am reading an array of JSON records from a third party site using jQuery and storing it in visualforce array. This is the jquery code below. $.ajax({ xhrFields: { ...
0
votes
0answers
74 views

Want to onmouseover, onclick, onselect action function on VisualForce component. How can I do it?

<apex:component controller="AutoCompleteV2_Con" selfClosing="true"> <apex:attribute name="SObject" description="SOQL Object to query" type="String" assignTo="{!sObjVal}" required="...
0
votes
0answers
25 views

Error To get values for each row in javascript

Previous Coding : <apex:inputfield value="{!qli.Name}" id="Name" style="width:110px" StyleClass="AutoPin" onmouseover="myfunction();javascript: nicopinClient = '{!(ROUND(rowNum,0))}';"/> <...
0
votes
1answer
31 views

how to select this div class defined deep inside <tr>?

Hello I am working on a long project and in that i have to access a div class defined inside a table <table> <tr> <td> <apex:repeat> ...
2
votes
2answers
54 views

How to display the formula field resource image using visual force in sites?

I had used this formula field to display the image from static resource. IF(Lead_SCORE__c >= 0.90,IMAGE("/img/samples/stars_500.gif", "5 Stars"), IF(Lead_SCORE__c >= 0.80,IMAGE("/img/...