Sorry for the poorly-worded question.
I was hoping to get everyone's ideas on the best way to handle this.
I have a link on a master page that links to a contact form. If the user has javascript enabled, I want to open the form ion a modal window using jQuery. If not, the user will just be directed to the contact form page.
The issue is, when serving up the modal window, I only want to display the contact form - minus the surrounding template/master page. However, in the case that javascript is disabled, the contact form page should be displayed along with the template/master page.
What is the best way of implementing this? Currently, my only idea is to use javascript to append a value/querystring to the contact form link indicating that javascript is enabled. For example, http://www.mysite.com/contact/js or http://www.mysite.com/contact/?js=enabled. If javascript is enabled, I can partially render the contact form.
I welcome all ideas and links.
Thanks!