So what is the issue/problem?
You need to summarize the question, like why is state empty $.get(host +'/get_aux/' + aux, function(state){
I suggest you study Mojolicious::Lite +and jQuery +AJAX + Mojo::Template both the perl and the javascript (and references), as headers (like content type) matter, and so does handling failure
In reply to Re: jQuery issue with Dancer2 (a problem summary)
by Anonymous Monk
in thread jQuery issue with Dancer2
by stevieb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |