srussell Posted July 7, 2001 Posted July 7, 2001 I am trying to get a form to auto submit after a specified time. I keep getting an error 4 (in-valid commad, from Filemaker) when the java script runs. The form it's self works fine if you press the submit button. Any other ideas on how this can be done?
Garry Claridge Posted July 8, 2001 Posted July 8, 2001 You may need to have a line, in the form, like this: <input type="hidden" name="-find"> Hope this helps. Garry
srussell Posted July 9, 2001 Author Posted July 9, 2001 When I added the hidden entry, it will now pass it to FM without an ERROR. However, it is not passing any of the form data to FMr.. Here is the log with auto submit: 7/8/01 12:46:36 PM -DB=Students.fm4&-Format=final_complete.htm&-lay=Final&-RecID=12&-Edit 7/8/01 12:46:36 PM Sending reply. Elapsed time: 46 millisec. Here is the log with the user pressing the submit button: 7/8/01 12:44:09 PM -DB=Students.fm4&-Lay=Final&-Format=final_complete.htm&-Error=search_error.htm&-RecID=12&Final+Complete=Yes&Final+Complete+Date=7%2F8%2F01&Final+48=D&Final+49=D&Final+50=D&-Edit=Su bmit 7/8/01 12:44:09 PM Sending reply. Elapsed time: 56 millisec. Here is the one line of Java I am using: var timeID = setTimeout("document.Final.submit()", 10000) Any other ideas?
Anatoli Posted July 9, 2001 Posted July 9, 2001 quote: Originally posted by Shawn Russell: I am trying to get a form to auto submit after a specified time. I keep getting an error 4 (in-valid commad, from Filemaker) when the java script runs. The form it's self works fine if you press the submit button. Any other ideas on how this can be done? For what purpose?
srussell Posted July 10, 2001 Author Posted July 10, 2001 It is for an On-Line test that has a time limit...
Garry Claridge Posted July 10, 2001 Posted July 10, 2001 Shawn, I don't know why form elements would be going missing! Is the same form being used; i.e. button or timeout submission, whichever comes first? Garry
dspires Posted July 10, 2001 Posted July 10, 2001 strike my last, garrycl has the right idea, <INPUT TYPE="hidden" NAME="-NEW"> [ July 10, 2001: Message edited by: dspires ]
srussell Posted July 14, 2001 Author Posted July 14, 2001 I Guess I had a typo or something, but I was able to get it to work with the hidden entry.... Thanks!!
Recommended Posts
This topic is 8525 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