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.

156 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
1answer
634 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,...
3
votes
0answers
978 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 ...
3
votes
0answers
398 views

jqGrid issue after enabling lockerservice

We have a lightning component that uses jQuery2.2.4 and jqGrid 5.1.1. After enabling lockerservice this component stopped working. We have come up with a simple test case to reproduce the error. App ...
3
votes
0answers
493 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 ...
3
votes
1answer
1k views

Refresh a jQuery Accordion in a Lightning Component

I am attempting to use jQuery Accordion in a Lightning component. It uses code like this: <div id="ticket-event-list"> <aura:iteration items="{!v.insights}" var="insight" indexVar="...
2
votes
0answers
62 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
0answers
502 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(); ...
2
votes
0answers
502 views

Dragging and Dropping Jquery functionality not working in controller.js after loading Jquery libraries in Lightning

I have a requirement in lightning to drag & drop records to multiple divs from a list of records. I tried to implement it using jquery in Lightning,I am facing issue in loading the jquery ...
2
votes
1answer
66 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
0answers
374 views

Drag Item from Visualforce page onto parent in console layout

I was wondering if anyone had come across anything like this? I have been asked to find out if it is possible to setup jQuery Draggable and jQuery Droppable to drag an item from the console and drop ...
2
votes
2answers
291 views

JQuery: checkboxes wrapped in apex:repeat

I would like it so that when someone clicks on a '.propertyRateTable' element, ONLY the checkbox next to it becomes checked (See image for reference). The code below simply checks every checkbox (As ...
2
votes
0answers
2k views

Calling a web service from a Visualforce page using jQuery Ajax

I want to call a web service using REST API from the Visualforce page. Below is my code. <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js">&...
2
votes
2answers
697 views

Jquery lightbox(Salesforce Default) Render issue on VF page,

I am using Salesforce default lightbox on VF page. Actually My intension is to display a popup of editing record in a page block which is embedded in output panel as shown below screenshots Please ...
2
votes
2answers
1k views

DatePicker Issue

I have two text field: One normal text field that accepts numbers. <apex:inputField value="{!FinancialAssCont.Down_Payment__c}" styleClass="form-control downpaymentAmount" onblur="...
2
votes
2answers
621 views

AMPScript/jQuery conflict

I have a landing page that has a conflict because we are referencing the same content via AMPScript and via jQuery, I'll preface this with saying, I have not put in the full code, because I am hoping ...
2
votes
0answers
681 views

Get print of visualforce page containing different charts

I am creating a dynamic dashboard using Vf Charts. I am having about 18 different charts on a single visual force page. I have added a print button on the visualforce page to print all the charts on ...
2
votes
1answer
290 views

qtip content filtered with a condition

This is my Code: $(document).ready(function() { var date = new Date(); var d = date.getDate(); var m = date.getMonth(); var y = date.getFullYear(); $('#calendarx').fullCalendar({ ...
2
votes
0answers
269 views

Winter 14 causing errors?

I have a very simple VF Page, that just has an action method that copies the address of the head of household to all the rest of the contacts to the household. This has worked fine, but on Saturday ...
1
vote
0answers
21 views

DataTables taking a long time to load/timing out

Is there anything about the following Datatables code that would cause a timeout or cause issues with the construction of a datatable? First, I have jquery, bootstrap, jqueryui, datables, and moment....
1
vote
1answer
64 views

Select2 dropdown getting hidden

UPDATE: Adding image from console view: I am trying to implement Select2 js in my sample page: Initially I ran into this problem - jQuery not a function, $ is not a function on select2.js in doInit ...
1
vote
3answers
890 views

How can I load jQuery in LWC?

For the convenience of the user, I'm implementing the requirement of katakana is automatically entered when entering hiragana or kanji in Japanese using this JavaScript library. You can check the ...
1
vote
0answers
44 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-...
1
vote
2answers
21k 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 ...
1
vote
1answer
148 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 ...
1
vote
0answers
2k 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
36 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-...
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}"...
1
vote
0answers
163 views

JQuery Auto Complete AJAX Call URL parameter alternate

I am implementing a jquery auto complete search box. Am having JSON file in static resource and referencing it in ajax URL parameter. It is working perfectly. But now I want to make the JSON values ...
1
vote
0answers
152 views

Auto complete field selected value not getting passed to controller class

JQuery helps good to select a value from auto complete field but it is not passed to the controller. So, my search result query is not getting modified properly as desired. I can't get where I do any ...
1
vote
0answers
524 views

Same origin policy blocks AJAX token call

I need to implement a feed from a client site into their Salesforce system. I'm using the REST API. I can get an authorization code, but when I try passing it to get an access token using AJAX, it ...
1
vote
0answers
93 views

Lightning component loses event bindings

I've got a custom Lightning component that works well. However, as soon as I detach it from the DOM, and put it somewhere else (with jQuery e.g. to ease UI development), it loses most of its event ...
1
vote
0answers
196 views

Display pop-up in onClick

I have matrix, if criteria matches from x-axis and y-axis the value for particular cell increases. Now I want to show pop-up if I click on the cell. Pop-up will contain the link for the records from ...
1
vote
1answer
109 views

Two jQuery files causing error: The name can only contain underscores and alphanumeric characters

So I have two specific jQuery includes on a custom VF page, and the combination of both of them are causing the page to "break". When both of the js files are included the VF page has a standard SF ...
1
vote
0answers
290 views

I want to disable my submit button until all required fields have values.. how can I do that?

Currently I have a form in my visualforce page which contains all types of fields like (Number, text, dropdown and checkbox). I want to disable my submit button until all required fields are filled. ...
1
vote
1answer
445 views

Smart Capture / Jquery conflict

I have created a smart capture form in the MC which is working just fine. However, I have now am working on enhancing the form and I noticed that once I add the Jquery library to the page the submit ...
1
vote
0answers
473 views

Can't find variable: $

I'm got this error in lightning while testing in an iPad (issue only occurs in iPad / iOS. All other os , desktop,tablet works fine). My solution is locker service enabled. All the resources like ...
1
vote
0answers
579 views

Errors when using DataTables in Lightning Components?

We're using jQuery datatables without our components but are getting TypeError: $(…).DataTable is not a function errors a lot of times when we load the page (not every time though). In our component ...
1
vote
0answers
94 views

afterScriptsLoaded Only Working Once and Not For Tabs

I am using afterScriptsLoaded to call a function after my jquery has loaded. I have multiple tabs that load charts. On the first pass, each tab is loaded lazy and the charts show up nice. On any other ...
1
vote
2answers
637 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 ...
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
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
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')}"/> &...
1
vote
0answers
323 views

Drag and Drop..upload file into Feeditem content..Please help

HI i am trying to use drag and drop for uploading file into content. Below code works for attachment sfdcurl = '/services/data/v27.0/sobjects/Attachment/'; When i tried to change it Feeditem object ...
1
vote
0answers
80 views

when i press and alphabet auto complete will not working on textbox

this is my page <apex:page controller="ContactCheckEditController"> <apex:form id="frm"> <apex:pagemessages /> <apex:actionFunction name="check" reRender="table"...
1
vote
1answer
342 views

apex:actionFunction doesn't pass apex:param to controller

Sum up: I need to create a page that list Accounts with a field name Level (NIVEL__c) with 3 options (level1, level2 and level3). The lists let you use drag and drop that can change the account to ...
1
vote
2answers
4k views

How to retain same page in jquery data table?

I am using jquery data table for the list view. In the list i have Action section, this section contains the 'Edit' option for that row. When selecting the Edit button on record that in 2nd page of ...
1
vote
0answers
312 views

Range Slider is not Working in VF

I have one problem in which I am not able to see my Range Slider. In console it gives me this error: Cannot read property 'value' of null <apex:page controller="...
1
vote
0answers
111 views

Check condition with map in visualforce

I get a list of value from rest API call and bind the json in visualforce page using jquery template. I have a problem here I have a map with particular values. I need to check if the json result has ...
1
vote
0answers
474 views

Status of jquery.ajax from Server-Side Javascript

Please see the following codes: Front-side AJAX request code: function addAjax(emailIds, valObj) { var jqxhr = $.ajax( { method: "post", url: "mypage.aspx?QS=...
1
vote
2answers
445 views

jquery show not working with visualforce page

Sorry for inconvenience. I tried to format the code but why i dont know here i am not able to post properly. i have two pageblocks in visualforce page. 1st displays by default, 2nd pageblock should ...