Hi,
Here's the first line of my HTML form...
preProcessForm looks like...
I am trying to get pre_process_for m.php to run in the background (using AJAX), prior to submitting the form. It works fine every time in IE 7/8, and it works 80% of the time in Firefox 3.0.11.
The problem occurs when the user submits the form. They are navigated to the appropriate destination, however, 20% of the time, the AJAX function appears to have not been called or the php script doesn't seem to have been called. I suspect this might be a FF bug but I'm trying to achieve some sort of short term work-around. The idea is - submit the form when pre_process_for m.php has finished. Can anyone suggest something?
Here's the first line of my HTML form...
Code:
<form target="_self" onsubmit="return preProcessForm();" action="somewhere" method="post">
Code:
function preProcessForm()
{
var url = "pre_process_form.php";
run_AJAX_Request(url);
return true;
}
The problem occurs when the user submits the form. They are navigated to the appropriate destination, however, 20% of the time, the AJAX function appears to have not been called or the php script doesn't seem to have been called. I suspect this might be a FF bug but I'm trying to achieve some sort of short term work-around. The idea is - submit the form when pre_process_for m.php has finished. Can anyone suggest something?
Comment