I'm trying to process an AJAX request using catalyst to resolve some dynamic html generation trough jQuery. Simply put, I need to fill a <select> </select>
tag (created through jQuery, along with some other fields, on user input). To fill this tag I thought I could extend the code block creating the tags to perform a simple AJAX request for data I need... Something like this:
$.post("../ajax/simple_query", 'get="family_precedents"' );
And then process this very simple request on a perl script using Catalyst::Request like I normally would.
The problem is that AJAX response contains the Catalyst App wrappers and makes it really messy to both understand and use. Is there any way to avoid wrappers on an AJAX response using catalyst?