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.

learn more… | top users | synonyms

2
votes
2answers
39 views

JS/jQuery for Date manipulation on VF page

Have a very simple VF page that allows the end user to either set an expiration date, or choose the number of days until the expiration. What I wanted to do was update the other field when one was ...
1
vote
1answer
33 views

Is there any different calling JSON directly from visualforce page and javascript Static Resource?

I create one javascript file and call JSON from there.Before I use JSON, I use hardcode data and it works.But I try to load data using $JSON, somehow it does not works.Check the code below ...
0
votes
2answers
23 views

To Change Font color for standard Case fields depending on picklist value

I want to change the color of the Standard field of a Case object say CaseNumber. It is a mandatory field for the object. The criteria for this is that whenever a Case Status value is changed, that is ...
2
votes
4answers
140 views

Page cannot use jQuery Plugin as it's registered with $ from Sidebar component

This again and again is a reason why jQuery-based pages in my apps fail to render at some customers but not at all customers... There must be a solution to this. Or at least others who share the pain ...
1
vote
1answer
42 views

How to disable and enable button depend on text value

Once click on Submit Feedback. Pop up text box open. But here by default , Submit button in disable mode.Once enter value in text area and then it should be come into enable mode (Submit).If remove ...
2
votes
2answers
50 views

How to load seperate VF page as modal dialog without risky Iframes?

In my custom Edit page I have a button where the user can select records and make them child records. As the edit page and the selection page must work on the same record they are currently ...
1
vote
1answer
100 views

jQuery: How to wait for Salesforce to finish rendering?

I have a small script that customises certain list views, hiding buttons. This is done using jQuery $(document).ready() Because this js is manipulating standard pages it is stored in the left ...
1
vote
1answer
58 views

Opening a bootstrap modal on click of a custom button on standard salesforce page

I have a bootstrap modal that I want to open on click of a Custom button on the standard Salesforce page. So for that I need to Execute a Javascript on the 'Onclick' action of the button (that'll be ...
1
vote
0answers
78 views

Save using Jquery UI modal popup

I have a Jquery UI modal popup that is basically an iframe with a VF page within. The VF page requires the user to enter some data and either click SAVE or CANCEL. The problem is that if I use ...
7
votes
1answer
88 views

Error in loading the iFrame in Salesforce 1 Platform:

Scenario : I have built desktop based Force.com platform and now i have enabled the Salesforce 1 Mobile app on my environment. Now if i try to load the same Desktop based Quote Detail page on Iphone ...
-1
votes
1answer
22 views

jQuery new syntax? [closed]

I have a jQuery statement in a project code, which was written by someone else. Can someone explain what the meaning and purpose of this usage is? Thanks! $.hello = {}; $.hello.callFunction();
0
votes
0answers
29 views

Not appending value to a cookie

I'm using the jquery cookie plugin in an VF page, trying to hide the div and add a value to the cookie. For the first time, it hides the div and creates a cookie with the value. In the next events the ...
0
votes
1answer
82 views

calculation from input field using visualforce page

The TotalValue__c field being calculated on the fly/client side while the user is entering the field values and and so that they don’t have to do the calculation themselves. TotalValue__c = ...
3
votes
1answer
41 views

Changing the value of particular pageblock on click using jquery/jscript

I have an scenario where pageblocks in visualforce are dynamically rendered based on the list size. In each page block i am performing some calculations OnKeyup using javascript and JQ and result is ...
0
votes
0answers
109 views

How to change Font style, font size and background of Pageblock table in VF page?

I have created a Visual force page and using Jquery plugin in it...but when i am applying my style to the table for changing the font size, type and background color of the table its not working. ...
3
votes
1answer
65 views

escape quotes in inline html of the push function in Visualforce page

<div id="OffLocations" style="width: 100%;"/> <script> //JS code... var officeList = new Array(); <apex:repeat value="{!OfficesOpen}" var="off" > officeList.push('<table ...
0
votes
1answer
56 views

Visualforce - array in jQuery throws error

In order to show a list of values fading continuously, I queried the values in the controller and trying to iterate in a component using array in jQuery. But it throws an error "Unknown property ...
0
votes
1answer
56 views

Collapse functionality in visualforce [duplicate]

I am creating collapsable pageblocks in visualforce and im new to visualforce i tried implementing the following code but its not working and throwing error in jquery file like Refference error ...
2
votes
2answers
116 views

How to create collapse and expand functionality between pageblocks in visual force

I am tryin to create expand and collapse functionality between pageblocks.The scenario is when i click the collapse button in one pageblock ,it should render another pageblock.How this can be achieved ...
1
vote
0answers
56 views

We can click any record it refreshes with in page

My Requirement is: i have created a custom visual force page. in that one custom object have a number of records, when we click on one record it goes to another tab, But my requirement is it ...
1
vote
2answers
473 views

CSS styling for jquery DataTables - can't seem to make padding go away

I am new to styling and CSS, java, all that.. I've made a jquery datatable and am attempting it to style it to my requirements. There is cell spacing or padding that is not going away no matter what I ...
1
vote
1answer
185 views

Return string value of id on jQuery datatable server side sorting

Hi I'm working on a server-side sorting using jQuery datatables based on an example from here. Everything works fine bar one detail - the look up fields to the user returns the user id and I'm not ...
2
votes
1answer
71 views

Use jquery to enable button

I have a pageblocktable something like this: <apex:column> <apex:inputField value="{!opp.Name}" /> </apex:column> <apex:column> <apex:inputField ...
1
vote
1answer
55 views

Show Save Button When all Fields Fillled [closed]

I have a form with 2 fields. When all fields' values are filled, I need to display/show the Register button in hide stage. I am using jquery but it is not working. Where did I make a mistake? ...
0
votes
2answers
32 views

In Salesforce ,I have an issue how to call the vf page in div through jquery ajax attribute URL

$.ajax({ type: "GET", url : "https://ap1.salesforce.com/apex/ABCgraph", dataType:"html", In the above sample ,How to call the VF page in "url".
0
votes
1answer
110 views

jQuery datatable not functional on templated page

I have a visualforce page which makes use of a template. I am trying to use jquery datatable to add funtionality to the pageblocktable. My code works on just a normal non-templated visualforce page ...
2
votes
1answer
102 views

Issues with sorting on pageblock table

Hi I recently came across a jQuery animated table sorter plugin from here and I'm trying to leverage it on one of my visualforce pages. It seems straightforward enough but I can't for some reason get ...
2
votes
1answer
346 views

Using JQuery to conditionally hide buttons on Quote Page

I was following Tehnrd's tutorial (http://www.tehnrd.com/show-and-hide-buttons-on-page-layouts/) on how to conditionally hide/show custom buttons on a page layout. I think Tehnrd's code deals with ...
1
vote
0answers
88 views

Jquery pageredirect in visualforce page

Hi this is my jquery code to change the div content with another visualforce page but it is not working properly in the below code visualforce page is calling but src is taking as a blank.html ...
-2
votes
1answer
81 views

Jquery scroll to bottom of a visualforce page on buttonclick [closed]

I have a button that on clicking calls a webservice and displays a list of record below that button. I'm trying to scroll down to the bottom most part of the visualforce page, everytime the button is ...
0
votes
1answer
112 views

Truncate long text and change as links in the Pageblocktable - VF/jQuery

In a table with six columns, I have truncated the DESCRIPTION field to 25 characters to avoid the row expansion. However, I wanted to make the truncated text as links, so that the user can click and ...
-3
votes
2answers
336 views

How To remove trailing comma(,) in array in JavaScript [closed]

var fromFields = [<apex:repeat value="{!fromFields}" var ="f">'{!f}',</apex:repeat>]; renders as fromFields =['abc','msr','mdr',]; Now I want to remove comma after 'mdr' so it will ...
1
vote
1answer
91 views

JQuery in VisualForce is Not Working in IE8?

I Have a 2 Address FromAddress and ToAddress. I have a one checkbox on visual force page like SameAsFromAddress. When I click on that checkbox I'm copying address using jQuery, but this jQuery is not ...
0
votes
1answer
56 views

Get the Salesforce Id for the URL in jQuery

In the controller, I specify the PageReference src as http...../apex/mypage?id=' + {!a.Id} and for href as "!URLFOR("apex/mypage?id=" + a.Id)} in the tag. But in jQuery: $('#Link').click(function(){ ...
0
votes
0answers
367 views

JQuery receivemessage returns “undefined is not a function” on Chrome

I'm using this approach to open a modal dialog on button pressed. It works fine under Firefox, but fails on the other browsers (Chrome, Safari), stating "undefined is not a function". The part that ...
1
vote
0answers
58 views

Fuelux tree open when loaded to the preselected items

I am trying to get the tree open from one node upwards to the root when the tree is loaded, and I don´t find the way to do it. It´s useful in the case that as soon as the tree is loaded, I am able to ...
1
vote
1answer
50 views

Return fields from custom list setting and pass to JS

If I have a custom list setting, 'Info_List__c' with 2 fields, 'Info_Field__c' and 'Info_Name__C'. What would a method look like that would iterate through the list and return all entries. And how ...
2
votes
1answer
53 views

Can I return .getAll() in a particular order?

Can I return this data in any particular order? @RemoteAction public String planUnitList { get { return JSON.serializePretty(All_Data__c.getAll().values()); } } Perhaps by using ...
1
vote
1answer
263 views

what are the different options to display data in Jquery Data table when initial page loads

I have a requirment to display child object records using jquery datatable in each child object jquery tab when a parent is selected.Currently i am using remote action to display all the child ...
1
vote
2answers
55 views

Is there a way to catch/process Visualforce input field validations?

I have javascript/jquery on a page that uses a variable from the controller that is transient. When the visualforce input field validation fails, it refreshes the page without going to the controller ...
1
vote
1answer
70 views

How to execute Jquery logic when inputCheckbox is checked true, but not execute jQuery when inputCheckbox is false

<apex:inputCheckbox styleClass="billCopy">Same as Above To Address </apex:inputCheckbox> <apex:includeScript value="//code.jquery.com/jquery-1.11.0.min.js"/> <script> var ...
0
votes
2answers
177 views

Using jQuery to access a SF Controller variable

'lo everyone. I have been trying to use jQuery to access a variable in my controller and I have just not been able to put it together. So, I created a simple example to eliminate anything extra, but ...
2
votes
1answer
3k views

How to add a check box column to jquery datatable

I need to add a check box column to a jquery data table and make the row selectable. Once rows are selected and clicking up on submit button then the id's of selected rows should send back to the ...
1
vote
1answer
77 views

How to prepend text to Img src value

I have this code: <td><apex:outputText value="{!e.p.Imagen_Producto__c}" escape="false"></apex:outputText></td> where the value "{!e.p.Imagen_Producto__c}" is equivalent ...
0
votes
1answer
596 views

Jquery Validation in Visualforce Page

I need to validate the Account.Unit__c field using some jquery dialog box.But I am having difficulty in getting visual force component Id in jquery. Update I followed Keith C recommendation and ...
2
votes
1answer
65 views

Jquery dialogue is not coming when it is added as a home page component, but is working fine as a individual page

<apex:page > <html lang="en"> <head> <meta charset="utf-8"/> <title>jQuery UI Dialog - Modal message</title> <link rel="stylesheet" ...
3
votes
1answer
445 views

Jquery Modal Popup window in Salesforce is vanishing after it shows for 2 seconds

I have a button, onclick of that i want to display the modal pop up window. Here's what i have done- Window is displayed for 2 seconds and then it vanishes! what might be the problem? ...
0
votes
1answer
588 views

Can't upload files with IE11 - does not support binary blobs

I am using the following script to upload files, function upload_file(id, index) { var input = document.getElementById('FILE_INPUT_' + index); var parentId = id; var ...
2
votes
2answers
323 views

Return list of records from Salesforce Object with JavaScript

How could I return a list of records using only javascript, with no apex: elements. My original approach was to use an apex:repeat like so: <apex:repeat value="{!attachments}" var="attach"> ...
2
votes
2answers
184 views

Jquery datatable error pops up when table is loading

I am using datatable plugin in a visualfroce page. Below warning popsup only at the time of page loading and table looks good after closing the alert. Here is the code... VisualForce Page ...