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
1answer
626 views

Appending an iframe to a lightning component

I'm trying to append an iframe to a nested div, but for some reason, the append doesn't work when it's an iframe. var cmpStyle = "width: " + theWidth + "; height: " + theHeight; $("#createInMe")....
0
votes
0answers
673 views

jQuery UI Sortable not recognizing dropped item in array

I'm trying to use jQuery UI Sortable to create records, and to enable the user to change the order of created records. The problem I am having is that upon drop, the array excludes the item dropped. ...
0
votes
2answers
2k views

How can we show helptext of a field in VF page [duplicate]

I am using fieldsets to display fields in a VF page. Is there a way to display the help text icon next to the label if there is a help text associated with the field and display the text on hover? ...
0
votes
1answer
362 views

Rest Api Opportunity-endpoint Not Found

I'm building a wordpress-site, which needs access to my salesforce-data. I'm using the REST API, and have set up the connected app with Oauth. When Once the user is authenticated as a community-user ...
0
votes
0answers
133 views

Setting up and calling a proxy on my controller from Javascript via URL?

So far, from what I have found, I made this method in my controller: global static HTTPResponse Pdf_Export_Save(String contentType, String base64, String fileName){ system.debug('Http Response ...
0
votes
0answers
227 views

jQuery Data Tables with Lightning Component?

I implemented jQuery Data Tables to display child records based on a filter in a another component. Whenever the filter is selected, the jQuery Data Table updates to only show the records related to ...
1
vote
1answer
489 views

Latest version of jQuery that works in Salesforce Lightning with LockerService?

I'd like to know what is the most recent versions of jQuery and jQuery-UI that works with Salesforce Lightning with LockerService on?
0
votes
0answers
663 views

Check multiple checkboxes in VF page on condition

Scenario: VF page is having two column:checkbox and fee name. Second column is coming from object 'Fee' which is child of 'App' object. An 'App' record can have multiple fees associated to it.Below ...
1
vote
3answers
242 views

Checkbox Disabling Other Text Fields From Other Rows

I created a visualforce page wherein a text field (disabled in default) must be enabled when a checkbox is equal to true, while it must be disabled when checkbox is equal to false. I don't have any ...
3
votes
2answers
1k views

How to access SLDS icons from a lightning component Javascript controller?

I am needing a switch statement, and depending on the type of file uploaded, I want to change the background of the uploader to represent the file type (pdf, doc, txt, etc...). So, <lightning:...
0
votes
2answers
2k views

Jquery document.ready function is not working after calling apex method

I have jquery document ready issue. I wrote the below code and document.ready function is working until the apex method is called. Once apex method is called, the event is not firing. I need some help....
1
vote
0answers
29 views

Visualforce : Actionfunction method is called before variable is initialised

In my table (generated via apex:repeat) I have this button "Show Previous Versions". The button's id is prefixed "AWSPID". This is the button's markup. <td> <button id="AWSPID{!awsvar.cnt}"...
0
votes
2answers
136 views

jquery validation for multiple lookup field in visualforce

I created a table using with Account lookup field along with other fields. I have assigned same style class name to all lookup as they're mandatory. VF code: <apex:page> <apex:pageblock&...
4
votes
1answer
1k views

Get access to salesforce REST API without user logging in

I'm trying to create a webshop, containing the products from our salesforce community. I'm not able to figure out how to get access to this data, without the user having to log in first. Which is ...
0
votes
1answer
244 views

Dynamically change the label of Javascript button based on the field value

I want to change the label of a javascript button based on the field value on a custom object. I tried implemented using the solution provided in the below link however not successful. There is no ...
2
votes
2answers
2k views

Action.setCallback did not getting executed

The issue is in the eventClick function where I'm trying to invoke the apex controller method-getDataEventss(). The action call state is not got printed in console which means its not getting executed ...
0
votes
1answer
2k views

Hide Flow buttons in salesforce

Is it possible to hide the buttons in the flow? I know we have the option to hide previous. But I need to hide all the buttons as the flow is designed to share some information which I put on the ...
0
votes
1answer
364 views

Scripts not getting loaded before event is fired in lightning

I want to load my static resources before my event is fired. My scripts are not getting loaded and my jquery builder gives function not defined. My event is application event. So my query builder ...
1
vote
2answers
347 views

Options not coming while using chosen jquery in lightning

I am using chosen jquery in select in my lightning component but options are not getting populated in dropdown. My code: component: <select class='slds-select ranklevel' name='Rank Level' ...
1
vote
2answers
969 views

encrypt the Password in jQuery and decrypt in Apex class

I'm creating the custom login page for customer community. Login page has functionality like, Save Username Password, Remember me. When I check the Save Username Password while login, then at the ...
1
vote
1answer
379 views

Z-Index Issue : Datepicker window overridden by pie chart background

I have a requirement to show data in pie chart, based on User input date range. I have already achieved that, but my date selection window is overridden by the background of the pie chart.Is there ...
1
vote
2answers
2k views

Classic Javascript isn't working in Lightning component, when jQuery is

I have a checkbox in a lightning component: <ui:inputCheckbox aura:id="chkAddToList" click="{!c.action}" class="chkMultiSelectTalents" /> In a different component's controller (or helper),...
0
votes
2answers
272 views

Get partial language URL parameters and Insert to DE in SFMC

We have an iframe form setup on a landing page with both English and French language preferences. I want to get the URL parameter that shows Language type and write that value to a Data Extension upon ...
0
votes
0answers
1k views

HTML Textarea 'Enter' adding \n when I am needing \r\n

We have users who are using a substringAfter('\n\r\n') on a record field. We have a UI with an HTML textarea for said field that the user can type stuff into, then save and the JSON.stringified ...
0
votes
0answers
73 views

How to populate data based on Pick list values in VF page

The following picture is a VF Page. I need to make mandatory Attachments if Catagory Field is "Seasonal Rotation Program" and Fss Rotation (Picklist) is "Advisory". if(caseRecord....
1
vote
1answer
885 views

jquery ui icons not loading when using static resource

When I use a static resource for my jquery ui, the icons are not loading, if I use the cdn links, it loads properly. Here I referenced the css and js for jqueryui but I think the problem is that the ...
0
votes
1answer
73 views

Focused value when clicking on selectList in visualforce page

I am using selectList tag in my visualforce page, this selectList contains years number (2001,2002,...,2020) as follows: <apex:selectList id="mySelect" styleClass="form_field flex_grow" required="...
0
votes
1answer
1k views

JQuery appendTo not working as expected [closed]

I am trying to get some understanding of jQuery. The idea is to append a table row to another table. <table id="temp_table"> <caption>Empty table</caption> </table> ...
0
votes
2answers
1k views

Merging multiple attachments of a record into a single pdf

Is it possible to merge multiple attachments of a record into a single pdf using javascript or Jquery. Has anyone tried this kind of scnario. If yes, please guide me towards the solution. Regards
0
votes
1answer
496 views

Export a DataTable generated by a function (HTML tables) to Excel

Based on the requirements, i have to generate 3 dataTable using a JQuery function like below and i need to implenet a button to export the result into an excel file. I'm currently using contentType="{!...
0
votes
1answer
2k views

Call Apex class method from Javascript Dialogue

I have a custom button on Quote standard detail page which on Click opens up a Jquery dialogue box containing an iframe with src as a visualforce page(rendered as pdf) and contains two Button "save" ...
0
votes
3answers
737 views

Visualforce Page Input Field Focus jQuery

I am trying to set the focus on my visualforce page input field. I've tried using: jQuery(document).ready( function() { var myElement = document.getElementById("{!$Component.caretask.form.op.pb....
0
votes
0answers
130 views

lookup onchange event is not firing in vf page with slds

In VF page I have a lookup and a amount field. I need to enable/disable amount field based on lookup record type. I tried below code: <apex:outputPanel rendered="{!field.FieldPath == 'ABC__c'}"&...
-2
votes
1answer
254 views

Datatable Scroller plugin issue with Lightning (AJax)

I am trying to render my Datatable with Scroller plugin in. Data is loading once but when scrolled further shows loading data only. Am I missing something ? I am trying to implement it in Salesforce ...
0
votes
2answers
765 views

Why can't I get the status of this radio button in jquery? [closed]

I have this piece of code from a salesforce visualforce page. <div id="testId" class="row mb25 mt15"> <div class="col-md-6 plr0"> <p class="en">Would you like to add a ...
0
votes
1answer
920 views

Trying to use JavaScript file from static resource in VF Page is not working

We have uploaded the following in static resource as a zip file and used it in Visualforce page as follows: Old Tags <apex:includescript value="//code.jquery.com/jquery-1.11.1.min.js" /> <...
0
votes
1answer
332 views

Jquery modal popup escaping

I have a vf page in which the Javascript function OpenRegistrationPage1 is called through .Now in that function the confirmation box is being called..The box is displayed but it is vanishing ...
0
votes
1answer
39 views

Select a Contact From a Table and Grab Phone Number

I have an issue that I think I am over complicating. I have a table of Contacts. I need to select a Contact and grab their mobile phone number. I have tried everything from visualforce remoting to ...
0
votes
1answer
458 views

Jquery UI sortable after lightning component render - [$ is not defined]

I have an component that renders a tree of data with 1 deep level of subitems. I want both levels to be sortable independently. So what I got is the following: AfterScriptsLoaded is used to init the ...
0
votes
1answer
1k views

window.onbeforeunload not working when using in Salesforce lightning

window.onbeforeunload function is not working for me in the salesforce lightning environment. I have a visualforce page styled using Lightning design system, we I view the page in classic the window....
0
votes
0answers
615 views

jsPdf not working in Visualforce page for large documents

Task: To convert a document[visualforce generated one] into pdf. Solution I am using now : making use of salesforce renderAs="pdf" method Problem Faced : RenderAs pdf method is not working as ...
0
votes
0answers
720 views

Cannot adjust height of iframe

I am trying to adjust the height of an iframe to 200px via Jquery. However I'm not able to do so. Below is my code $(function(){ alert('Hi'); $('iframe[title=TestPageResult]').css("height", 200); })...
0
votes
1answer
976 views

Window.onload function disables inline edit capabilities on custom vf page

I have a visualforce page which is editable via the inline edit functionality provided by salesforce, or by clicking edit and being taken to a standard-ish edit page. I also have a popup that gets ...
3
votes
2answers
429 views

$(this) equivalent in lightning

As we all know, a lot of jQuery codes don't work on lightning (or I might be doing something wrong). Anyway, I'd like to ask how I could target the source of the element, similar to $(this) in jQuery. ...
1
vote
1answer
1k views

Enable button when checkbox is selected

I have visualforce page that renders the data in apex:pageBlockTable I have checkbox with button, I'm trying to acheive the following: When the page loads I want the button to be disabled If the ...
2
votes
1answer
301 views

jQuery issue with Locker service in Summer 17 release in Microsoft Edge

I have lightning component and it uses jQuery to do DOM manipulation. I manage to get it working in chrome and firefox with jQuery 2.2.2,2.2.4 and 3.2.1. But MS Edge is throwing error . I have ...
0
votes
0answers
257 views

SLDS - Cannot add class for toast notification theme

I have a toast notification and I'd like to add slds-theme--success and slds-theme--error to them based on success or failure of data entry. The adding and removing classes in JQuery are not working. ...
1
vote
2answers
1k views

How to capture “Enter” keyboard event on dynamically created lightning:input component

Official docs for lightning:input did not show any keyboard event attributes yet. I have a dynamically created input form and I want to call a controller's method after hitting the enter key on a ...
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,...
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/...

1 2
3
4 5
15