Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: How do I pop up multiple windows dynamically?


Message #1 by "Rainery, Kim" <Kim.Rainery@w...> on Mon, 29 Oct 2001 07:53:01 -0600
How do I pop up multiple windows dynamically?



From Asp I figure out which values need a pop up window and in a For loop I

call

the sub that creates the windows that many times. Within the sub there is

javascsript that 

has conditionals which value a var according to the type that is passed to

it and at the end there is a

window.open(urlstr,"some unique name"). That javascript function is then

called from a Body tag. The big problem

is that only one window pops up each time. The only way I have come across

that will pop up multiple windows it to 

actually put window.open() many times right in a row.



My ultimate goal is to pop up a window for each value that is valued from 1

to 4. There could be 1 or at the most 4 windows total. How do I do this?



thanks

Kim
Message #2 by Greg Griffiths <griffiths@x...> on Mon, 29 Oct 2001 23:40:29 +0000
try using a loop



n=10



for 1 to n loop

         open window

next



At 07:53 29/10/01 -0600, you wrote:

>How do I pop up multiple windows dynamically?

>

> >From Asp I figure out which values need a pop up window and in a For loop I

>call

>the sub that creates the windows that many times. Within the sub there is

>javascsript that

>has conditionals which value a var according to the type that is passed to

>it and at the end there is a

>window.open(urlstr,"some unique name"). That javascript function is then

>called from a Body tag. The big problem

>is that only one window pops up each time. The only way I have come across

>that will pop up multiple windows it to

>actually put window.open() many times right in a row.

>

>My ultimate goal is to pop up a window for each value that is valued from 1

>to 4. There could be 1 or at the most 4 windows total. How do I do this?

>

>thanks

>Kim









  Return to Index