We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

how to add clock timing indicator?

Alpita
Alpita asked
on
Medium Priority
448 Views
Last Modified: 2012-05-11
Hi Expert,

I have a submit button in my .jsp file. When i click , it takes time to display the response.
Can i have some sample code to display waiting icon(some kind of clock indicator) . Once i get response it should not show up?

Thanks,
Alpita

<TR>
  <TD ALIGN=CENTER>
    <INPUT TYPE=BUTTON  ID="butSubmit" VALUE="Submit" onClick="form_submit()">
  </TD>
  <TD ALIGN=CENTER>
    <INPUT TYPE=BUTTON NAME="close" VALUE="Close" onClick="window.close()">
  </TD>
</TR>

Open in new window

Comment
Watch Question

Commented:
Better do with AJAX.

On submit of form, show a progress image on the page, Send an ajax request with form details.
Once the ajax request is completed, just forward to the success/failure page based on the ajax request/response result.

Author

Commented:
In my project environment, they dont use AJAX.
Could it possible in jsp?

Thanks,
Alpita
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Thanks
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.