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
1
vote
1answer
800 views

JavaScript during actionfunction Status

I might be having a brain fart but what would be the best way to get the actionFunction status (mine is a spinner) to replace the content of a div? Mine is currently spinning above the div. I have ...
1
vote
1answer
91 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
1answer
489 views

lightning $A.enqueueAction(action) does not work!

I have external jqGrid component setup with lightning. On initialization, it calls controller's function 'jsLoaded'. This function initially loads the data into grid. Everything works great up to here....
0
votes
1answer
891 views

Access PageBlockTable Id in jQuery function

I need to access the id of the pageBlockTable in jQuery to freeze column headers. I'm using plugins developed by others. They basically used HTML table, so referenced the table id directly in the ...
2
votes
1answer
1k views

Help in styling the pagination - Lightning component

I am displaying a set of button group listed from 1 to 5, highlighting button 1 after my jQuery library has been loaded. Once the next button is clicked, i am changing the button group from 6 to 10, ...
1
vote
2answers
525 views

Using apex:image path as javascript variable

I am facing an issue with javascipt . Unable to save the path of image from static resource . var backImage = '<apex:image value="{!URLFOR($Resource.testing, '/test/images/Back.png')}"/>'; I ...
1
vote
1answer
26k views

Response status is '0' in jquery ajax

I'm using a jquery ajax for storing a data in the database. I call a service through a url and send data to it in the following way: $.ajax({ type: "POST", url: "http://192.168.250.118:8080/...
0
votes
0answers
7k views

How to get the selected check box's rows column values in datatable?

Actually I am trying to provide the search and update mechanism by the way of remote function here. Now I done the search function and I have some struggle to another half of update function. My task ...
0
votes
1answer
4k views

how to insert ajax result json format into Datatable?

$.ajax({ url: "apex/demopage", success: function(resp) { } }) //and my resp coming as follows [ { "attributes": { "type": "something", "url": "...
1
vote
0answers
274 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. ...
0
votes
2answers
3k views

jQuery Keyup function not working

I am using jQuery Keyup function but its not working for me <script type="text/javascript"> $(document).ready(function() { jQuery.noConflict(); $("firstName")....
0
votes
1answer
322 views

jqgrid and lightning aura components integration?

I am looking for the examples for jqgrid with salesforce lightning. How to inject URL into jqgrid javascript?? so far i have managed to pull data from salesforce apex component but for supporting ...
0
votes
2answers
4k views

Custom button Javascript popup to have options to choose from

I have a custom button on a record page that executes javascript, calls a method1 in a Utilities class. {!REQUIRESCRIPT("/soap/ajax/29.0/connection.js")} {!REQUIRESCRIPT("/soap/ajax/29.0/apex.js")} ...
0
votes
1answer
136 views

VF page, using remote objects, in jquery need to format Date and Currency field

I'm using remote objects for this page. I'm trying to format the field Invoice_Amount__c to contain commas which will separate the numbers and format the Invoice_Date__c field to mm/dd/yyyy. I ...
4
votes
1answer
870 views

Check if input field cleared and then call an apex function

I have below auto complete Javascript code which works fine for my input text fields. But when I clear the searched value I am not getting search results as expected. Javascript Code j$(document)....
0
votes
3answers
3k views

Custom Date picker in Lightning component

I'm trying to use Jquery Date Picker "https://jqueryui.com/datepicker/" in Salesforce Lightning Component. I've included required library files. It is working in Visualforce Page. But the same is ...
1
vote
1answer
408 views

table sorter not working for Apex:inputcheckbox Column

I am using a table sorter to sort all the column.All columns are working fine except one column "Rush Request" which has apex:inputcheckbox tag.The column needs to be sortable, i.e. when the column ...
0
votes
2answers
118 views

Sorting considers records only on first page

I have used jquery plugin tablesorter to sort objects by column.Sorting is working fine.I have a set of about 12 records in a list which works inside a table with pagination, 10 records per page and ...
1
vote
1answer
793 views

how to use XMLHttpRequest ajax request data in bootstrap table [closed]

How can i use XMLHttpRequest ajax request data in bootstrap table. Below is my code where i am doing a ajax call by javascript. I want to display the data in bootstrap table on page load. Can anyone ...
0
votes
1answer
876 views

Disable Backspace and Tab key on disabled InputText on KeyUp event

I've already tried writing a javascript function for backspace key...but it doesn't seem to work. Below is the inputtext element from where the javascript function is called: <td Id="TDBooking" ...
1
vote
1answer
2k views

How to display Json Response in input checkbox

I am using below code get json response - <!DOCTYPE html> <html> <body> <script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-...
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 ...
1
vote
2answers
109 views

jQueryValidaton in Visualforce page

I am trying to validate a field by using jQueryValidation plugin. I am getting 'unexpected string error' on the field that I am trying to validate. I believe there is a syntax error in referencing ...
0
votes
1answer
2k views

jquery in Lightning component

Does anyone have any examples of how to make a jQuery get from a Lightning component using code similar to the below where the data will be returned from SOQL query in Salesforce jQuery.ajax({ ...
1
vote
1answer
395 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
1answer
352 views

Not able to reset multiselect picklist using javascript

I am trying to reset a apex:form input fields at client side using javascript. Though I am able to reset all other fields, multiselect picklist is not getting reset. VF page; <apex:page ...
0
votes
1answer
142 views

Remove the Calendar Icons from Event Detail page using JavaScript

I want to remove the buttons in image below from the event detail page. I was able to find a Jquery based solution which works when I put it in a custom button and click on it it hides the button. ...
0
votes
1answer
1k views

How to get selected value from checkbox?

I'm having a problem getting the selected value of an apex:inputCheckbox. I know how to do it with javascript and jquery but, the ids and the name contains lots of stuff this is an example: <...
0
votes
1answer
102 views

VF with JQuery popup with lookup inputfield - selecting record has JS error - Uncaught TypeError: Cannot read property 'name' of undefined

VF with JQuery popup with lookup inputfield - selecting record has JS error - Uncaught TypeError: Cannot read property 'name' of undefined VF + [JQuery popup + account lookup/inputfield] -> click to ...
0
votes
2answers
59 views

How to href within JQuery field for RemoteObjects

Morning Everyone, I was wanting some help in hyperlinking the Name field in the following code. I've tried a few methods within the brackets to no avail and keep breaking the entire page. I'm ...
0
votes
1answer
53 views

How to implement - Button or Action or VF page?

I have an object TB SID with a field ZOI (checkbox). I need to implement the below logic only on CREATION of new records: When ZOI is checked, than the record should be saved directly (this can be ...
0
votes
0answers
41 views

script is not woking

I have tried jquery for check null input fields. But it is not working. What is mistake i made. any help? <apex:pageBlock title="Enter Information"> <apex:pageBlockButtons ...
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 ...
0
votes
1answer
44 views

User Sortable List on Landing Page

I want to display an ordered list of items taken from a Data Extension via a Landing Page. Then allow the user to re-order the items via jquery and save the new order back into the Data Extension. I ...
0
votes
0answers
479 views

reRender and onload

Is it possible to use element onload after a reRendering of a div? My div: populatedChart is reRendered after a button click and is populated with data. Once the div is loaded with the data, I want ...
1
vote
1answer
4k views

$A.enqueueAction() not working with $A.getCallback()

I am calling a lightning action from a Jquery method. It used to work by putting the enqueue action inside $A.run() method. $(function(){ var initialAction = component.get("c.getInitialRecord"); ...
1
vote
1answer
2k views

Load data without a page refresh

I have a similar question to this post. But unfortunatly this solve does not work for me. I am using a <a href="javascript:void(0)" onclick="showCreditPull();" rerender="refreshOutputPannel" role="...
0
votes
2answers
253 views

Jquery custom field validation not getting displayed in vf page

I am using jquery to do custom field validation. Test_Name__c in the below code is a required standard field. When i am submitting the form i am getting the standard field validation error as "You ...
1
vote
1answer
419 views

Community Builder usage of jQuery (or any external .js resource)

I'm trying to use jQuery from one of my component helpers inside Community Builder (Lightning Component). I'm concerned about reference conflicts across the various components that may be used, so I ...
1
vote
1answer
1k views

Using DataTables in a Lightning Componnent question around asynchronous behavior

In my component, if the resources (jquery,DataTable) load before the enqueueAction (asynchronous) finishes, my Data table displays the following: If the enqueueAction finishes before the resources ...
1
vote
1answer
630 views

Using Jquery to perform a composite AJAX request

I have been building an application that utilises Salesforce's REST APIs and have been successful with all API requests except composite, which I keep getting a 404 back on. I have stripped the ...
2
votes
2answers
2k views

How do I disable or lock lookup fields on a Visual Force page?

I have a visual force page where I want to disable the user from editing some of the fields on it. I used the css class attribute to identify these fields. Input Textboxes were disabled successfully ...
1
vote
2answers
935 views

Web to Lead, Date showing in Debug page, but not in the Lead

My contact for is using 2 date pickets, Check-in/Check-out dates. When I fill out the form the dates show fine in the debug page. I receive and email with a link to view the lead and the dates are ...
2
votes
1answer
791 views

cannot use select2 jquery library in lightning components with LorckerService activated

I used the select2 jquery Library in order to have better look and feel on select element on my lightning component. It worked fine but when I activated the locker service this feature didn't work ...
1
vote
1answer
335 views

Persisting CSS through apex:outputPanel refresh

I have an VisualForce page set up like this: <apex:actionPoller interval="5" reRender="panel" action="{!getPanelRecords}"/> <apex:outputPanel id="panel"> <button onClick = "...
0
votes
2answers
156 views

VF page Command button Rerender issue loading JQUERY

VF Page: <div class="modal-footer"> <apex:commandButton id="filter" styleclass="btn btn-primary" value="Go" action="{!accountWrapperObject}" reRender="...
0
votes
1answer
111 views

Issue with Bootstrap Select All check box in apex:repeat WrapperList

I have a page with bootstrap Checkbox. The select All is working fine, however each row wise select check box is not working properly. only first row checkbox is selected and unselected. If I click on ...
0
votes
1answer
618 views

Bootstrap Select All check box in apex:repeat

I have a page with bootstrap Checkbox. The select All is working fine, however each row wise select check box is not working properly. only first row checkbox is selected and unselected. If I click on ...
3
votes
1answer
2k views

Lightning Application: $A.get(event) returning undefined when called from a jQuery callback

I am using a jQuery widget within my lightning application. The jQuery widget is simply a multi select input which calls a function on selection: <!-- component --> <ltng:require scripts='/...
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 ...

1
3 4
5
6 7
15