I’m currently researching the best way to approach building a JavaScript widget someone can embed on their site, which would retrieve and display information from an external MySQL database.
The gist of the widget would mimic the needs/functionality of Twitter’s widget (http://twitter.com/about/resources/widgets), where it uses some combination of JavaScript, PHP and/or AJAX and retrieves information from a MySQL database with secure (or at least somewhat safe) cross-browser access. Does anyone have thoughts or ideas on the best and most reliable way to approach something like this?
Here is a great guide to building a cross-domain widget: http://alexmarandon.com/articles/web_widget_jquery/
The hard part is the Javascript side; the server side can be written in PHP, or Python, or Ruby or whatever. Your google search should include the term “javascript widget” to get more articles like this one.