title: Uncaught TypeError: Cannot read property 'submit' of undefined
body: <p>This is the html when I inspect element in chrome </p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt; 
          &lt;title&gt;Please Wait&lt;/title&gt;
          &lt;link rel="shortcut icon" href="images/ajax-loader1.gif" type="image/x-icon"&gt;
          &lt;style type="text/css"&gt;
  
          &lt;/style&gt;
      &lt;/head&gt;
      &lt;body onload="autoSubmit();" cz-shortcut-listen="true"&gt;
          &lt;div&gt;  
              &lt;p class="header"&gt;Please Wait... Your Payment Request is being processed......&lt;/p&gt;
             &lt;p class="image_style"&gt;
                 &lt;img src="images/ajax-loader.gif"&gt;       
             &lt;/p&gt;       
             &lt;ul&gt;    
                 &lt;li&gt;This is a secure payment gateway using 256 bit SSL encryption&lt;/li&gt;        
                 &lt;li&gt;When you submit the transaction, the server will take about 1 to 5 seconds to process, but it may take longer at certain times &lt;/li&gt;
                 &lt;li&gt;Please do not press "Back" or "Refresh" buttons&lt;/li&gt;
             &lt;/ul&gt;        
          &lt;/div&gt;
  
          &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
          &lt;title&gt;Card Request&lt;/title&gt;
          &lt;script type="text/javascript"&gt;
            function autoSubmit()
            {
                document.card_processing.submit();
            }
          &lt;/script&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I'm posting some values to a url given and from there it is redirected using the below auto-submitting. Sometimes this page wont load sometimes it does.What is the problem?</p>
  
  <p>This is what I get from console</p>
  
  <pre><code>Uncaught TypeError: Cannot read property 'submit' of undefined 
  </code></pre>