Server Timeout Avoidance Using javascript
Often when executing a batch process to convert or move records of data your script execution is subject to a timeout specified in a configuration parameter on the various servers in any of the Web server, dynamic server-side scripting or database server. There are several options. The method described below is the most efficient method. A less superior option is to specify a meta refresh timer or javascript timer routine for the page onload body event, which would cause major delays if a page process completed before the timer refreshed the page. Placing javascript within the body onload event would require an inline html output using the javascript DOM functions in order to display a detailed report of the progress for each page and output of the closing HTML/BODY tags. The method implemented below is a cleaner and simpler approach. The structure of the code is generally the same for all applications exhibiting the batch procedure. This method uses a browser to launch the script.