# כיצד להריץ קוד בצד השרת בלחיצה על כפתור?

**URL:** <https://meta.discourse.org/t/how-to-execute-server-side-code-when-clicking-a-button/265795>\
**Category:** Development\
**Created:** [19 במאי,‏ 2023,‏ 3:03pm UTC](https://meta.discourse.org/t/how-to-execute-server-side-code-when-clicking-a-button/265795 "2023-05-19T15:03:07Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [20 במאי,‏ 2023,‏ 10:22am UTC](https://meta.discourse.org/t/how-to-execute-server-side-code-when-clicking-a-button/265795/2 "2023-05-20T10:22:34Z")

</div>

> [@Yogesh\_Kbizsoft](#):
>
> When I click on a custom button, I want to run some server side code.

Then you’ll need to make an Ajax request to an endpoint that runs that code.

Can you say more about what you want to happen on the server side?

---

_[View the full topic](https://meta.discourse.org/t/how-to-execute-server-side-code-when-clicking-a-button/265795)._
