# Ignition Web Dev

**URL:** <https://forum.inductiveautomation.com/t/ignition-web-dev/108737>\
**Category:** Ignition\
**Created:** [July 21, 2025, 5:21pm UTC](https://forum.inductiveautomation.com/t/ignition-web-dev/108737 "2025-07-21T17:21:34Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![kennethandrad](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@kennethandrad](https://forum.inductiveautomation.com/u/kennethandrad)\
**Post date:** [July 21, 2025, 5:21pm UTC](https://forum.inductiveautomation.com/t/ignition-web-dev/108737/1 "2025-07-21T17:21:34Z")

</div>

Hi, I want to do this

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/f/2ffcdf124c3274d401af073305ea11c0b79824ed.png)  
so I use this url [http://10.10.100.103:8088/system/webdev/ApagadoProgramado\_pt/charts/resumen?anio=2025&mes=6](http://10.10.100.103:8088/system/webdev/ApagadoProgramado_pt/charts/resumen?anio=2025&mes=6)  
because I have all of this but this send me an error  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/3/83c61fcd0f75f8965defa25d614dab7c1be50f0e.png)

I want to obtain the data that the user digit in the url such as javascript.

The final idea is that I send in an html data in a form and the javascript receive and do graphs, i need this because i can use highcharts.js please.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [July 21, 2025, 5:26pm UTC](https://forum.inductiveautomation.com/t/ignition-web-dev/108737/2 "2025-07-21T17:26:42Z")

</div>

You need to return a dictionary with one of the specific values the webdev module understands - you don't directly return text from your webdev function:

> **[Web Dev | Ignition User Manual](https://docs.inductiveautomation.com/docs/8.1/ignition-modules/web-dev#return-value)**
>
> The Web Dev module enables you to directly program against the web server inside the Ignition Gateway. Webpages can be built by hand using a combination of Python programming and static web resources such as images, CSS files, JavaScript files, and...

As in:  
`return {'response': u"Año: 25 | Mes: 2"}`

---

<div class="post-metadata">

**Author:** ![kennethandrad](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@kennethandrad](https://forum.inductiveautomation.com/u/kennethandrad)\
**Post date:** [July 21, 2025, 5:38pm UTC](https://forum.inductiveautomation.com/t/ignition-web-dev/108737/3 "2025-07-21T17:38:39Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/1/315cbee1d3c147259a837c48f2bdde1d887d8fbe.png)  
I need the answer that appears in the dictionary to be displayed in the JavaScript console as if I were using console.log(year) or console.log(month), or even in dictionary format, but I keep getting the error when using it.  
Or what I need to do to resolve something like this ?  
This is my url: [http://10.10.100.103:8088/system/webdev/ApagadoProgramado\_pt/charts/resumen?anio=2025&mes=6](http://10.10.100.103:8088/system/webdev/ApagadoProgramado_pt/charts/resumen?anio=2025&mes=6)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/5/45713149878eb0d6149cf094e4d3a83e0933f886.png)

---

<div class="post-metadata">

**Author:** ![ryan.white](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.white/32/73193_2.png) [@ryan.white](https://forum.inductiveautomation.com/u/ryan.white)\
**Post date:** [July 21, 2025, 5:40pm UTC](https://forum.inductiveautomation.com/t/ignition-web-dev/108737/4 "2025-07-21T17:40:54Z")

</div>

This code is not executing in your browser, it is executing on your gateway. `console.log` is not a valid function. Use a logger from `system.util.logger` to log the values to your gateway log file for inspection.

> **[system.util.getLogger | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-util/system-util-getLogger)**
>
> Returns a Logger object that can be used to log messages to the console.

You are receiving the 500 error due to the invalid function you are attempting to call. Your gateway logs should also show a warning or error stating such.

---

<div class="post-metadata">

**Author:** ![kennethandrad](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@kennethandrad](https://forum.inductiveautomation.com/u/kennethandrad)\
**Post date:** [July 21, 2025, 5:56pm UTC](https://forum.inductiveautomation.com/t/ignition-web-dev/108737/5 "2025-07-21T17:56:44Z")

</div>

Ok, but I only wants to send the data via url (CLIENT) and obtain the data via javascript (SERVER) it is possible or not ? using the def doGet(request, session): can someone help me with a simple example or how can i do this please ?

---

<div class="post-metadata">

**Author:** ![stevenson](https://avatars.discourse-cdn.com/v4/letter/s/41988e/32.png) [@stevenson](https://forum.inductiveautomation.com/u/stevenson)\
**Post date:** [July 21, 2025, 10:30pm UTC](https://forum.inductiveautomation.com/t/ignition-web-dev/108737/6 "2025-07-21T22:30:37Z")

</div>

shameless plug: [Ignition Exchange | Inductive Automation](https://inductiveautomation.com/exchange/2788/overview)  
The first example has a get returning bytes, but the format can be changed to text or json.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [July 21, 2025, 10:38pm UTC](https://forum.inductiveautomation.com/t/ignition-web-dev/108737/7 "2025-07-21T22:38:55Z")

</div>

> [@kennethandrad](#):
>
> javascript (SERVER)

This seems to indicate a fundamental misunderstanding of _something_ on your part.

Can you take a step back and describe the _general_ problem you are trying to solve via the Webdev module?

---

<div class="post-metadata">

**Author:** ![kennethandrad](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@kennethandrad](https://forum.inductiveautomation.com/u/kennethandrad)\
**Post date:** [July 22, 2025, 12:38pm UTC](https://forum.inductiveautomation.com/t/ignition-web-dev/108737/8 "2025-07-22T12:38:21Z")

</div>

The problem I had was that I couldn't get any return data, but I solved it with the JSON format. When I called, I forgot to include the .py file in the web address, otherwise I would keep getting an error. Thanks to everyone.
