On my current app we are using ajax heavily for updating forms, often with the response getting injected into an table or unordered list . The entire form is then posted for the action which will actually change state in the domain. For example, say we have a 'NewItem' form (and have several...
Sometimes you don't know what type of document the server is going to return, so it would be nice to have the ajax handler deal with the response as the server is directing it to. JQuery doesn't have this baked in (I have had a ticket for ages there to implement it), but a workaround is to roll...
I just spent way too long wondering why my silly page kept refreshing itself, one of the forms on the page was submitting itself over and over ... I had been refactoring some Javascipt to allow me to use it generically across pages. My orginal code to bind an ajax call to the submit of the form was as...
I wrote a nice little charting component for our site recently, and needed to call a Javascript function in one View (the one that was the main page for charting), from another View (one that went off to the server using Ajax to load up a list of feeds that could be charted). This would have been traditionally...