PDA

View Full Version : Submitting forms...


brazenskies
07-31-2008, 04:53 PM
Is it possible to automatically submit a form without any action from a user and with NO JAVASCRIPT.

I have an asp process page that performs a few db actions then submits a form using...


<script>
document.frmTkn.submit()
</script>


I have been using asp to do all my validation across the site as an inordinate amount of users seem to be using IE with high security, which obviously blocks javascript. I have fixed everything else but this one problem.

So to sum up, how can I submit that form automatically without javascript

brazenskies
07-31-2008, 05:05 PM
I'm actually thinking there probably is no simple solution so I have just added a line saying...

"If your browser does not redirect you in 5 seconds, click here"

That click here is a call to action to submit the form manually.

Most users won't need to but it allows the high security folk to submit it themselves instead of encountering an error then going away, while we lose the transaction.

Cheers Y'all!

rmedek
08-01-2008, 12:20 AM
I'm actually thinking there probably is no simple solution so I have just added a line saying...

"If your browser does not redirect you in 5 seconds, click here"

That click here is a call to action to submit the form manually.


Yep…that's about the best way to do it, IMO. It's also the most common — even this forum uses that method.