This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can I put progress bar in my child window?

 
Ashwani Yadav
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In My New Window I want to display some progress bar or showing some messages like "Generating..." before generating PDF and HTML document.
I am opening a new window as follows:
var ScreenWidth=window.screen.width;
var ScreenHeight=window.screen.height;
var movefromedge=0;
placementx=(ScreenWidth/2)-((800)/2);
placementy=(ScreenHeight/2)-((500+50)/2);

WinPop=window.open(URL,"","width=800,height=500,toolbar=0,location=0,directories=0,status=1,scrollbars=1,menubar=1,resizable=1,left="+placementx+",top="+placementy+",screenX="+placementx+",screenY="+placementy+",");
How can I achieve this?
 
Chris Reeves
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not clear on exaclty what you are looking for...
If you are opening a window, you can place text in that window that says, "Generating...". It seems you're already doing that, so...
The trick here would be closing this window after the generation is complete (without using frames - and if you use frames, why open another window?).
I believe it would be time better spent to tweak the code that is generating the html/pdf/whatever to be faster.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic