# Custom menu with an AJAX call

**URL:** <https://meta.discourse.org/t/custom-menu-with-an-ajax-call/76267>\
**Category:** Development\
**Created:** [17 Dicembre 2017, 5:49pm UTC](https://meta.discourse.org/t/custom-menu-with-an-ajax-call/76267 "2017-12-17T17:49:00Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Happy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/happy/32/84237_2.png) [@Happy](https://meta.discourse.org/u/Happy)\
**Post date:** [17 Dicembre 2017, 5:49pm UTC](https://meta.discourse.org/t/custom-menu-with-an-ajax-call/76267/1 "2017-12-17T17:49:00Z")

</div>

Hello,

I set up a forum and I would like to have the same menu as the site on the forum. So for that, I have a route that returns the menu.

I see two solutions: make an ajax call and append the result in the dom or create a plugin to customize the header.

The first solution is easy to set up but I would like to know how to create a plugin with an ajax call.  
I managed to create the widget but I did’nt succed to make an ajax call .

Is that possible ?

Thanks,  
Happy

---

_[View the full topic](https://meta.discourse.org/t/custom-menu-with-an-ajax-call/76267)._
