Newbies john Posted September 11, 2000 Newbies Posted September 11, 2000 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).]
Newbies socko2 Posted September 14, 2000 Newbies Posted September 14, 2000 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
Recommended Posts
This topic is 8927 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now