Here's the first line of my HTML form...
Expand|Select|Wrap|Line Numbers
- <form target="_self" onsubmit="return preProcessForm();" action="somewhere" method="post">
Expand|Select|Wrap|Line Numbers
- 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_form.php has finished. Can anyone suggest something?