Question about Modal Windows

Would this Popup Modal Dialogs work for a contact form? I’m attempting to a put my contact form in a modal window and submit via ajax, as seen here:
http://www.ericmmartin.com/simplemodal/

I can easily get it working in a non-drupal environment but with drupal, the buttons do nothing at all. I figured since you have done a lot of work with modal dialogs you may have a hint as to why the “form action” seems to be completely inactive. I’m not getting an JS errors. My markup looks like this:

<form action='download/' method='post'>
<input type='button' name='contact' value='Demo' class='demo' />
</form>

Is there something I need to do to make Drupal recognize my modal content? I’m sorry to bother you with such a silly question. I just figured since you seem like an expert on it that you might be able to recognize the problem right away. Please feel free to email me at: misscoffey@gmail.com if you have the time. Thank you.

Reply

The content of this field is kept private and will not be shown publicly.
  • You can use Textile markup to format text.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <h2>
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Lines and paragraphs break automatically.

More information about formatting options