Javascript is a weakly typed interpreted programming language primarily implemented by web browsers to allow for client-side scripting. It can be used in Visualforce pages to give a more dynamic experience to end users. Additionally, the Visualforce engine generates and uses JavaScript to support ...

learn more… | top users | synonyms

1
vote
2answers
71 views

Using Twitter Bootstrap in Visualforce

I wanted to create a image slider, and i got a few pointes that lead to "Twitter Bootstrap". Now i have decide to dig in, i tried the basic example on Twitter Bootstrap in Visualforce ( Which does ...
2
votes
2answers
38 views

wrappers and JavaScript pop-up?

Use Case: What i want is a list of records, and allow this user to choose 2 of those records, then click a button to go to a new VF page, if the user selects more than 2, i want him to get a ...
1
vote
2answers
53 views

Updating and displaying VisualForce output Label in realtime without refreshing the page

This is what I'm trying to accomplish with my VisualForce Page. I would have three input Text sections on my Visual Force page. User would enter an integer that would be the Discount that would be ...
3
votes
2answers
47 views

Does the salesforce JavaScript proxy work without API acess?

Basically, I'd like to implement a pure JavaScript SOAP call, and I'd like to know if salesforce.com allows the following code in a non-API-enabled Professional Edition: <apex:includeScript ...
0
votes
1answer
28 views

Now getting updated values in java script

Below is my code. I am calling this function on On-load and every-time when something get changed on server side. funtion display() { var costAmount = 0; var minPrice = ...
2
votes
0answers
20 views

Including javascript in the top level window of Service Cloud

I'm working on an integration project that requires showing the Service Cloud from a .NET control. That control generally communicates via a javascript object on the top level window. The problem I'm ...
1
vote
0answers
12 views

Anyway to hack subscriber users to a piece of content?

Is there any supported or unsupported way to programmatically subscribe a user to a piece of content? A related post suggests that you might be able to hack a post to make a piece of content as ...
1
vote
2answers
62 views

Redirect Visualforce page issue

We have created a custom object"Sample", in that we have created a custom button "New record". When we click that new record button it will go to new page where we create new account. which is similar ...
0
votes
2answers
51 views

Passing APEX objects to RemoteAction

I'm attempting to pass a JS array of JS Objects that are defined to match an sObject array (list) in my @RemoteAction method like so, JS var rateOverrides = []; ...
3
votes
2answers
61 views

JavaScript variables accessed elsewhere

I am attempting to count the total number of checkboxes that have been clicked on my page. I have all of the code to determine what's been clicked using JS. I need to pass this number to a controller ...
3
votes
1answer
44 views

Ajax Toolkit, asynchronous javascript return values to a global variable

I am creating this Visual force page that will heavily rely on the Ajax tool kit and trying to do it asynchronous style, because I think that is what the cool kids are doing. Is it not possible to ...
1
vote
2answers
26 views

Uncaught ReferenceError : a39Q0000000CvnaIAC is not found - Java script

1). I am not able to understand why is this exception coming in JavaScript. I am doing like below - // Service Side Code Calculator__c Calculator= [Select id, name, (select id, fee_amount__c, ...
2
votes
1answer
41 views

How to get Controller list in page java script

Calculator__c objCalculator = [Select id, name, (select id, fee_amount__c, cost_Amount__c, Type__c, from Non_Labor_Cost_Details__r) From Calculator__c p where id =: PId]; When I try to use this ...
1
vote
4answers
78 views

Unable to hide a component on vf page using JavaScript

I'm trying to hide an inputfield on visualforce page based on some condition. So, i started with below code, but unable to hide the inputfield on page load itself. Both the alert messages displayed ...
0
votes
1answer
22 views

Accessing Sobject using javascript

I want to access a Sobject field using javascript in a visual force page and based on its value perform an action. How can I access a Sobject field using javascript?
0
votes
1answer
38 views

How to pass values from the javascript to <Apex:outputlabel>

Im constructing a visual force page in which im trying to display a message in <apex:outputLabel> thru javascript . How can i pass the value to the output label from javascript ,
0
votes
0answers
34 views

Looking to save selected account records in list using ONCOMPLETE command within a apex:commandbutton

Very straight forward listview table of account records - see apex:pageblocktable below Within this account listview table, we have a checkbox field at the account object as shown in our listview. ...
1
vote
1answer
119 views

System.StringException: Invalid id: null

Im trying to this example program,i seen this program in stack exchange.The issues are connect one VF page 1 to VF page 2 and click save button in VF page 2,it must populate account name in VF page 1 ...
1
vote
1answer
45 views

Pass value from Previous page to first page using javascript

I have two VF page and two apex class,i want to pass value from VF page 2 (textbox1) to Vf page 1(account lookup textbox1) using javascript.i searched lot links but i can't achieve this.Please help me ...
0
votes
1answer
37 views

Why does apex:sectionHeader not output a JavaScript ID, despite having one available?

Given the following code: <apex:page > <script> function onload() { var elementid = "{!$Component.sectionheader}", outputarea = ...
1
vote
1answer
49 views

how to get sessionID in html area component

How can i get the sessionID in the html area component , in the sidebar , using javascript without referring to the connection.js , Is this possible
1
vote
1answer
32 views

VisualForce parsing the script and replacing regular expressions

I have some script to denormalize the tags that get normalized in the Ajax return. The problem is that when I do: str.replace( /&amp;/g, "&" ) in my script, the VisualForce page rendering ...
2
votes
1answer
66 views

CheckALL doesn't visually show all checkboxes as checked in Visualforce

I implemented a checkbox class with a checkaLL function(called using javascript) which makes sure to select All checkboxes as it should. However, the problem is that it doesn't visually show the ...
1
vote
2answers
92 views

Redirect to VF page

I have two Visualforce page(Page1 and Page2) and two Apex Class.( Class 1 and Class 2). Using javascript am connecting VF page1 to VF page2.In VF page2 have save button when i click save button it ...
2
votes
1answer
74 views

Error while trying to use `sforce.apex.execute`

I was trying to use the sforce.apex.execute in javascript using <script src="/soap/ajax/15.0/connection.js" type="text/javascript"></script> <script src="/soap/ajax/15.0/apex.js" ...
3
votes
0answers
52 views

How to hide the <apex:enhancedlist>

I have side bar with a custom Html area component ,which consists of links, by clicking on the links corresponding should show , but when i hide and show it displays in narrow line format , how to ...
1
vote
1answer
40 views

Clicking on the custom component in sidebar should load on the same page

I have created a custom Html area component on the sidebar , which contains links which are linked to corresponding VF pages , how can i make it to load on the same page
0
votes
2answers
67 views

How to get the Role of the currently logged in user

Is there any possibilities to get the Role of the current user who has logged in to my application by using javascript or some other ways
1
vote
0answers
14 views

Odd results from JSENCODE when merging foreign key Name fields in custom JavaScript button

I've got a custom JS button on a custom object call Card, and the Card object is child to Contract (via Lookup). That JS button (called New Adult Card) shows up on the Cards related list on the ...
1
vote
4answers
76 views

Sorting conflict between SOQL query and JavaScript in Visulaforce page

I have a visualforce page that I want to sort its columns by a datetime field which I do in the SOQL query via the controller using the ORDER by myDateTime__c DESC. However I also need to use ...
0
votes
0answers
48 views

Customizing Case Feed with JavaScript or VisualForce to display Detail View or otherwise manually trigger publisher actions?

We're implementing Service Cloud Console for a customer and using the Case Feed. They have been requesting many small customizations, mostly to eliminate clicks for their agents to make their whole ...
1
vote
2answers
75 views

Remove the Button “Discover Summer Release” on Home Page

On the Home page, to the top right corner there is a button link "Summer 13 Developers" found. One of my client's requirement is to remove that button on the home page. Im using this code to hide the ...
2
votes
4answers
247 views

How to call Apex REST API from Javascript?

I have two different developer orgs. One contains apex REST web service, and I want to call that REST service from my second org. I have tried to call that REST service using normal ajax post request ...
2
votes
1answer
75 views

Javascript alert on button click

I want to prevent users from being redirected when they click a button and picklist value is false. I have a custom button on Opportunity related list on account. If the value of Account type is ...
5
votes
2answers
117 views

Spellcheck within a custom object/textarea/Notes field

And now, some backstory. I have no previous Salesforce experience, and I'm an emerging developer. I work for a company that uses the Opportunities section to track clients and the insurance products ...
1
vote
1answer
59 views

Open windows folder from custom button or link

I am trying to open a windows folder like my computer or my documents or a network folder using a custom button or custom link of an object in salesforce. i.e by clicking that button or link a ...
1
vote
2answers
129 views

How can I hide the Attach File button from Notes & Attachments related list?

My client is using Professional Edition. They want to remove or hide the 'Attach File' button from the Notes & Attachments Related list which is available in Account,Contact and Opportunity ...
1
vote
1answer
58 views

Can I have a two line text in a select option value

Can I have a two line text in a select option value in Salesforce? Please let me know if there is a work around if not. thanks sanjib
4
votes
2answers
149 views

How to share JavaScript between Custom Buttons and Visualforce pages?

Is there any way we can add Execute Javascript custom page button to Visualforce page and reuse it. I am just checking if any way we can save writing JS code is button again in VF page. MY ...
2
votes
2answers
51 views

How to de normalize text saved in a text area with HTML tags

I have an object that I've entered text with HTML snippets that I want to insert into a page using JavaScript. When the string is passed in the object(s) using Apex, the strings are normalized so that ...
1
vote
1answer
55 views

Sending email with javascript on custom button

I am trying to select the appropriate email template using javascript on a custom button. Here is a stripped down version of my code: var template; var type = "{!My_Custom_Object__c.My_Field__c}"; ...
3
votes
1answer
76 views

Getting size of a list in javascript or jquery

I have a list on my controller. I want its size in javascript function. How to get it?
1
vote
2answers
110 views

Calling Extension Methods from JavaScript

Here's what I want to do. I'm overriding a new/edit button for tasks. when a VF page loads, have it check a condition in my extension. If that condition is met, show a pop-up and re-deirect the user ...
1
vote
2answers
68 views

What Javascript code is required to convert a lead to account

I want my agents to be able to convert a lead to an account from the lead list view. I have created the custom button but need the appropriate code. I used what was suggested but get a message Missing ...
4
votes
2answers
90 views

Does embedding static resources in section header still work

I was trying to modify some styling in standard pagelayout. I know way back there was an hack where devs used to create static resource with JS in it and embed the JS in the section header of a ...
3
votes
1answer
146 views

Wait for .each & contained async calls to complete before redirect

Using JS REST toolkit, I'm trying to insert one customer record and multiple related contact records, and then redirect to the detail page of the customer record via JS. The problem is JS redirects ...
1
vote
1answer
88 views

ActionFunction working in Chrome but not in IE and Moz

So, the page has an action which must be invoked when "enter" is pressed. VISUALFORCE: //script: function pressReturn(e, currOffer) { var keyPressed = e.keyCode; if (keyPressed == 13) { ...
1
vote
1answer
93 views

Adding Date and Integer in jQuery

<script type="text/javascript"> function duedatecal(){ var dmy = $(".invoicedate").val().split("/"); alert(dmy); // it is in the format of mm/dd/yyyy var invoicedate = new Date( ...
3
votes
1answer
80 views

Using PE created new VF page for Opportunity showing wrong probability value based on stage picklist value selected

I have created a VF page for Opportunity, added this new vf page to Opportunity new button. When I am creating a new Opportunity, probability is showing in correct value. For example if I select the ...
1
vote
1answer
197 views

Default the “Send Notification Email” Checkbox to Checked

I have been trying to figure out how I can make the "Send Notification Email" checkbox checked by default when changing the owner of a Case record in Salesforce. I know that you can toggle this from ...

1 2 3 4