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
21
votes
2answers
6k views

What actually happens on re-render?

I would like to know what actually happens on re-render (Ajax Call and DOM replacement) in Salesforce. My Idea: The ajax call is made to get data. On completion of the ajax call, the DOM is ...
13
votes
5answers
7k views

How do I set the id of an apex:pageBlockTable row?

I'd like to be able to assign each row in a table an Id so I can easily find the row(s) later using JavaScript. I see where I can set the id of the table but I'd like to also assign an id to each row ...
11
votes
3answers
8k views

jquery in a visualforce page

I am new to using jquery in visualforce and seem to be stuck just getting the static resource to work correctly. I have two js files, one is the jquery the other is a qrcode generator. Both are ...
11
votes
2answers
260 views

How can I use jQuery 1.11+ while also using Streaming API?

Original Question: What's the lastest version of CometD that can be used with Streaming API? In Salesforce Streaming API documentation, it says Salesforce uses CometD version 2.0. But in their code ...
10
votes
4answers
5k views

Has anyone done Drag and drop multi-upload functionality for attachments/files?

I'm trying to create a visualforce page where someone can drag and drop attachments to upload them and they can see a preview of attachments that they have already uploaded. There are a ton of jquery ...
10
votes
2answers
595 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 ...
9
votes
2answers
979 views

Lightning Components: Will jQuery be unusable after Summer'17 and in future releases?

I read a lot about Locker Service becomes more and more powerful, restricting what we do (or hack) in Lightning Components. Will the 3rd party library jQuery be unusable after Summer'17? I'am aware ...
9
votes
1answer
2k views

Error in loading the iFrame in Salesforce 1 Platform:

Scenario : I have built desktop based Force.com platform and now i have enabled the Salesforce 1 Mobile app on my environment. Now if i try to load the same Desktop based Quote Detail page on Iphone ...
8
votes
2answers
9k views

How do I use Javascript or jQuery externally to send data to Salesforce Leads?

I have a website form using HTML and jQuery/Javascript on my own domain that I want to post to Salesforce (web2lead or not, as long as it gets there) using an ajax call. I keep getting the Access-...
8
votes
1answer
2k views

jQuery in Visualforce does not work in Firefox

For some reason jQuery that calls into a save actionFuction does not work in Firefox (but works in Chrome/IE). All it does is refresh and reload the same VF page, instead of creating a new oppty. ...
8
votes
3answers
1k views

Static Resources being loaded in different order

I am developing a Salesforce application that is using jQuery, jQueryUI and a custom plugin. The script tags in the page markup are in the correct order: <script type="text/javascript" src="/...
7
votes
4answers
9k views

Using jQuery to disable VF page button onclick

Quick background: I've already tried disabling onclick via apex, but my disable does not execute fast enough in the UI. I'm trying to incorporate jQuery in my VF page code so that a button is ...
7
votes
2answers
381 views

jQuery & Angular in Salesforce

I am very new to Salesforce development coming from jQuery/Angular framework. Can I develop UI containing angular/jquery in Salesforce ?. I am basically trying to learn Salesforce via an approach in ...
7
votes
2answers
2k views

$A.enqueueAction is hit, but not executed until another event fires in page (SweetAlerts)

Im trying to use SweetAlerts to confirm the deletion of a record. https://limonte.github.io/sweetalert2/ Im extremely green when it comes to javascript/jquery. Everything works fine without the Alert....
7
votes
1answer
3k views

Jquery not initialised after rerender

I'm build an Account drag and drop UI using Jquery. Here is the code <apex:page controller="AccountListViewController" > <apex:stylesheet value="//code.jquery.com/ui/1.11.4/themes/...
7
votes
2answers
5k views

Using jQuery with apex:tabPanel in visualforce

I am using jQuery library in my visual force page, but I've faced a major problem when I tried to use tabs "apex:tabPanel". <script src="{!$Resource.jQuery}"></script> <!-- If I delete ...
7
votes
3answers
8k 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 ...
7
votes
1answer
228 views

Lightning component Slowness after Enable Lightning LockerService Security is turned On

I am using jstree (jQuery component) in one of my lightning component and i am experiencing unusual delay after turning on Lightning LockerService Security, this delay is noticeable in hover, scroll ...
6
votes
2answers
990 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(',', $...
6
votes
2answers
3k views

set Focus on SelectOption list on apex Page

I stucked in visualforce tag, Actually I have three input elements which are below 1) First is Picklist type 2) Second is inputtext type 3) Third is also inputtext type. These three elements are ...
6
votes
1answer
794 views

jQueryUi input[inputIndex].hasOwnProperty is not a function

I'm trying to use jQueryUi V1.11.4 is a Salesforce Summer 17' Sandbox and I get this error : Uncaught TypeError: input[inputIndex].hasOwnProperty is not a function throws at /resource/1498467744000/...
6
votes
2answers
920 views

Locker Service and Fullcalendar.io

I have seen that there have already been some questions regarding the open source Fullcalendar.io and the various libraries associated with it, and the strict requirements of Locker Service, but I was ...
6
votes
1answer
2k views

Visualforce rendered with jQuery

Another problem has come uppon me. I have a button which shows a form with a list of inputFields with a map as a value. Since I have to populate the Keys before I show the form, I was giving me an ...
6
votes
2answers
5k views

jQuery modal popup is trapped in Visualforce page

I'm trying to get a jQuery modal popup to appear when the user opens an opportunity detail page. The popup is being rendered when the page loads however it seems to be trapped inside the visualforce ...
6
votes
2answers
7k views

Getting size of a list in javascript or jquery

I have a list on my controller. I want its size in javascript function. How to get it?
6
votes
1answer
612 views

jquery version 2.2.4 with lightning component version 40

Before summer 17, the jquery version 2.2.4 was working well with locker service. Now, with summer 17, we have locker service enabled automatically. With this, if we update our components to version 40,...
5
votes
2answers
570 views

How to run “ $('div').clone().appendTo('.wrapper'); ” in LWC? [closed]

I want to achieve this in LWC. I want to call the same HTML content (ex- div, p) multiple times in iteration & append them one below other as shown in above link. I used this $('div').clone()....
5
votes
2answers
8k views

how to make field required via javascript

Depending on the value of a picklist I'd like to toggle a set of fields from required to not required. I've been able to add the divs to make it look required 'red bar in inputField'. Its still not ...
5
votes
3answers
6k views

How to force an outputPanel refresh using jquery

I have an apex:outputpanel that I'd like to force to refresh from within some jquery event handlers, rather than the extreme of a complete page refresh i.e. location.reload(); Any ideas on how from ...
5
votes
1answer
2k views

jQuery won't execute, even with .noConflict();

I've googled this extensively and still can't debug the issue - I'm setting var $j = jQuery.noConflict();, I've verified that the js and css files are loading properly on the page. Can anyone see what ...
5
votes
3answers
6k views

How to create collapse and expand functionality between pageblocks in visual force

I am tryin to create expand and collapse functionality between pageblocks.The scenario is when i click the collapse button in one pageblock ,it should render another pageblock.How this can be achieved ...
5
votes
2answers
5k views

Autofill state and city when typing zipcode

I know this would be crazy to have feature!!! Is there a way where when the user enters the zip code do an automatch and fill the state and city ? I was looking at http://daspecster.github.com/...
5
votes
1answer
1k views

How can I get the field type of an inputfield displayed within a repeat tag?

Background I have a Map of sObjects and a List of API field names (from Custom Settings) to dynamically control the fields that display in a table on a Visualforce page. Here's the Apex to get all ...
5
votes
1answer
5k views

CORS whitelisting not working as expected

I'm having an issue with CORS where I'm unable to make a POST request to a Salesforce site from another site, but one I have listed in my CORS whitelist. Not sure if I have something set up wrong, or ...
5
votes
1answer
785 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: ...
5
votes
1answer
32k views

Filter by multiple conditions / drop-downs using DataTables - Table plug-in for jQuery

Using this example from http://www.verticalcoder.com/2014/11/21/datatables-in-visualforce-part-1/ I implemented a Visualforce page that creates a dropdown and filters records in the datatable based on ...
5
votes
1answer
2k views

LWC is it Possible to Load the JQuery Plugin Datatables in a Lightning Web Component?

Edit: Solved! I'm struggling to load the infamous datatables.net jQuery plugin into my Lightning Web Component. Even using the most basic example, I haven't had any luck. It seems like there are a ...
5
votes
1answer
388 views

Attempting to use jQuery to POST to an external server from a Lightning Component

I'm a new dev so feel free to scrutinize everything I post because I need to learn. So I have a component and am utilizing a helper to send some data to one of our company's external sites using ...
5
votes
2answers
21k views

How to properly use JQuery Datatable sAjaxSource with Apex providing JSON source

I'm trying to use sAjaxSource with server side processing from Apex class which will provide JSON as source. First I was trying simple example, which won't work and won't output any error (not in ...
5
votes
1answer
405 views

How to bypass immutable proxy objects when using an external and old jquery library in LWC

Please note I'm fairly new to LWC and even SalesForce (like barely 2 weeks into it). I'm trying to use SlickGrid with LWC, note that this jQuery lib was created over 10 years ago, and I got that ...
5
votes
1answer
8k views

Visualforce Gauge with breakpoints

I have a batch job that runs twice a month to calculate a score. I dump the data into a custom object called CA_NPS_Score__c. Each record just contains A few decimal fields, and a formula field that ...
5
votes
1answer
638 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 ...
5
votes
2answers
288 views

Jquery dialogue is not coming when it is added as a home page component, but is working fine as a individual page

<apex:page > <html lang="en"> <head> <meta charset="utf-8"/> <title>jQuery UI Dialog - Modal message</title> <link rel="stylesheet" href="//code.jquery....
5
votes
2answers
2k views

Spellcheck within a custom object/textarea/Notes field

And now, some backstory. I have no previous Salesforce experience, and I'm an emerging developer. I work for a company that uses the Opportunities section to track clients and the insurance products ...
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 ...
4
votes
1answer
9k views

Open jQuery Dialog from Custom Button

We have a custom button on the detail page of the case designed to open a modal dialog popup, however receiving the $g(...).dialog is not a function error message. I've searched around the web and can'...
4
votes
5answers
5k views

Cannot get the global variable $Component to return id

How can I get the force.com generated id from the $Component global varible for me apex:selectRadio component? Javascript var rdo = j("input[@id=" + jq('{!$Component.searchRdo}') + "]:checked").val()...
4
votes
3answers
754 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(); ...
4
votes
2answers
2k views

Need help text of more than 255 characters

I need to use helptext with one custom field in Visualforce but Salesforce it allows 255 characters in helptext with a field. One solution is to create an image of text and show that image onMouseOver....
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 ...

1
2 3 4 5
15