
Submitting Form WITHOUT Submit Button
Hi Erich,
Thanks for the suggestion. It did not work entirely, so I am hoping that
you might be able to share some more ideas.
Here's what I am trying to do:
I have a form into which users type the type of report that they want to run
and the dates that it should cover. When the user hits the submit button on
this form, a SQL stored procedure executes and populates a form on a second
asp page. I do not want this second asp page to ever be visible for the
user. I have this page because the stored procedure does not return its
results in a manner that is conducive to the report format that the user
ultimately wants to see. So, ideally, I want this second asp page to submit
its form results to a third asp page which will then lay out the report as
needed. Thus, I want the stored procedure to execute, the form to populate
and for the form to then be submitted to the the third page.
When I tried the body onunload approach, I found that the report lacked
complete information because the form results were submitted prior to the
form being populated in its entirety. (I know that the stored procedure is
capable of populating the form in its entirety because if I use a submit
button on the second page, the third page does receive all of the data
needed for the report.)
Do you have any other ideas? Is there any way for me to delay the
submission of the form by a few seconds?
Thanks for any help you can provide!
Kathleen
Quote:
>>Hello Everyone,
>>I am trying to incude code in my ASP that will automatically submit a
>form's
>>contents to another Active Server Page, as I do not want to depend on the
>>user to hit the "submit" button.
>Try OnUnLoad of BODY. Use a JavaScript function like
>OnUnLoad='document.myform.submit()'.
>Erich