[AJAX] Forms and Dynamic Content

Discussion in 'JavaScript' started by chulium, May 28, 2006.

  1. #1
    Hi all,

    I have a <div> tag that is controlled by an AJAX Dynamic Content script to make the site run faster. The whole site's dynamic content goes within that div tag, so when a link is clicked, it says "Loading..." and loads the new page.

    That works fine. But, I want to have forms on my website. How can I get the forum submit to work like a link? As in, how can I get a form, when submitted, to go through the whole "loading" thing and then display the new content with Ajax, like a link would. But with a form, of course, I need to run PHP code and submit data to a database and all that stuff.

    So, any ideas?
    -Matt
     
    chulium, May 28, 2006 IP
    GTech likes this.