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
5
votes
1answer
6k views

CORS whitelisting not working as expected

I'm having an issue with CORS where I'm unable to make a POST request to a Salesforce site from another site, but one I have listed in my CORS whitelist. Not sure if I have something set up wrong, or ...
0
votes
2answers
1k views

jQuery in VisualForce is not working

I know this is very basic! I am learning to implement jQuery in VisualForce page development. As part of that I have tried the following code (just playing around). The purpose of the code is: If I ...
3
votes
1answer
934 views

Use jquery data table export functionality in lightning component of salesforce after enabling locker service?

I have created lightning component to use jquery data table. I am using export functionality of jquery data table. But it is not working. It is showing only Export button. When I clicked that it doesn'...
0
votes
1answer
1k views

Jquery not running on visualforce Page

I am not adding it through a separate vf resource even. I am directly writing HTML on the page. <script> $.noConflict(); (function($){ function floatLabel(inputType){ $(...
0
votes
2answers
16k views

Getting value of hidden input to jQuery [closed]

I have a a div section which within it stores a hidden Id value. I am trying to access this in jquery but can't find a way. Could someone point me in the right direction?: <apex:pageBlockSection ...
0
votes
0answers
277 views

InlineEditSupport not working

I'am using apex:inlineEditSupport in a visualforce page, the apex:inlineEditSupport is used inside a pageblocktable tag with the pagination provided by the pageblockTable. The visualforce page is a ...
0
votes
1answer
35 views

Unable to create time datatype field through visualforce page

I tried to write a formula and extract time field through date time field. But user needs the time field because of specific requirement. I tried to create a Visualforce Page with Static Resources ...
1
vote
1answer
839 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
108 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
538 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
922 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
580 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
29k 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
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. ...
0
votes
2answers
4k 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
332 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
5k 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
139 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
965 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
448 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
134 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
1k 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
1k 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
3k 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
981 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
132 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
442 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
422 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
158 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
65 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
61 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
231 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
47 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
565 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
280 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
452 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
674 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
1k 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 ...

1
3 4
5
6 7
15