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

**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:** 1

<div class="post-metadata">

**Author:** ![Yogesh\_Kbizsoft](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/yogesh_kbizsoft/32/297602_2.png) [@Yogesh\_Kbizsoft](https://meta.discourse.org/u/Yogesh_Kbizsoft)\
**Post date:** [19 במאי,‏ 2023,‏ 3:03pm UTC](https://meta.discourse.org/t/how-to-execute-server-side-code-when-clicking-a-button/265795/1 "2023-05-19T15:03:07Z")

</div>

How can I do something like,  
When I click on a custom button, I want to run some server side code.

For instance One button click I want to run file Jobs/Secheduled/test\_job.rb

Or Can I run the code inside this file when somebody visits the url admin/plugins/my-plugin.

I am a beginner to discourse plugin development, And really struggling to do something like this, Any help will be much appricated

---

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