You need to sign in to do that
Don't have an account?
schndt
Hi,
I am not able to figure why the JS remoting example shown at the following location would ever work correctly.
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_js_remoting_example.htm
Shouldn't the merge field syntax {!$RemoteAction.AccountRemoter.getAccount} _not_ be understood by Javascript?
For example,when I amend the examples as follows :
Change:
Visualforce.remoting.Manager.invokeAction(
'{!$RemoteAction.AccountRemoter.getAccount}',
accountName,
function, {...});
To:
AccountRemoter.getAccount(
accountName,
function, {...});
It works perfectly as expected.
What am I missing?
Question regarding Javascript Remoting example in the VF developers guide
Hi,
I am not able to figure why the JS remoting example shown at the following location would ever work correctly.
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_js_remoting_example.htm
Shouldn't the merge field syntax {!$RemoteAction.AccountRemoter.getAccount} _not_ be understood by Javascript?
For example,when I amend the examples as follows :
Change:
Visualforce.remoting.Manager.invokeAction(
'{!$RemoteAction.AccountRemoter.getAccount}',
accountName,
function, {...});
To:
AccountRemoter.getAccount(
accountName,
function, {...});
It works perfectly as expected.
What am I missing?
All Answers