September 11, 200025 yr Newbies I am trying to submit a form automaticly with an onload method (javascript) which is not working. The form by itself does and so does the onload method. However, together they don't work. Why doesn't it work?. I am using File Maker Pro 4. Is this why? Can it work with FMPro 5? <html><head> <title>Counter</title> <script> <!-- function autoSub() { document.john.submit(true); } //--> </script> </head> <body bgcolor="white" onload="autoSub()"> <form name="john" action="FMPro" method="POST"> <input type="hidden" name="-db" value="counter"> <!--<input type="hidden" name="-lay" value="Form View">//--> <input type="hidden" name="-format" value="formats.htm"> <!--<input type="hidden" name="-error" value="errors.htm">//--> <input type="submit" name="-new" value="add"> </form> <h1 align= "center" > <!--<a href="FMPro?-db=counter&-format=formats.htm&-new">//-->Add 1 to database</h1> <hr> <center><a href="http://www.kpgraphics.com/index.html">Go back to home page.</a></center> </body> </html> [This message has been edited by john (edited September 11, 2000).] [This message has been edited by john (edited September 11, 2000).]
September 14, 200025 yr Newbies why not just use the HTML refresh command to achieve this goal? create a page with a zero second refresh that submits your form. JavaScript shouldn't be necessary. dave mywebbrain.com
Create an account or sign in to comment