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
2
votes
1answer
303 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 ...
3
votes
2answers
2k 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
645 views

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

I have a Lightning 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 ...
-2
votes
1answer
1k 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
664 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
949 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. ...
2
votes
2answers
2k 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-...
0
votes
2answers
2k 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=[]; ...
0
votes
2answers
15k 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
1k 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 ...
1
vote
1answer
108 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
4k 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
159 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 ...
1
vote
2answers
8k 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
35 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
3k 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
813 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)....
1
vote
2answers
88 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
612 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
10k 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
638 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 ...
2
votes
2answers
2k 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? ...
3
votes
2answers
21k 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
807 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
1k 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
505 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
1answer
67 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: { ...
2
votes
2answers
406 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/...
2
votes
2answers
2k views

Jquery selector is not working properly in subsequent loads in lightning component

I have a lightning component which set a div's background color to red in the doInit method using jquery,is added as an lightning tab. When i visit the tab in lightning experience for the first time, ...
4
votes
1answer
323 views

DOM modification feasibility in lightning

I want to implement Auto Compete in lightning, for this I have to use jQuery and jQueryUI and I have to directly modify DOM of component as well. Will it be allowed by the Salesforce ? Will is cause ...
3
votes
1answer
663 views

Using jQuery to add numeric values in Apex:repeat

I have a row that displays numeric values from an apex:repeat. I'm looking for a way to loop through and add the values to display the total. I'm sure this can be done with jQuery and I feel like I'm ...
1
vote
0answers
809 views

How to preserve the state of accordion data-toggle on postback?

I have a Twitter Bootstrap accordion data-toggle binded to a list, in my visualforce page. On page load, the list will be in collapsed state by default. When the user expands it and performs any ...
1
vote
2answers
5k views

Adding Error Message to Input Text using javascript/jquery in Visualforce

My requirement is , I wanna add an error message to field seems like standard error only using apex , I don't wanna make them required. Should be like: Update: Apex Class: public class ...
1
vote
0answers
413 views

How to make html datalist compatible on IOS which is present on my visualforce page?

<apex:inputText list="{!listOfStringElements}" id="userInput" onChange="alert(this.value);"></apex:inputText> In the above code the list attribute generates a dynamic datalist but the ...
1
vote
1answer
732 views

Tablesorter.js doesn't sort table as expected

I have implemented table sorting with the help of jquery tablesorter. Everything works fine, except that one of the row in one the column is not sorting properly. I tried all options mentioned in the ...
0
votes
1answer
431 views

Jquery conflict in VF Page

I am using custom component, that component controller called jquery-1.11.3.min.js. after that i called jquery-1.11.1.min.js for datatables. If i removed jquery-1.11.1.min.js file datatables not ...
0
votes
0answers
682 views

How to prevent to run multiple times when click multiple times on one custom button

I have one custom button. When i click on that button, That will send an email. But some times it sending multiple emails because if i click on that custom button multiple times at a time.
0
votes
1answer
296 views

passing javascript variable from visual force component to apex controller

how to pass jquery variable from visual force component to apex controller? The requirement is ,need to validate by checking the storage available in salesforce while uploading files , if the files ...
2
votes
1answer
2k views

enable disable command link on entering input text [closed]

I have a command link in my vf page and an input text. I am trying to initially have the command link as disabled and when a user enters the text in the input then command link becomes enable and if ...
0
votes
1answer
383 views

Pre-populate JQuery date picker in Apex

Page: <apex:input value="{!startDate}" label="Start Date" id="date1"/> <script> $( document ).ready(function() { $.datepicker.setDefaults( $.datepicker.regional['en-GB'] );...
1
vote
1answer
77 views

Jquery Versions Breaking Each Other When loaded in Page. How to Fix Functionality?

I have a Visualforce page in which there are jQuery libraries included. I'm not familiar with why there are more than one library file loaded. I have a VF component included in the Visualforce page ...
0
votes
1answer
1k views

Add text boxes on button click using jquery in salesforce lightning component

I want to add text boxes on button click using jquery in lightning component. On a button click i am unable to maintain a counter value in helper file. Where can i maintain counter value. How can i ...
2
votes
2answers
789 views

Calling JQuery Method from dynamically created Label or HyperLink (Lightning Controller)

I have a requirement to create label dynamically in a Lightning controller I tried the below code - But not working. DivMethod : function(component, event,helper) { //Calling as per JS syntax $("#div"...
0
votes
2answers
1k views

Visualforce pageBlockTable - update values in cells on load

I've been developing a page that displays dollar amounts in a table, and allows updates to those amounts. This table is read from and writes to a JSON string. Some of these dollar amounts have many ...
2
votes
2answers
476 views

enhancedLists are not rendering properly inside jQuery UI tabs or tabPanel

Using apex:enhancedList tag inside jQuery-tabs or apex:tabPanel only renders the listView of default tab correctly. If I switch to another tab, I'm loosing the view. <apex:page controller="...
0
votes
0answers
1k views

Call javascript from visualforce page to visualforce component

Visualforce component : <apex:component controller="AutoCompleteV2_Con" selfClosing="true"> <apex:attribute name="SObject" description="SOQL Object to query" type="String" ...
2
votes
1answer
935 views

Jquery text method not displaying special character

I have the following piece of code <button type="button" onclick="SetApprove('{!myPA.P__c}'); jQuery('#approvePName').text('{!myPA.P__r.name}'); jQuery('#approvePType').text('{!myPA.P__r....
3
votes
0answers
494 views

Can we scan barcode and QRcode in SF1 app without clicking image

I have a requirement where I want to scan Barcode and QRcode from SF1 App something like https://andrastoth.github.io/webcodecamjs/ But the problem is, this is in Javascript and we are using ...
1
vote
0answers
295 views

How to Set Validation on Date picker

<apex:page standardController="Media_Information__c" extensions="MediaInformationController"> <apex:includeScript value="{!URLFOR($Resource.JS, '/js/jquery-1.11.1.js')}"/> &...
2
votes
1answer
1k views

Populate Day value in apex:output using javascript

I am trying to populate day of date in a list of SObject using JavaScript. I have written logic for getting day it works fine. Now I have to set Day. Page-block table Day column code is <apex:...

1
5 6
7
8 9
15