Click here to Skip to main content
15,499,155 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to Show Busy Indicator on Form Submit
Process icon when clicked on submit

Plz its urgent
awaiting for an positive response

Rohini G
Updated 18-Dec-14 21:05pm

Share this answer
This is one of the possible ways:

Please look at the onSubmit attribute of form:[^].

Note that this is the Javascript code which is called before actual submission and it defines if the submission happens or not. So, if it returns true, submission starts. So, you can show some indicator in this function. You can just show some message or start some Javascript animation. Now, let's assume that the form action attribute points to the same URL of the current page (always a good idea). So, when the page is rendered, the user will see the content without this indicator. Based on this idea, you can implement different effect except… showing the percentage of loaded content; but there is not a reason to be sorry about it: this time is pretty much unpredictable anyway.

Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900