Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
2answers
26 views

Jquery] show doesn't work in some case and click function called several times in VF

Rencently, I've fighten for understanding jquery in VF apex tag. Looks like it can have several problem at the same time. First of all, please check below code. <div class="btn_none" title="...
0
votes
1answer
26 views

VF Load variable from controller

I have custom controller and I pass data from VF to controller and it works. However, when I try to use this variable in controller at VF, I cannot. Why is this happening? VF Page <apex:form> ...
0
votes
1answer
24 views

Division two inputs with JavaScript and display in another Input box [on hold]

In my code am showing input value(discount) based on another input value using onkeyup function. Once input value is populated in input field(Discount) I want to divide that value by another input ...
0
votes
0answers
10 views

VF] Jquery and bootstrap datepicker [closed]

I'm now trying to create calendar with bootstrap date picker. There is a attribution disabling dates. I want to change this value dynamically. Below is what I did, and dateDisabled attribution doesn'...
0
votes
1answer
20 views

How to Dynamically update input field value?

When I enter mobile number in mobile field how to auto update in Phone field same Mobile number without submitting any button in page using Script/jquery Here Mobile is Parent(Org__c Object) field. ...
0
votes
1answer
76 views

unable to load jquery into lightning component

I am trying to import jquery 2.2.4 in lightning component but i am facing issue with error code Custom Script Eval error [SecureDOMEvent: [object Event]{ key: {"namespace":"c"} }] I Enabled Stricter ...
1
vote
1answer
21 views

JQuery and Disabled Attributes

I am unable to get this bit of JS to work. I have a few questions: Am I not allowed to put the disabled attribute on the apex:inputField? Am I importing the JS url incorrectly? Is it possible that ...
0
votes
1answer
18 views

How to make jQuery slideToggle() for the list?

I try to make a list of panels with same toggle-effect. But I get just first working element. How can I make it for the list? <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery....
0
votes
0answers
15 views

Dynamic Input Fields not showing Datepicker in Visualforce with SLDS

I have Input Date fields like this, <div class="slds-form-element sld-m-top_medium"> <label class="slds-form-element__label" for="txttestdate">Date of Birth *</label> <div class="...
1
vote
1answer
25 views

Initialize jQuery plugins with ui:outputRichText in Lightning component

I have a Lightning component that displays record's content as rich text. The content contains HTML code and I need to make it work with jQuery on click handler and some plugins. The content comes ...
0
votes
2answers
39 views

Disabling/Enabling checkbox should disable Input field

I have a panel that display a text box and a check box. AIM1: I want to grayed out input field if check box is selected. And when page is loaded both should be open to use but once selected ...
0
votes
0answers
21 views

Javascript to get Asset

I'm trying to retrieve an asset from MC but I'm finding a CORS limitation. I'm using the following code: function getAsset(token, aid){ var data = null; var xhr = new XMLHttpRequest(); xhr....
1
vote
3answers
57 views

Sorting PageblockTable Columns

I am trying to set up my Visualforce page to allow a user to sort any of the pageblockTable columns. I cam across some JQuery code that is supposed to allow this to occur. I am not familiar with ...
1
vote
1answer
127 views

jquery datatables in lightning component

I have a lightning component which uses jquery datatables.User needs to filter the datatable using Stage picklist and date field.Based on the user selection(Stage and Date) then datatable needs to ...
0
votes
1answer
42 views

How to query and update a Data Extension from an external site using JQuery/Ajax?

I'm putting together an email preferences form and what I want to do is retrieve existing preferences if a record with the specified email exists and add/update a record with the customer's details on ...
0
votes
1answer
93 views

How to display textarea with button on clicking Javascript

I have a custom button on case. On clicking that, it should display a text area with a button in it. I'm able to display it, but at the bottom of the detail page. I want that to be displayed in the ...
0
votes
1answer
30 views

SOQL is bringing users who are not visible to me

I have implemented a searchable drop-down using jquery and visual force. Whenever I start typing a string it will search the database and bring all the matched users. I am using a jquery to call a ...
0
votes
1answer
116 views

jQuery DataTables Checkboxes in Visualforce Page

I am trying to manipulate multiple row selections using jQuery DataTables checkboxes plugin.But having issues in getting selected rows from page to controller ...getting c.selected = false in ...
-3
votes
1answer
34 views

How to pass a JQuery array to Apex controller

I want to jq array in controller class to fetch all data and based on data create multiple data. to make this happen i tried this logic but m not able to convert string to list can anyone plzz ...
1
vote
0answers
153 views

Re-render jQuerys FullCalendar?

I'm using FullCalendar on a Custom Object that shows each record in a calendar and I'm not entirely sure how I can make the calendar re-render depending on the ID I'm passing it. If I select a ...
1
vote
0answers
20 views

My req to add all input fields (created by picklist) value on total field by on blur event

Here in my code i am getting first field value only. <apex:page standardController="Entertainment__c" extensions="ScreenDetailController" sidebar="false" showHeader="false" docType="xhtml-1.0-...
0
votes
0answers
196 views

Uncaught TypeError: Cannot read property 'nodeType' of null throws at resource/jquerymin311:3:10545 lightning

I am facing Uncaught TypeError: Cannot read property 'nodeType' of null throws at https://bandwidth--partial--c.cs47.visual.force.com/resource/jquerymin311:3:10545 error when I am an Clicking an <...
0
votes
0answers
31 views

Lightning Event is not Firing inside the JQuery Library Methods

Working on full calendar functionality.But Lightning event isnot firing inside the full calendar method. Error: [Cannot read property 'setParams' of undefined] Screen Shot: Event Calendar (...
0
votes
1answer
45 views

Uncaught SyntaxError: Unexpected identifier because of special characters and foreign language names present in Account

I have developed page with autoComplete feature. I'm getting an Uncaught SyntaxError: Unexpected identifier error because of symbols used in Account Names such as "诸城金盛-abc Commerce and" Co., Ltd. I'...
0
votes
0answers
172 views

How do I pre select MultiSelect picklist values and update a record with the selected values on a VF page? [Included VF and Apex example]

I'm having some trouble understanding how to do this with my code. I feel like im really close since im populating all the available values to the picklist but its not pre selecting the values set on ...
0
votes
1answer
42 views

How do I compare two JQuery Datatables in Visualforce Page to color rows where the value exists in the second datatable

Please help me on the following: I have two different JQuery Datatables that are getting data from two different objects in Salesforce; Account Assets (Products that an Account has bought already) ...
0
votes
1answer
11 views

JQuery attribute that turns off the As Of subtitle on the analytics:reportChart components

My 'AS Of' report chart subtitles are showing again. Not sure when but everything seems to be in order. Does anyone know if this command is deprecated ? <apex:page standardController="Audit__c" ...
0
votes
1answer
114 views

How to call a jquery function from an autocomplete search box which is specified in VF Component

I'm having an auto-complete search box which lists the product details on entering the string. I have specified this in VF component and referring the same in my vf page. Now I want to hide one text ...
0
votes
1answer
326 views

How to implement a jQuery lib in lightning components?

I've been struggling to set my awesome jQuery carousel into a lightning component but it doesn't seem to work. Instead i'm having an error from the lightning component debug tool : myComponent.cmp : ...
0
votes
0answers
31 views

To display a Text Field on selection of a particular pick list value [duplicate]

My requirement is suppose a pick list field is there like "Bill Shipment to", and it's values are 'SHIPPER', 'RECIPIENT' & 'THIRD PARTY', then if i select third party then a text field will be ...
0
votes
1answer
33 views

Using Magific Popup

Using Magnific plugin to try to display images in a lightbox gallery. Using {!URLFOR($Action.Attachment.Download, someId)} or /servlet/servlet.FileDownload?file={!someId} instead of the filepath, ...
0
votes
1answer
156 views

multiselect table row checkbox using jquery

I have a VF page with a datatable that is populated from a custom search. The datatable has a checkbox column so that the rows can be selected and processed. I'm trying to implement a way for the ...
0
votes
1answer
275 views

Convert JSON string into apex map [duplicate]

Assigning JSON string to apex:inputText jQuery code: $('*[id*=stageName]').val(JSON.stringify(final_array)); Apex & Visualforce: public String stageName{set;get;} <apex:inputText value="{!...
0
votes
1answer
53 views

Record changed data is not sending from VF page to controller in case JQuery Pagination

VF page displays the records using page block table. I'm updating the records from VF page by clicking on "Save" Button. I've used standard Jquery pagination to implement the pagination. When I am ...
2
votes
0answers
184 views

Data from Ajax JSON POST is replaced with Cloudpages tracking script?

I should preface by saying that this is in a SFMC Landing Page and I'm trying to send form data to another cloudpage to handle it. Current code: $('form').submit(function (e) { e.preventDefault(); ...
0
votes
1answer
207 views

get value of apex:inputCheckbox in jQuery

I am trying to use a apex:inputCheckbox and pass the value (if it is checked) to a JS function. I have tried everything from onClick, toggling, event listeners, .checked, this question , and pretty ...
0
votes
0answers
64 views

In VF page record in not updating from other pagination pages. In Vf used jquery pagination

I've created the VF page to mass update the records. Records are displayed using page block table. I've used the jquery pagination. When we submit data from page it should update to the system. Its ...
0
votes
1answer
38 views

Show selected row in alert

I have to show the selected row in an alert. Can someone please help me? Below is the page code snippet. <tbody> <apex:repeat value="{!contactList}" var="contact" id="loop"> ...
0
votes
0answers
17 views

Restore scoll position of Visualforce page after refresh

I have Visualforce page on Opportunity page layout at the bottom and when a picklist value is selected on VF page and saved page should refresh and restore scroll position. Right now it is refreshing ...
0
votes
2answers
55 views

Getting Null value in controller on button click

Hi I am trying to show date picker on my VF page using jquery date picker, date picker showing properly on my page, the problem is that when I click on submit button I'm getting null on my controller. ...
0
votes
0answers
82 views

How to prevent page to scrolling to top automatically when rerendering?

These are the Picklist values in my Vf-page. after rerendering the page the scroller is moving to top automatically u can see in first image the scroller is near to bottom after selecting the ...
0
votes
0answers
53 views

Javascript Custom Button Issue

Something Very strange issue , I observed today. Create a detail page button on contact (didn tried for other object) and behaviour as Execute JavaScript and paste the below code {!REQUIRESCRIPT("/...
2
votes
2answers
366 views

Jquery AutoComplete in Visualforce Page

Autocomplete feature is working great but when there are two Contact blocks and when I try to search for contact then it updates both Contact blocks.How do I make sure it updates only the block that I ...
2
votes
1answer
209 views

Help with Drag and Drop between multiple lists and Save button function with Controller class

I´ve searched around but havent been able to find anything yet. Ive created a field in the Account object called "nivel" which means level. The idea is that every account record can have 3 possible ...
0
votes
2answers
1k views

Jquery is not working for second page onwards in page pagination

I've created a VF page and using jquery pagination. Created some custom functionality using jquery. But that jquery functionality only working for records which are loading on the first page. when I ...
1
vote
2answers
243 views

getElementById Returns Null in Apex Form on Visualforce Page

I'm attempting to make a form on a Visualforce page that will, when a button is clicked, grab the contents of a SelectList and 2 InputFields and then perform some actions with those values via a ...
0
votes
1answer
148 views

jQuery parseXML() no longer works since Summer '18

Since the Summer '18 patch the jQuery parseXML() is now throwing a "Invalid XML: .." error message. Sample code: try{ var xml = "<node>test</node>"; var xmlDoc = $.parseXML(xml); ...
0
votes
1answer
310 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
285 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
406 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? ...