Results 1 to 3 of 3

Thread: Ajax Content and Form Submit

  1. #1
    Join Date
    Jul 2008
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Ajax Content and Form Submit

    1) Script Title: Ajax Content

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...jaxcontent.htm

    3) Describe problem:

    So far the script is working wonders,

    My final problem now is getting a form to submit and still pass the variables, Im currently using this;

    <form action="javascript:ajaxpage('accounts/staff/create_process.php', 'dvContent');" method="post" name="Form" id="Form">

    However, it dosnt pass any variables. I can think of a few work arounds but it will require me to reload the entire page and I really don't want this.

    Please, this is the last piece in my puzzle for the application, is it possible??

    Cheers,
    Byron
    Last edited by b0bro'; 08-14-2008 at 11:18 AM.

  2. #2
    Join Date
    Jul 2008
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    anybody?

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

    Default

    There are two types of Ajax requests- GET and POST. This script uses GET, so it won't be able to submit the contents of a form unfortunately. What you need is the later. There's a nice tutorial on rolling your own Ajax GET or POST request here.
    DD Admin

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
  •