1

i have some web based application that creates a zip file when user asks for it. and it takes around 5 sec of time which is uncertain.. so i want to show him a loading sceen which should disable my main screen for the time being and show loading oo processing animation something..

i am using jsp servlets

Update: i dont want to use jQuery

Edit: implemented using jQuery but want to do the same without it

thanks.

Varun
  • 5,001
  • 12
  • 54
  • 85

1 Answers1

2

Use jQuery to lock browser screen and show loading process. You could use ajax to make requests and receive responses asynchronously.

Why use jQuery?

  • It uses KISS principle - Keep It Simple Stupid
  • It has very good documentation and tutorials
  • The community is very active, helpful, and warm
  • The core file’s packed size is small
  • It deploys almost use-at-will approach
  • It has strong logic and workflow and is easily extensible

Since you do not want to use jQuery you have to deal with javascript basics like manipulating the DOM.

Basic ajax tutorial:

This tutorials are on DOM manipulation:

Community
  • 1
  • 1
DarkLeafyGreen
  • 69,338
  • 131
  • 383
  • 601
  • why not use jQuery? It gives you powerful methods performing ajax operations – DarkLeafyGreen Dec 26 '10 at 19:57
  • @ArtWorAD - i understand your love for jQuery but my project says a big no for jQuery :( even i am very excited to learn jQuery.. will also appreciate if i can get any good tutorial link for jquery – Varun Dec 27 '10 at 04:57
  • well then you need to deal with DOM manipulation, i update my answer; also you should update your question that you do not want to use jQuery – DarkLeafyGreen Dec 27 '10 at 08:38