I have an ajax call that updates or sets a value and this ajax script works fine. I can see the data being updated or added in the database.
Now the function it is calling (index) seems to do the update and insertion of the data. To provide feedback to the callback function it's also supposed to render the some output as json
some checks
...
userprogram.save();
<!--- Prepare the message for the user --->
response = {};
response["message"] = "Saved";
response["programid"] = "#userprogram.programid#";
<!--- Respond to all requests with `renderWith()` --->
renderWith(response);
It doesn't seem to output any json at all but just loads the index.cfm in the views folder which is then send to the javascript. I used jquery for the ajax and have set provides(html, json) in the init part.
I can't figure out what is wrong here, no error messages at all and it was something I had working some time ago.