Forum Discussion
NicoB
11 years agoLithium Alumni (Retired)
Hi,
you can call a component in this way:
$.ajax("http://YOURCOMMUNITY/restapi/vc?[COMPONENT-ID]&restapi.response_template=[COMPONENT-ID]¶m1=value¶m2=value") .done(function(data) { //Do stuff with the component's HTML }
Please note that param1 and param2 are needed only if your component declares parameters otherwise you can ignore them.
Also please note that this will work only if the current user has rest api "read" permissions.
Thanks,
Nico
Related Content
- 4 years ago
- 10 years ago