On Wednesday 18 February 2009, Tim Johnson wrote:
> The goal is a multi-stage process schema where a form is rendered
> by a cgi script and inserted into a static web page via this method:
<....> 
> The second stage is to validate the input form that is rendered by the
> method above and write out a review form to the 'dynamic_content'
> innerHTML. The form provides an 'onsubmit' handler, called as follows
> from the form tag: onsubmit="return CheckForm0(this);"
 I've changed the code to this:
  function CheckForm0(form){
    if(Check_Form0(form)){
          var data = $("Form0").serialize();
          alert('data: ' + data);
          $("#dynamic_content").load(form.action,$('Form0').serialize(),
                function(resp,stat,xhr){
                        alert(resp);  // leave for testing
                        alert(stat);
                        }
                );
          return false;
          }
I can verify that Check_Form0 // the validator
is working. However, even tho the form has at least a dozen
items filled in, the alert() call is an empty string.  The response
string indicates that the CGI script has not received any data,
yet 'stat' is "success".
---
tj

Reply via email to