To my knowledge, there can be two possible ways to design this:
-
Using a gif file. Once the Save button is clicked, it should show the “Saving…” gif file on screen for a few seconds(delay is hardcoded) and then the process of saving the record to the database should start. Ideally Speaking, this would lessen the performance as it takes time for both Animation delay + Saving the record.
-
Multithreading. Saving a record and animation should be done parallel.I do not have any idea about how to do this.
Which is possible?
Kindly, share some information and code snippets. Also, post any other idea which can resolve this.
Thanks in Advance
i think first one is better..
put the below code in page then when clciking the button load the corresponding div id.