title: progress bar while waiting for server
body: <p>Some operations are time costly and it takes long time while waiting them to finish.
  Sometimes timeout occurs. 
  I want to use a real time progress bar, so I want to show the status to the user and also I want to prevent timeout. Which technologies must I use? JS, Ajax, multithread or both? and how can I iplement this?
  Please advice.</p>