function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
Hi,
Can I invoke an apex class from my HTML page in an external application. If yes, then please tell me how can we do that.
Thanks
Create VF page with apex class and call the function in VF page action.
Include it to public site of the Force.com site.
Include force.com site URL to your HTML.
- Kamlesh Chauhan
LogicRain Technologies
kamlesh@logicrain.com
www.logicrain.com
Sounds plausible
Thanks, I have few of doubts:
Which function are you referring here to call
Include it to public site of the Force.com site
How
How do you recommend to include the URL in HTML(which section/tag)
(1) Create VF page with apex class and call the function in VF page action.
The method of apex class you need to invoke from HTML, please call it in VF page.
Example:
<apex:page controller="MyController" action="{!MyAction}>
</apex:page>
(2) Go to Setup --> Develop --> Site option. Create site and add above VF page to the site. You can use this URL.
(3) Use site URL with VF page in your HTML anywhere you need. Like on button click, URL etc.. It is up to you..
Regards,
Kamlesh Chauhan
Thank Kamlesh, but my requirement is slightly different, described below:
Ok, understood.
The best solution is to create webservice in Salesforce and utilize it in HTML.
Try to search in salesforce docs for more help.
Sounds good.
Would you like to point to some link or tutorial for the same.
Create VF page with apex class and call the function in VF page action.
Include it to public site of the Force.com site.
Include force.com site URL to your HTML.
- Kamlesh Chauhan
LogicRain Technologies
kamlesh@logicrain.com
www.logicrain.com
Sounds plausible
Thanks, I have few of doubts:
Create VF page with apex class and call the function in VF page action.
Which function are you referring here to call
Include it to public site of the Force.com site
How
Include force.com site URL to your HTML.
How do you recommend to include the URL in HTML(which section/tag)
Thanks
(1) Create VF page with apex class and call the function in VF page action.
The method of apex class you need to invoke from HTML, please call it in VF page.
Example:
<apex:page controller="MyController" action="{!MyAction}>
</apex:page>
(2) Go to Setup --> Develop --> Site option. Create site and add above VF page to the site. You can use this URL.
(3) Use site URL with VF page in your HTML anywhere you need. Like on button click, URL etc.. It is up to you..
Regards,
Kamlesh Chauhan
LogicRain Technologies
kamlesh@logicrain.com
www.logicrain.com
Thank Kamlesh, but my requirement is slightly different, described below:
Thanks
Ok, understood.
The best solution is to create webservice in Salesforce and utilize it in HTML.
Try to search in salesforce docs for more help.
Sounds good.
Would you like to point to some link or tutorial for the same.
Thanks