• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Displaying a progress in a popup-window while waiting

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everyone,

I have an application where a user submits a form. Once the button is hit I would like a popup to show up saying "Please wait..." or somehting like that to show the computer is actually doing something. Then when the SQL queries are completed and the mail has sent I want the window to close.

Does anybody have an idea to do this?

P.S: I'm working with Jsp, servlets and beans.

Thank you,

Azz
 
Azz Romaysa
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've seached in google, but i couldn't find somthing that really can doe what I want.
Please help me if you know how to do that in JavaScript.

Azz
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
See if this works for you. Code goes in your pop up window:


Eric
 
Azz Romaysa
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Eric for your answer,
I tried the code above. But it's not really what I want.
I want to tell the window to close itsself when the whole work on the server is done "The image is uploaded for example". Zo the time that the window will stay open depends of when the file is succesvolly uploaded.

Is there maybe a methode to make jsp and Javascrpit communicates with each other?
 
Azz Romaysa
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here is an example of what I want to do but in Jsp/Servlets:
http://blogs.crsw.com/mark/articles/642.aspx
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The code I wrote will close the window when the parent page has been loaded, it is the reverse code I coded for someone with a pop up window.

You might look into Ajax...

Eric
reply
    Bookmark Topic Watch Topic
  • New Topic