1) loading content on a div 2) display loading image. 3) if the content need authentication a pop up appears to authenticate yourself 4) if an error occur than a jquery popup dialog appears with the relevant information.