Link to home
Start Free TrialLog in
Avatar of Alpita
Alpita

asked on

how to add clock timing indicator?

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

Avatar of cmalakar
cmalakar
Flag of India image

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.
Avatar of Alpita
Alpita

ASKER

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

Thanks,
Alpita
ASKER CERTIFIED SOLUTION
Avatar of cmalakar
cmalakar
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Alpita

ASKER

Thanks