# How do you exchange data between javascript and controller?

**URL:** https://discourse.roots.io/t/how-do-you-exchange-data-between-javascript-and-controller/13694
**Category:** sage
**Tags:** sage9
**Created:** 2018-09-26T04:40:12Z
**Posts:** 2

## Post 1 by @Peterson_Tubini — 2018-09-26T04:40:12Z

Hi guys,

I need to grab data from my controller using javascript but at same time I don’t want to echo tags at my code.

I was thinking on a way maybe by using jquery ajax or something? Anyone knows how I can do that?

---

## Post 2 by @alwaysblank — 2018-09-26T06:17:55Z

You might start by searching this forum: [https://discourse.roots.io/search?q=Controller%20ajax](https://discourse.roots.io/search?q=Controller%20ajax) Some of those seem relevant to your question.
