cabennett85/gittest — Issue #1012: Ajax form submissions should degrade gracefully if JavaScript is turned off
Author: cabennett85
Created: 2012-03-02 00:30:52+00:00
State: open

Symptom: If JS is off and the server returns JSON, the browser prompts the user to download the JSON.

Solution:

1. JS Ajax form requests should append a parameter '_ajax=1'. The server should check for this parameter, and, if the parameter isn't there, it should treat the request as a normal form POST and return text/html (or redirect if necessary) rather than application/json.