Topic: YM4R/GM and AJAX
I want to use YM4R/GM (which is the Google Maps plugin for rails) to render a map based on an AJAX form. I'd like the form to appear initially and after it's submitted for the map to appear below it.
1. modify the <head> tag contents when the form is submitted or
2. somehow to hide the <div> holding the map until the form is submitted or
3. to cause YM4R/GM to play nice with AJAX (but I have no idea if that's possible).
I can do 2 easily with a listener but that seems like a very ugly solution. Any ideas on how to do 1 or preferably 3?