PDA

View Full Version : Ajax Content and Form Submit



b0bro'
08-14-2008, 04:54 AM
1) Script Title: Ajax Content

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.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

b0bro'
08-15-2008, 12:36 PM
anybody?

ddadmin
08-15-2008, 07:40 PM
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 (http://www.javascriptkit.com/dhtmltutors/ajaxgetpost.shtml).