The above two approaches can be implemented either one or
both at a time. Both the approaches have their own merits and demerits. In the
case of Client side approach, the JavaScript should be enabled in the Client's
browser; in the case of Server side approach, we have to make an extra server
loop. So, it is upon you to choose which one is suitable to your application.
By Soyuj Kumar Sahoo