fossfreedom/rhythmweb — pull request #3 by dinoboy197 (2012-09-14 00:27:08+00:00)
Title: Use AJAX for web button interactivity

This should fix the problematic page reload error.

The code now uses Javascript (using JQuery) to send commands to the the plugin. The plugin will execute the command and simply respond "OK". The JQuery callback hander will then reload the page, to ensure that the page content stays updated in case of track changes.

Using JQuery + AJAX sets us up for many more quick loading, dynamic features of the UI, including deprecating full page reloads in the future if desired.

The parse_post method was changed to be more robust to CONTENT_TYPE headers sent from modern browsers, which might include the content type itself and other data (like charset.)