JavaScript remoting in Visualforce allows you to call methods in Apex controllers from JavaScript.

learn more… | top users | synonyms (2)

1
vote
1answer
25 views

Visualforce.remoting.manager.invokeAction Clarification

I am revisiting old code from an old developer and I am having trouble reading a line they wrote: Visualforce.remoting.Manager.invokeAction(fetchAttachmentAndNote, parentId, function(result, event) {...
0
votes
1answer
34 views

Facebook does not allow Javacript to add my profile picture while integrating facebook and salesforce

Access to scontent.xx.fbcdn.net was denied 403 error. I made call on graph api as 'https://graph.facebook.com/me?fields=id,name,email,picture&access_token='+token I got response as : { "...
0
votes
2answers
27 views

Why page is getting refreshed, while uploading an attachment?

When I'm uploading an attachment, whole page is getting refreshed. And because of that my form data is getting lost, since file upload is on same page. I don't want to lose my filled data whenever I ...
0
votes
0answers
34 views

Jcrop--Image cropping before upload

Something is wrong with the code i am unable to figure it out. Canvas is showing while cropping but when i hit save button it is just refreshing the page but not saving the canvas as attachment to the ...
1
vote
1answer
41 views

Upload an Attachment using Angular code

I have following code in VF page: <tr> <td class = "jtd">Resume</td> <td><input type="file" id="file" ng-model="con.file"/> </td> </tr&...
1
vote
1answer
19 views

How to retrieve custom setting using javascript remote object

In apex, normally we can consider retrieving info from a custom setting just like an object using query. But the simpler way remain the use of the getInstance method. But I want to use javascript ...
0
votes
1answer
19 views

How to open Dropdown check box values,when i click in input texbox?

When i am add the multi checkbox values(Daily,Weekly,Monthly) to input text box on that time drop down function is not working ,how can i achieve this. function checkselect(){ var ...
0
votes
1answer
19 views

Size limit on sforce.connection.remoteFunction?

I am using Ajax Toolkit function sforce.connection.remoteFunction. What are the limitations of this method? For example if I send an encoded Blob content as a request, is there any limitation on the ...
1
vote
2answers
38 views

Javascript Remoting in Visualforce Page

I am working on searching the contact by its first name. Is it Feasible to make a call to server from javascript every time when user presses a key ? Controller : global class ...
0
votes
1answer
20 views

Populate Dropdown in html using remoting [closed]

I have a dropdown which needs to populate data dynamically from the custom setting records in salesforce using the javascript remoting. Can anyone tell me how can I achieve this? I am very new to this ...
1
vote
1answer
104 views

Visualforce Remoting Exception: Input too long

I am getting the following error while trying to upload an excel file. What would be the best way of reducing the size of request? https://help.salesforce.com/HTViewSolution?id=000193799&language=...
0
votes
1answer
15 views

Trying to access a variable in controller from a factory [closed]

In salesforce visual force page I am using angular for my single page application. I have a factory which has one function and also uses a remoting call. I want to use the variable defined in the ...
1
vote
2answers
37 views

Change the code to reduce callback

Below is the functionality my code achieves currently Get the customer site . If customer site exists then check if latitude and longitude exist and if all is true then open the Locator with given ...
0
votes
1answer
18 views

How to check for a null value in remoting call

I have the following code which checks for an ID and then calls a function on retrieve in the remoting call in salesforce. Now when the record is retreived and it is null then how to handle it. I mean ...
0
votes
0answers
16 views

Retrieve Data from Angular Service and pass it to controller using remoting call

I have a scenario in which I have 3 operations to complete, Operation 1, operation 2 and operation 3. Operation 1 is to Read the Information about a record based on the URL. Url will have a id and ...
2
votes
1answer
30 views

remoting call from javascript appends extra parameter to the URL

I have a remoting method called from a controller which is given below @RemoteAction public static PageReference openLocatorPage(String addressId){ Address__c addr = [SELECT Id, Name, Latitude__c,...
0
votes
0answers
22 views

Passing values from vf to controller using java script remoting

I have two latitudes and logitudes value and I am trying to pass them to the controller but it gives me an error saying expecting two parameters and got one. Below are my javascript calls ` ...
0
votes
1answer
37 views

Limit for javascript remoting request

What I want to do is upload attachments for a record. For this, I was thinking of using javascript remoting and send attachments/files using remote action. Is there a limit for request data sent in ...
3
votes
1answer
38 views

barSeries can not contains multiple fields in yField via Javascript?

I can render this barSeries from controller page: <apex:chart id="barChart" height="400" width="100%" data="{!dataArray}"> <apex:axis type="Category" position="bottom" fields="...
2
votes
1answer
54 views

Visualforce.remoting.Manager in a Static Resource used in a Lightning Component

I am trying to convert a Visualforce page into a Lightning Component. The Visualforce page uses jQuery code in a static resource to insert HTML it generates based on a VisualForce.remoting.Manager ...
1
vote
1answer
39 views

Passing Javascript variables to Apex Extension [duplicate]

Alright, I've created a custom calendar using the following package: http://fullcalendar.io/docs/ and code by Cody Sechelski, the setup that I currently have works great. I basically have the exact ...
5
votes
1answer
88 views

JavaScript Remoting for Apex Controllers

please explain what is the difference between these two methods? I found this in documentation: You can use the $RemoteAction global to automatically resolve the correct namespace, if ...
0
votes
1answer
51 views

How to close Model window page in the VF page

I am using model window VF page to add attachments in another Vf(Main) page. Attachments is getting added to the case. once the attachment is added, the entire page is redirect to Modal window page(...
0
votes
1answer
36 views

Is it secure to use apex:remoteObjects to update objects via JS?

I have some concerns about security when using remoteObjects <apex:remoteObject> <apex:remoteObjectModel name="Lead" fields="Id,FirstName"/> </apex:remoteObjects> lead.retrieve(...
5
votes
2answers
242 views

Javascript remoting for Apex

It may be a stupid question but just for a security concern as well as understanding. Can somebody please explain what security measures are in place for Javascript Remoting? Specifically, what ...
0
votes
0answers
70 views

VFRemote.js:117 Visualforce Remoting Exception: You popped a context which you never pushed, check for unbalanced push and pops

I get this error when I try to update Email using Javascript remoting on User object. VFRemote.js:117 Visualforce Remoting Exception: You popped a context which you never pushed, check for ...
0
votes
2answers
393 views

Call a Salesforce Remote Action Method from JavaScript?

I am creating my UI with React JS and have to call a Salesforce Remote Action from React file. React JS bundles everything into bundle.js and this will be added in a VF Page as an external JS file. ...
3
votes
2answers
41 views

How to move Remoting apex to static resources

I'm developing a Managed package and just started to move some code, I noticed some of my javascript functions are exposed in the code, I would like to move all that code to static resources leaving a ...
1
vote
1answer
46 views

Trouble updating a Javascript array from Apex controller via Javascript Remoting method

How can I update this javascript array using JS Remoting? var data = []; Visualforce.remoting.Manager.invokeAction('{$RemoteAction.myController.myMethod}', function(result, event) { if (...
1
vote
1answer
41 views

update value of <apex:repeat>

is there any possibility to update list to iterate in apex:repeat markup? I tried to do this in javascript, but without success. I have some data in JS by calling externall service, and after that I ...
1
vote
1answer
83 views

Execute Controller Method During window.onbeforeunload event

I have a visualforce page that runs calculations and stores them in an sObject as "temporary" until a user clicks a Save button, which removes the temporary flag. This was done because the ...
0
votes
0answers
62 views

How to get field API name as a label in VF?

I am trying to do something like this <script> window.$Label = window.$Label || {}; $Label.SuppressAutoLink = '{!JSENCODE($ObjectType.CustomObject__c.fields.CustomField_c.Name)...
0
votes
0answers
89 views

how to overcome 120 sec timeout in JS remoting

i did try below solution, Visualforce.remoting.timeout = 120000; I am still getting the timeout issue. The remote method is hardly 40 lines code and is optimized also i am not making callouts in ...
0
votes
0answers
82 views

How to create a cascading drop down list using javascript remoting and apex salesforce

I have a requirement where i have to show cascading dropdown in salesforce. I am showing salesforce objects in a dropdown list, on the selection of particular object, its field will be populated in ...
8
votes
0answers
186 views

Error parsing json response: 'expected expression, got '<''. Logged in?

I'm calling a remote action which returns a wrapper. It works without any issues on most of the time. But sometimes, it throwing an error: Error parsing json response: 'expected expression, got '&...
0
votes
1answer
75 views

Javascript remoting handle Asynchronous calls [closed]

This question may be simple for many, but I'm unable to understand how the asynchronous calls work. I have a page where I'm making the javascript remoting call, now how long would it take for me to ...
2
votes
0answers
46 views

Salesforce Optimistic Record Locking and JavaScript Updates

Is there a way to implement field only updates for Salesforce? Even if fields could be updated concurrently through JavaScript/JavaScript remoting calls, would Salesforce still save the record using ...
1
vote
2answers
124 views

Creating records using Remote objects

Can we create multiple records at a time using remote object create() call? If yes what is the syntax? I tried passing a list of objects to create call but it didn't work.
1
vote
1answer
52 views

How do I validate a input-text field in an Apex Repeat tag by alerting on click of a button if its empty or not?

TEXT FIELD: <apex:repeat value="{!TransTerms }" var="tms" id="repeatTag" rendered="{!showApproval && readOnly == false}"> <div class="textinput" id="inner-div-tc"> <apex:...
1
vote
1answer
29 views

Simple Question about javascript remoting

i have a JavaScript array and i want to send it as an argument to a remote method using javascript remoting , here is the javascript array: var quizQuestions = [ { type: "multiple",...
0
votes
1answer
54 views

Input values are not being stored in the controller (Javascript Remoting Help)?

Forgive my incompetence...I have a visualforce "Wizard" I had working relatively well but I have had to change some key functionality to use Javascript to call a Web Service API and return some values....
0
votes
0answers
48 views

Code from workbook does not work in my Org

In Visual force workbook, I have task to integrate google maps with a VF page. If you are aware of work book excersice at pg - 53 https://resources.docs.salesforce.com/sfdc/pdf/workbook_vf.pdf I have ...
1
vote
1answer
39 views

Aborting Javascript remoting

I have a javascript remoting method which is called on keypress in an input box, but when the new call is made, is it possible to abort the previous processing? Please let me know if we can achieve ...
2
votes
1answer
125 views

Site.changePassword returns null when called using javascript remoting

My Use case is: As a CustomerCommunity user, I want to login and click on change_password link that redirects me to change_password page in AngularJs, which calles the changePassword method using ...
1
vote
1answer
262 views

JS Remoting + Angular Ng-File-Upload

I was wondering if anyone had any examples using AngularJS + NgFileUpload and a @RemoteAction that handles base64 encoded file-data to create a drag & drop uploader? I have JS handler that works ...
21
votes
1answer
357 views

Parallel Execution of JavaScript remoting calls

I was hoping to be able to fire off multiple JavaScript Visualforce remoting calls in parallel and have the execute simultaneously, and for me to deal with the responses asynchronously. Whilst in ...
0
votes
1answer
72 views

JavaScript remoting reloading page

I'm trying to use JavaScript remoting and everytime I hit enter page refreshes. How do I stop it? Below code throws alert "enter" and reloads immediately even before I acknowledge alert. Please help ...
1
vote
0answers
96 views

How can I display an expansion icon only if nested(child) records exist

I'm trying to implement Daniel Hoechst's 'Datatables in Visualforce' to turn a plain html table into a functional datatable. The table displays uses js remote objects to display Account records and ...
3
votes
1answer
88 views

Confused about Visualforce Remoting, inconsistency?

Callback functions have been behaving very strangely and I am not sure if I am getting this correct. I have a remoting function which is update records in data base and have just kept a alert on the ...
1
vote
0answers
86 views

How can I place an Extjs app in SFDC visualforce page (built with sencha Cmd 6)?

I created an app using sencha Extjs, and built it with Sencha Cmd v6.0.1.76. I created a object that handles calls to the @RemoteAction methods in the controller of the vfpage, and locally it works ...