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

1
vote
1answer
36 views

Copy paste issue in Jquery

When pasting text by mouse.Submit button should be enable . when remove full text from text area , submit button should be disable. If remove partial text by mouse. Submit button should be in enable ...
2
votes
1answer
52 views

Upload a file using <apex:actionFunction> integrated with JQuery

I have an html form that contains a file input, so I want to upload the selected file from this form using <apex:actionFunction> The problem is that I don't know how to pass the file to the ...
2
votes
1answer
26 views

jqgrid demo in salesfoce

I want to display data in a JQGrid on visualforce page. I am not getting any error but i can't also see any data. By looking into the debug logs i came to know that my java script is not at all ...
1
vote
1answer
37 views

Validation for inputFields inside Pageblock table is not working

I am trying to do a simple validation, if qty received ENTERED is different than qty ordered, a JQuery dialog box should open. For some reason this validation is working only for the first ...
0
votes
0answers
35 views

Custom component not blocking page within IE

I am using a custom component that blocks the page and displays a fancy processing icon/text when any actions occur on my visual force page. My problem is that it does not seem to work with Internet ...
2
votes
1answer
27 views

jQuery embedded in Community Header/Footer Breaking Standard SFDC Pages

I have a community footer file that includes the jQuery library. When any standard page (i.e. edit/detail/list views) loads within the community the functionality is broken. For example, if I access ...
1
vote
1answer
37 views

Collapse a PageBlockSection once a commandlink has been pressed

I have been asked to have a pageblocksection minimize as soon as commandlink has been pressed to make our page look less crammed. So far I have set the area I need to minimize to collapsible true and ...
2
votes
2answers
63 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
40 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
3answers
47 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
167 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
60 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 ...
3
votes
2answers
90 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
107 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
2answers
117 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
123 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 ...
8
votes
1answer
133 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
116 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
49 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
190 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
77 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
59 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
72 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 ...
3
votes
2answers
162 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
60 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
821 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
259 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
92 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
59 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? ...
1
vote
2answers
43 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
143 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
135 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
494 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
94 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
89 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
123 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
480 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
100 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
65 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
491 views

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

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
72 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
56 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 ...
3
votes
1answer
57 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
382 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
63 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
76 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
228 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
5k 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 ...