It seems like this question is asked periodically on these forums and the common response is "You shouldn't do that with AJAX anyway. Just set the window location to the file."
But I'm trying to request a file that doesn't actually exist out on the server anywhere. It's dynamically generated given the GET/POST context parameters (by a Django view). The file I want to retrieve via AJAX and then save to the client machine is a text file (csv).
I can currently get the text to the client machine (and can verify this by seeing it in logging or an alert) but cannot then figure out how to save this text to a file inside of the AJAX success callback fn.
Is this possible, something JS can do (to open file save dialogs)?