10
votes
Accepted
Javascript Remoting returning JSON with encoded characters. For example &
The RemoteAction framework auto-escapes the results by default, to prevent accidental XSS injections for developers using innerHTML to render the contents of a callback. This is a security feature, ...
9
votes
Accepted
Use of Javascript Frameworks in Lightning Web Component
React (I assume other frameworks will also work, but I've only tested react) definitely can be used in LWC, but it's honestly quite a hack due to the limitations and constraints on the platform.
...
9
votes
Modern JavaScript Frameworks (Angular Js, React JS ) within LWC
The short answer is Yes, you can use React and probably most other javascript frameworks inside of LWC.
A very simply example of this would look something like this:
import { LightningElement } from '...
6
votes
Modern JavaScript Frameworks (Angular Js, React JS ) within LWC
This question has been asked at the Salesforce World Tour Paris, where some members of the LWC team were present, but without a clear answer.
The question may be why should we use a framework besides ...
5
votes
Redirecting to VF Page from Managed Package UI
Always use $Page global variable for redirection in a visualforce page.
$Page.PageName if its outside namespace.
or $Page.Namespace__PageName, if its inside.
For accessing $Page in JavaScript ...
4
votes
Use of Javascript Frameworks in Lightning Web Component
Salesforce has is a page dedicated to using SLDS with react: https://react.lightningdesignsystem.com/. But the case for using ext. JS frameworks in LWC will be left to you.
Although there may be tens ...
3
votes
Accepted
Visualforce is not defined while using visual force remoting
You need to define a controller.
Change:
<apex:page showHeader="true" sidebar="true">
to:
<apex:page controller="CaseDetailController" showHeader="true" sidebar="true">
3
votes
Accepted
Redirecting to VF Page from Managed Package UI
The issue here is that when you're opening an unmanaged page from a Managed package, the platform is assuming the namespace of the managed package should also prefix your Visualforce page.
So, for ...
3
votes
Accepted
Help understanding a bit of Visualforce code
Your question is really about AngularJS not Visualforce.
See the Angular currency filter documentation; the first argument (after the first :) is the currency symbol and the second argument (after ...
3
votes
Accepted
Is it possible to use Angular and still be Lightning ready?
If it is for lightning Ready badge for appexchange ,you do not need anything more except to use SLDS as a CSS skin .Take a look at this to understand what is lightning ready .It need not be true ...
3
votes
Is it possible to use Angular and still be Lightning ready?
You can use Lightning Components as a container for your angular applications but not use any of the other functionality they provide. Using Lightning as a container instead of Visualforce gives you ...
3
votes
Accepted
using Angular JS /REACT in LWC
Learning React or Angular will not directly help you learn LWC, nor will learning LWC help you learn these other two technologies. They are all just different enough that you'll find they are more ...
2
votes
Accepted
What are security review's policy regarding apps that rely heavily on the REST API?
Many Apps on The Appexchange use the REST/SOAP API, and have no issues with the security review. We have the following requirements:
Use an OAuth Token. Don't steal the user's session Id and ...
2
votes
How to call a controller method from AngularJS
You can use javascript remoting function inside the Angular function:-
$scope.my_tree_handler = function (branch,scope) {
Visualforce.remoting.Manager.invokeAction(
"...
2
votes
Accepted
how to retrieve the values from sforce.connection.query
If you do not want records which have null in RenterOfVehicleRegDocument__c field. You can change the query filter as:
var Accrecords = sforce.connection.query("SELECT OwnerOfVehicleRegDocument__r....
2
votes
Accepted
Angular js change type of input box
Your page is getting all the rows changed to the same type because you are assigning the type to the app's scope instead of the row scope.
Think of your row as an object. That object needs an ...
2
votes
How are lookup fields implemented with a 3rd party framework?
Answering more broadly, I think you'll get nothing but trouble trying to embed AngularJS attributes onto VisualForce elements. That doesn't mean you can't ever use AngularJS on a VF page, but they ...
2
votes
Accepted
Angular JS in Lightning Component
In addition to Praveen's comment, I read some information in the ISV checklist guide that basically says that external MV* frameworks are not supported and will fail security review. Even if you don't ...
2
votes
Issue while using wrapper class in angular js
If you want or need to work with AngularJS (or any other JS framework) I would suggest you to use Visualforce Remoting instead. With this approach you will have to manipulate the state of your data in ...
2
votes
Issue while using wrapper class in angular js
I have found it easier to use JSON. You can do something like the following in your Apex controller:
String myWrappersJSON { get; private set; }
// myWrappersJSON = JSON.serialize(contactWrapperList)...
1
vote
Modern JavaScript Frameworks (Angular Js, React JS ) within LWC
Unfortunately you cannot use AngularJS, because AngularJS uses innerHTML to build its DOM, and the patched version of innerHTML in LWCs is "improved" so that it randomly and arbitrarily ...
1
vote
Using an angular build inside Salesforce
Yes you can using lightning:container.
From the docs -
lightning:container allows you to use an app developed with a third-party framework, such as AngularJS or React, in an Aura component. Upload ...
1
vote
Which client side JS framework is best to work with Salesforce
I suggest that Salesforce's own client side JS framework the Lightning Component Framework should also be on your list. Those components can be presented in Classic via Lightning Out and knowledge ...
1
vote
Accepted
Angular Static Resource Help
Cause:
Vistualforce page was expecting /js/src/ang.app.js path while static resource giving the path as /tcrmCreditContactTabs/js/src/ang.app.js after uploading.
Resolution:
Zip files ...
1
vote
Accepted
Rendering issues with ExtJS and Angular
For those who also noticed that the page becomes slow when using Visualforce Remoting, please check if you are using Chrome. I've tested the same page, doing the same thing, on Firefox, and it was a ...
1
vote
Angular JS within visualforce
Yes that is typical Angular code. Look for .js files included in the page and inside those you will find JavaScript used by the page.
There is a lot more to Angular than those declarations: if you ...
1
vote
Reloading a controller variable with AngularJS
The expression:
this.products = {!products_JSON};
will be translated into text by the server when the Visualforce page is first generated:
this.products = [{...}, {....}, ...];
and then when that ...
1
vote
AngularJS 4 on Visualforce Pages (or in Lightning Components)?
On using Angular within Lightning Components, the real gotcha is mentioned at the end of Christophe Coenraets's blog post Creating Lightning Components with React and taken from the security ...
1
vote
Accepted
Security question related to using AngularJS in Visualforce for a callout
Its not recommended to use the username/pass on the client side.
Instead what you can do is inject the Session Id and pass that instead.
$httpProvider.defaults.headers.common['Authorization'] = '...
1
vote
Security question related to using AngularJS in Visualforce for a callout
Please do Callouts from server side and once the response comes back pass them to Angular controllers and continue with processing.Its never secure to store passwords or secure information in ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
angularjs × 119visualforce × 58
javascript × 19
angular × 16
apex × 14
lightning-aura-components × 9
javascript-remoting × 9
lightning-web-components × 6
rest-api × 4
salesforce1-app × 4
react × 4
json × 3
visualforce-component × 3
static-resources × 3
html5 × 3
remote-action × 3
salesforce-sdk-hybrid × 3
lightning × 2
soql × 2
community × 2
managed-package × 2
aura × 2
lightning-apps × 2
force.com × 2
oauth2 × 2