javascript - Uncaught TypeError: Cannot read property 'submit' of undefined -
this html when inspect element in chrome
<html> <head> <title>please wait</title> <link rel="shortcut icon" href="images/ajax-loader1.gif" type="image/x-icon"> <style type="text/css"> </style> </head> <body onload="autosubmit();" cz-shortcut-listen="true"> <div> <p class="header">please wait... payment request being processed......</p> <p class="image_style"> <img src="images/ajax-loader.gif"> </p> <ul> <li>this secure payment gateway using 256 bit ssl encryption</li> <li>when submit transaction, server take 1 5 seconds process, may take longer @ times </li> <li>please not press "back" or "refresh" buttons</li> </ul> </div> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> <title>card request</title> <script type="text/javascript"> function autosubmit() { document.card_processing.submit(); } </script> </body> </html>
i'm posting values url given , there redirected using below auto-submitting. page wont load does.what problem?
this console
uncaught typeerror: cannot read property 'submit' of undefined
replace code adding form:
<body onload="autosubmit();" cz-shortcut-listen="true"> <form name="card_processing"> <div> <p class="header">please wait... payment request being processed......</p> <p class="image_style"> <img src="images/ajax-loader.gif"> </p> <ul> <li>this secure payment gateway using 256 bit ssl encryption</li> <li>when submit transaction, server take 1 5 seconds process, may take longer @ times </li> <li>please not press "back" or "refresh" buttons</li> </ul> </div> </form>
but think need redirection page shows progress status:
for achieving there no need form or scripting on body load
use meta refresh tag:
<meta http-equiv="refresh" content="5; ,url=<redirect_url>">
this redirect page after 5 seconds...
Comments
Post a Comment