Click to See Complete Forum and Search --> : Delayed Form Submission


shotsy247
02-06-2009, 08:47 AM
Hi All,

I have a group of forms on a page that get submitted one after the other on a single click of the submit button.

I'm told that the rapidness in which these forms get submitted may cause some issues with the service to which they are being submitted. If that's the case, what the service is doing is beyond my control (not a web service BTW).

Is it possible to collect the data from the forms and delay the submission to the service using ASP even if the page containing the forms has been closed? I think a stored procedure on the DB is beyond what can be done here.

Thanks in advance.

_t

downtime
02-06-2009, 11:36 AM
This depends. If the forms are posting to the service and you aren't able to get in the middle of that, then I think you're going to have to try to create the pause client side rather than server side. There might be something in Javascript that you can do to delay the firing of the forms.

If, however, you can post the forms to an ASP page that then sends the data to the service, there is plenty you can do. I had a issue similar to this recently and simply used the system time to create a loop that kept running until five seconds after it started (something like get system time, modify by adding 5 seconds, start loop that checks the current system time and compares it to the modified system time. When they are equal, exit the loop).

shotsy247
02-06-2009, 12:16 PM
I can post all of the data to an ASP page (the thank you page that comes up after the submit button has been clicked is an asp page). Is this what you mean by posting to an asp page?

However I have no control over when the user closes that asp page. If all of the forms have not been submitted by the asp code and the page is closed, won't that stop the remaining forms from submitting?

Basically I need 1/2 hour between form submission.

_t

shotsy247
02-06-2009, 01:03 PM
ooopps. no way to delete double post.

downtime
02-06-2009, 01:15 PM
Oh, a half hour is something totally different. While it's not impossible, it would be highly difficult. The only way I can think of is to have all the form submissions go into a database and then you have your own computer access a page that refreshes every half hour and has a cue system which selects the next set of records to send to the service.

shotsy247
02-06-2009, 04:06 PM
That's what I was afraid of.

Thanks.

_t