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
0
votes
0answers
14 views

Problem adding class to more lines of a form using jquery clone function [closed]

I have the following doubt, I am maintaining a form using the php language, it has a method that clones all content, that is, the body of a current row table for each time the user wants to create too ...
0
votes
0answers
39 views

Failed to Load the resource : the server responded with a status of 404 (Not Found)

I am just trying to call vf page by clicking on a button. The page gets loaded properly sometimes but sometimes throws an error by returning the page as "URL No Longer Exists" and in console logs i ...
0
votes
0answers
16 views

Image not rendering as pdf in visualforce page when adding data:image/jpeg;base64 as an image property [duplicate]

I need to render an image in Visualforce as pdf. When I load the page without the renderAs="pdf" the image loads But the same image doesn't render in pdf except for a small box. Visualforce page to ...
0
votes
0answers
35 views

Use this.template.querySelector to access tr to add classList

var trs = this.template.querySelectorAll('tr'); I am trying to access tr from my table inorder to add classList using, for(var count=0; count<trs.length; count++){ trs[count]....
0
votes
0answers
30 views

How to implement check and uncheck in checkbox using true/false value?

I am getting true/false values from my data and want to implement it as checkbox. Checked for true and unchecked for false. I using the render function to implement it and then setting checkbox value ...
0
votes
1answer
17 views

How to get the URL to a specific record page in render function?

I am trying to generate the dynamic URL to redirect to record but it appends the id to the current page. For example, I am getting--> https://nishant-aishwarya-1234-dev-ed.lightning.force.com/...
0
votes
2answers
96 views

I am not able to display the DataTable using Jquery in LWC

Below is my JavaScript Code:: import { LightningElement, track, api, wire } from 'lwc'; import { loadScript, loadStyle } from 'lightning/platformResourceLoader' import getAllOpps from '@salesforce/...
0
votes
1answer
16 views

Multiselectpicklist inlineeditsupport double click shows disrupted popup

I have a multiselectpicklist within apex:inlineeditsupport shown on a Visualforce table. When double clicked on it, the pop up window is corrupted as shown. I found that the issue is because of the ...
3
votes
0answers
122 views

Drag and Drop Functionality using Lightning Component Page in Salesforce

Iam here trying to sort table row using drag and drop functionality. Drag and drop in table and the jQuery seems to work when i am running below code in Lightning app but, not working when creating a ...
0
votes
0answers
22 views

Lightning component Jquery data table: After create and edit user need to stay on the same page

I am using Jquery data table in my lightning component. We have a EDIT Button to edit the record. Once the edit is done(suppose i am on the 2nd page), i want to stay in the same page(2nd page). But, ...
0
votes
2answers
22 views

Javascript validation check not working

I am trying to check javascript validations on some fields in visualforce page. Following is my code. <apex:page > <html> <head> <script> ...
0
votes
1answer
35 views

How to deal with Lightning input IDs changing in browser plugin?

I'm writing a Chrome plugin that fills data into some fields in the Salesforce Lightning "New Lead" page. Looking at the elements on the page it seems impossible to figure out which one is the "...
5
votes
1answer
200 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 ...
0
votes
0answers
17 views

Not able to dynamically search the datatable using jquery plugin in vf page

Earlier by typing first letter it was showing the names ,but now i have to type 3 characters sometime Please find attached screenshot and VF code:---- <apex:page standardcontroller="...
0
votes
2answers
133 views

How to play a video in a pop-up window when the user clicks on the video in an Aura Component

I am using iFrame to play a video, but the video runs on that page/screen itself. But I want that when the user clicks on the video a pop-up/modal screen comes where the user can watch the video. I ...
0
votes
0answers
19 views

Not able to search using jquery datatable in visualforce page

Not able the search the content in visualforce when typing in the search box which is rendered from controller in list of wrapper... ****Visualforce code:**** <link rel="stylesheet" href="https://...
0
votes
1answer
28 views

Unable to click a button in a pageBlockTable with JQuery

I have a Visualforce SPA that is working well but I cannot display an alert or perform any other operation with JQuery when clicking a button inside a pageBlockTable. I found that using the span tag ...
0
votes
0answers
55 views

Lightning Components: Drag & Drop: A way to remove dropped elements from lightning:inputRichText

I'm working on an advanced email tool. The idea is to present the email body inside lightning:inputRichText component. One of its features should support draging & dropping canned responses into ...
5
votes
2answers
352 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()....
0
votes
1answer
168 views

Adding onClick event dynamically via jquery not working in lightning

<!--Required scripts.--> <ltng:require styles="{!join(',',$Resource.FrameworkBase + '/css/salesforce-lightning-design-system.css', $Resource.FrameworkBase + '/css/...
0
votes
0answers
214 views

How to use jQuery Datatable in Lightning Web Component?

I was trying to get jQuery Datatables work in my LWC. I have tried this: LWC is it Possible to Load the JQuery Plugin Datatables in a Lightning Web Component? But I was not able to get it work. ...
4
votes
1answer
697 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 ...
1
vote
1answer
1k views

How to get element by class name using jQuery in Lightning Web Component

I am able to load the jQuery library, but it seems that I can't call some simple jQuery function: window.jQuery('.classText').attr('id'); I am trying to get element id by finding the element by ...
0
votes
0answers
63 views

On button click open the chat window for Salesforce customer chat support

My question is similar to the question asked here The answer is given there kind of resolve the issue, but that answer is in jQuery and I converted it to javascript but it's not working JQUERY: $("...
1
vote
1answer
2k views

Best way to use Jquery on Lighting Web components

I want to build a lightning web component which involves the use of jquery and bootstrap. The Lighting Web Component involves multiple child components. I was going through the salesforce document on ...
0
votes
0answers
24 views

Fullpage snap-in scroll in lightning component using fullpage.js

Would like to ask if anyone of you had implemented this full page scroll external library in lightning components? Here's the link that I want to mimic. https://alvarotrigo.com/fullPage/examples/...
1
vote
1answer
178 views

Can i set variable value into Smart Capture submit option url

I have an cloud page which include smart capture form, which having a checkbox, email, country and address fields. I am setting variable value to true and false using jQuery if checkbox is true or ...
0
votes
1answer
121 views

jQuery append not working on custom lightning component

I have a custom component that sets a table header and body dynamically with jQuery append but it's not working. I have loaded my scripts into .cmp and it's working cause I start my onInit controller ...
0
votes
2answers
260 views

Uncaught TypeError: $(…).attr is not a function

if ($(e.target).attr('id') != 'tabDiv' && $(e.target).parents('div#tabDiv').length == 0 && serviceContainer.has(e.target).length === 0){ $('#tabDiv').parent().parent()....
0
votes
1answer
406 views

Get DOM handle for a class from parent (higher) component

Question: I want to access all the child nodes that contain class .socket-in from Higher order component (preferred) or atleast Pills. However, I've tried document.querySelectorAll('.socket-in') and ...
1
vote
2answers
190 views

Old version of jQuery added automatically to CloudPages

After struggling for a week with a CloudPage that wasn't working as expected, I finally noticed that the editor somehow adds an old version of jQuery to every CloudPage after publishing it. ...
0
votes
1answer
24 views

Visualforce jQuery Works when Hardcoding the Value, but Doesn't Properly Run Within Function

I want to pull the styling (width) of one pageBlockTable and apply it to another pageBlockTable dynamically with jQuery - however I'm not sure why this isn't working... This code runs without any ...
0
votes
0answers
68 views

Disable a field depending on a Picklist Value

We have a requirement here that whenever a Product is Equal to "Product A" the Months should be disabled and have a default value of 36. This is currently working, but I encountered issue when I add ...
0
votes
1answer
437 views

Error on browser resize after using JQuery in a LWC

I am porting an existing app that uses JQuery to insert HTML into a Lightning Web Component when it is sent a formId via pubsub from another Aura or LW Component. The sfEnv object is for sharing data ...
2
votes
0answers
28 views

Exception in lightning component when loading on mobile app web view using lightningout.js

We have a custom mobile app where it loads the lightning components in hybrid web view through lightningout.js. we found an error message displayed in mobile webview for a component, it contains ...
2
votes
1answer
257 views

Getting error function not defined while it's there

I need to call the jsPdf function, however in the console I am getting genPdf is not defined. Here is my code-- <apex:page controller="GenerateQuoteController" standardStylesheets="false" ...
0
votes
0answers
56 views

get div Id inside Apex:pageblocktable using Jquery

I am creating a heirarchical structure between account and contact using pageblocktable within another pageblocktable. I have a div tag that is holding the contacts pageblocktable for each account. On ...
1
vote
0answers
25 views

Customise Standard lightning Component from custom lightning component

I have a custom feed filter visualforce page created with the help of this link. And then I added the vf page in lightning component with iframe and in case page layout. After the page is loded main-...
0
votes
0answers
18 views

Jquery inside apexpageblocktable

I am having a pageblock table with three picklists. based on one picklist value and text the second picklist would generate the values and based on selected second picklist value and text the third ...
1
vote
2answers
6k views

How to refresh contents of modal on button click? (VF Page)

I'm using a modal that has as input fields object fields linked to the controller. After filling the modal I send the "experience" to the controller and save it and send back an empty singlExp so that ...
0
votes
1answer
676 views

jQuery/DataTable methods in Lightning Web Component - (…).DataTable is not a function

I'm trying to write a Lightning Web Component which uses jquery and datatable static resources and getting an annoying error message without any idea how to solve it. My html code is: <div class="...
-2
votes
1answer
351 views

Cannot read property 'nodeType' of undefined using Jquery 3.1 as static resource in salesforce lightening

I am facing an error while using Jquery 3.1 library in lightening. I am facing this error only when I click on setup or dev console in other words only when I click a button which opens in a new tab. ...
1
vote
0answers
2k views

Manipulate DOM of LWC using jQuery [duplicate]

I know I cannot do: var elements = this.template.querySelectorAll('[id^="fieldName"]')[0]; elements[0].getElementsByTagName('lightning-formatted-text')[0].setAttribute("style:", "myCSSAttribute:...
0
votes
1answer
316 views

Visualforce Action method does not execute in commandButton when call JQuery

I have written a bit of code, that will disable a button in VF page once it is clicked with the help of JQuery. Unfortunately, although the button gets grayed out once clicked, my action method from ...
0
votes
2answers
108 views

Visualforce disable a button with jQuery onclick

I am trying to disable a button after the first click, but for some reason it is not executing. Could anyone help me identify the issue? <script src="http://code.jquery.com/jquery-1.11.0.min.js"&...
0
votes
0answers
562 views

Fullcalendar refetch sources

I'm using fullcalendar with salesforce, and try to refetch sources in calendar that comes from controller. Form contains select option, so on change it must refresh calendar with values (recources ...
0
votes
1answer
23 views

Getting apex id from Jquery Not working propery

I have apex:inputCheckbox written in apex:repeat where onchange of checkbox i am calling checkedDeviations2 method which will check true or false value and push true values to array and false values ...
0
votes
1answer
27 views

is actionFunction or jQuery init function running first?

I am now responsible for a chunk of code that is big and old enough that no one is certain how it works. I have a few questions I'm hoping you can help with. I have a page called PolicyDetails.page ...
0
votes
1answer
87 views

Lightning Design System - VF Sorting Function

We're adding some additional functions to an older tool which was originally built using the Lightning Design System on Visualforce. The stakeholder is requesting a sort function on a datatable which ...
0
votes
2answers
29 views

Delete button is disabled due to time out issue

I have a page where websites are built by the users. When an user tries to delete the site from the page, the page is throwing error stating there is some issue and the delete button is disabled ...

1
2 3 4 5
15