# multiple function

**URL:** <https://forum.djangoproject.com/t/multiple-function/23067>\
**Category:** Getting Started\
**Created:** [August 15, 2023, 11:41am UTC](https://forum.djangoproject.com/t/multiple-function/23067 "2023-08-15T11:41:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ibrahimkoyuncu](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/ibrahimkoyuncu/32/14897_2.png) [@ibrahimkoyuncu](https://forum.djangoproject.com/u/ibrahimkoyuncu)\
**Post date:** [August 15, 2023, 11:41am UTC](https://forum.djangoproject.com/t/multiple-function/23067/1 "2023-08-15T11:41:05Z")

</div>

```auto

```

hello developers. Im trying to create ecommerce website . shopping-cart, order, login functions are working perfect but search and pagination codes (bootstrap and js) not working. is that possible run Js and django same time? If you wanna see source code please let me know and share your email \*  
Thanks

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [August 15, 2023, 12:06pm UTC](https://forum.djangoproject.com/t/multiple-function/23067/2 "2023-08-15T12:06:09Z")

</div>

> [@ibrahimkoyuncu](#):
>
> is that possible run Js and django same time?

At the same time? Yes. But **not** in the same place.

Django runs on the server. JavaScript runs in the browser.

If your JavaScript code needs some data from Django, you use AJAX functions to call a Django view. That view can return data to your JavaScript, which can then update your page.

But you always need to be aware that these modules (Django and JavaScript) are running in two different places. It’s up to you to coordinate the activity between them.

---

<div class="post-metadata">

**Author:** ![ibrahimkoyuncu](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/ibrahimkoyuncu/32/14897_2.png) [@ibrahimkoyuncu](https://forum.djangoproject.com/u/ibrahimkoyuncu)\
**Post date:** [August 15, 2023, 12:21pm UTC](https://forum.djangoproject.com/t/multiple-function/23067/3 "2023-08-15T12:21:38Z")

</div>

Thank you mr Whitesell. Any suggestion AJAX for Django ?

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [August 15, 2023, 12:36pm UTC](https://forum.djangoproject.com/t/multiple-function/23067/4 "2023-08-15T12:36:56Z")

</div>

That’s going to depend upon what JavaScript framework(s) you may be using.

Historically, I have used jQuery. Currently for new work, I’m mostly using HTMX.

But you’ll want to pick whatever fits in best with whatever JavaScript libraries you’re already using.

---

<div class="post-metadata">

**Author:** ![ibrahimkoyuncu](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/ibrahimkoyuncu/32/14897_2.png) [@ibrahimkoyuncu](https://forum.djangoproject.com/u/ibrahimkoyuncu)\
**Post date:** [August 16, 2023, 11:47am UTC](https://forum.djangoproject.com/t/multiple-function/23067/5 "2023-08-16T11:47:17Z")

</div>

well i cant make any progress. Htmx, bootstrap datatable, js function, django datatable. Nothink work please help.

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [August 16, 2023, 12:00pm UTC](https://forum.djangoproject.com/t/multiple-function/23067/6 "2023-08-16T12:00:24Z")

</div>

You’ll need to post the code that is involved that you need help with. Try to limit what you post to the first error or problem you are encountering. Pick one issue for us to help you with and we can work forward from there.

Note: When posting code here, copy/paste the code into your reply, surrounded between lines of three backtick - ` characters. This means you’ll have a line of ```, then your code, then another line of ```. This forces the forum software to keep your code properly formatted. Do not post images of code.
