# How to make Ajax calls in CMS

**URL:** <https://community.bloomreach.com/t/how-to-make-ajax-calls-in-cms/1407>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [September 13, 2019, 11:33am UTC](https://community.bloomreach.com/t/how-to-make-ajax-calls-in-cms/1407 "2019-09-13T11:33:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gkr](https://avatars.discourse-cdn.com/v4/letter/g/e480ec/32.png) [@gkr](https://community.bloomreach.com/u/gkr)\
**Post date:** [September 13, 2019, 11:33am UTC](https://community.bloomreach.com/t/how-to-make-ajax-calls-in-cms/1407/1 "2019-09-13T11:33:58Z")

</div>

Hi Guys,

Could you please what config i have to do for Ajax calls in CMS.

thanks & regards  
Ganesh

---

<div class="post-metadata">

**Author:** ![jasper.floor](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/jasper.floor/32/28_2.png) [@jasper.floor](https://community.bloomreach.com/u/jasper.floor)\
**Post date:** [September 13, 2019, 11:38am UTC](https://community.bloomreach.com/t/how-to-make-ajax-calls-in-cms/1407/2 "2019-09-13T11:38:52Z")

</div>

HI,

please see:

> **[Asynchronous HST Components and Containers - BloomReach Experience - Open...](https://documentation.bloomreach.com/library/concepts/component-development/asynchronous-hst-components-and-containers.html)**
>
> Open Source Enterprise Content Management

---

<div class="post-metadata">

**Author:** ![gkr](https://avatars.discourse-cdn.com/v4/letter/g/e480ec/32.png) [@gkr](https://community.bloomreach.com/u/gkr)\
**Post date:** [September 13, 2019, 11:44am UTC](https://community.bloomreach.com/t/how-to-make-ajax-calls-in-cms/1407/3 "2019-09-13T11:44:35Z")

</div>

HI Jasper.floor,

thanks for quick reply, but we want to call REST api with Ajax call, like blow sample code snippet, could please let me know if it is supported in CMS.

\<@hst.headContribution category=“scripts”\>  
  
$(’#prodcurForm").submit(function (event){

$.ajax({  
uri: “/site/rest/api/product/loadProducts”  
})

}

thanks & regards KGR

---

<div class="post-metadata">

**Author:** ![jasper.floor](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/jasper.floor/32/28_2.png) [@jasper.floor](https://community.bloomreach.com/u/jasper.floor)\
**Post date:** [September 13, 2019, 11:53am UTC](https://community.bloomreach.com/t/how-to-make-ajax-calls-in-cms/1407/4 "2019-09-13T11:53:31Z")

</div>

I’m not sure I understand you. You can create rest endpoint. See:

> **[Expose RESTful Web Services: Overview - BloomReach Experience - Open Source CMS](https://documentation.bloomreach.com/library/concepts/rest/expose-restful-web-services-overview.html)**
>
> Open Source Enterprise Content Management

Or maybe you are looking for:

> **[Partial Page Rendering URL - BloomReach Experience - Open Source CMS](https://documentation.bloomreach.com/library/concepts/links-and-urls/partial-page-rendering-url.html)**
>
> Open Source Enterprise Content Management

Reaching the rest service is up to the client. So that has to be built into the js and the html page.
