Wrox Programmer Forums
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 21st, 2005, 01:08 PM
Authorized User
 
Join Date: Sep 2004
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Default Two Window.Open

I am trying to use the following codes:
<a href="javascript:openwin('<%=RptName%>');"
and
<SCRIPT LANGUAGE="JavaScript">
function openwin(RptName){
  MsgWin = Window.open('Standby.htm',null,"width=100, height=20,top=250,left=350,scrollbars=0,menubar=0, titlebar=0,toolbar=0, status=0, resizable=0");
  Rptwin= window.open(rptName,null,"width=1000, height=550,top=10,left=10,toolbar=1, status=1, resizable=1, location=1");
  MsgWin.close()}
</SCRIPT>
to open a spreadsheet on the browser, however, since sometimes when the spreadsheet is large, the screen shows nothing but blank page while it is loading the large spreadsheet.

So I am trying to open a small window (StandBy.Htm) to display a 'Please Stand by...' message before it opens the real spreadsheet, at which point, I do a window.close to close this StandBy.Htm.

Not sure if this is the right way to do this type of thing, but my second window.open doesn't seem to open the second window. Can someone direct me to the right place?

Thanks.

 
Old June 21st, 2005, 01:38 PM
Authorized User
 
Join Date: Sep 2004
Posts: 70
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have this issue resolved.

Instead of using,

<SCRIPT LANGUAGE="JavaScript">
function openwin(RptName){
  MsgWin = Window.open('Standby.htm',null,"width=100, height=20,top=250,left=350,scrollbars=0,menubar=0, titlebar=0,toolbar=0, status=0, resizable=0");
  Rptwin= window.open(rptName,null,"width=1000, height=550,top=10,left=10,toolbar=1, status=1, resizable=1, location=1");
  MsgWin.close()}
</SCRIPT>

Which opens two separate window objects, I'm using,

<SCRIPT LANGUAGE="JavaScript">
function openwin(RptName){
  Win = Window.open('Standby.htm',null,"width=1000, height=550,top=10,left=10,toolbar=1, status=1, resizable=1, location=1");
  win= window.open(rptName,null,"width=1000, height=550,top=10,left=10,toolbar=1, status=1, resizable=1, location=1");
 </SCRIPT>

I open two windows (but one window object) with same size and let the second one (whenever it is ready to open) to replace the previous window.

If you know any better way, please let me know.






Similar Threads
Thread Thread Starter Forum Replies Last Post
window.open() ckrajeshvarma ASP.NET 2.0 Professional 5 August 16th, 2006 09:13 AM
Open New Window b_camp Classic ASP Basics 2 May 12th, 2005 01:19 AM
Open in new window sridevi Excel VBA 1 November 4th, 2004 06:49 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.