Results 1 to 3 of 3

Thread: Dynamic AJAX content w/ Forms

  1. #1
    Join Date
    Apr 2006
    Posts
    190
    Thanks
    3
    Thanked 7 Times in 7 Posts

    Default Dynamic AJAX content w/ Forms

    Is there a way to get Dynamic AJAX Content to work with a form like this:

    Code:
    <form name="form" action="search.php" method="get">
    <input type="text" name="q" />
    <input type="image" name="submit" value="Search" id="submit" src="_img/Search.png">
    </form>

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Please do a search on the forums. Here's one solution: http://www.dynamicdrive.com/forums/s...ead.php?t=7960

  3. #3
    Join Date
    Apr 2006
    Posts
    190
    Thanks
    3
    Thanked 7 Times in 7 Posts

    Default

    I got it to work, just forgot to post my results.

    I did this to get it to work:
    Code:
    <form name="form" action="javascript:ajaxpage('search.php?q='+document.getElementById('q').value+'&Submit=Search', 'content');" method="get">
    <input type="text" id="q" name="q" />
    <input type="image" name="submit" value="Search" id="submit" src="_img/Search.png">
    </form>

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •