topcoder1
16 Aug 2007, 9:49 AM
I need to create a editor where use inputs html, clicks save and then sees the content right away. My question is: is there any kind of caching mechansim I should use to reduce the trip to the server?
I think there are two ways for saving data: 1. I simply saves the input to the database everytime the user clicks on save and then load the data from the database to display it.
2. when user clicks on save, I take the input from client side and display it rightaway, then send the save request to server in the background. would this cause some problem?
which is the best way?
thanks!
I think there are two ways for saving data: 1. I simply saves the input to the database everytime the user clicks on save and then load the data from the database to display it.
2. when user clicks on save, I take the input from client side and display it rightaway, then send the save request to server in the background. would this cause some problem?
which is the best way?
thanks!