Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: URGENT I need to build a new window from my application...


Message #1 by orion@i... on Thu, 14 Dec 2000 22:11:30 -0000
Hi, I need yo build a new window from my application, you see...

i have a home page (using ASP 3.0) I need yo pop up a new window but with

the environment and session variables enabled...



how can i do that ?



please help me, itīs urgent...



---

MaximumASP offers enhanced hosting solutions on the Windows 2000 platform. Dedicated processor, RAM, and server resources provide
dedicated server performance at virtual server prices. Commercial components provided; custom components allowed.

---

You are currently subscribed to asp_web_howto as: $subst('Recip.EmailAddr')

To unsubscribe send a blank email to leave-asp_web_howto-$subst('Recip.MemberIDChar')@p2p.wrox.com

Message #2 by Imar Spaanjaars <Imar@S...> on Thu, 14 Dec 2000 23:47:18 +0100
Just use the window.open JavaScript function. This will open a new window

that inherits the session from the "opener" window.



<SCRIPT LANGUAGE=3D"JavaScript">

<!--

function openWindow(sURL)

{

         var sOptions =3D

'toolbar=3Dyes,location=3Dno,directories=3Dno,status=3Dyes,menubar=3Dyes,scr

ollbars=3Dyes,resizable=3Dyes,width=3D640,height=3D400'

         window.open (sUrl,'NameOfWindow',sOptions)

}

Most of the options are self explanatory.



One way to call this function is:



<A HREF=3D'JavaScript:openWindow("oneCoolURL.asp")' >Click me man!!</a>



Or use an ordinary A HREF with an _BLANK target. This will also open a new



window which also will inherit the session variables (as long as the source



of the new window is from your server too).



All this works because session state is stored client side as a single

cookie only that holds the session ID. For each request this ID is sent to



the server where it is matched to the session object.



HtH



Imar





At 10:11 PM 12/14/2000 +0000, you wrote:

>Hi, I need yo build a new window from my application, you see...

>i have a home page (using ASP 3.0) I need yo pop up a new window but with

>the environment and session variables enabled...

>

>how can i do that ?

>

>please help me, it=B4s urgent...

>





---

MaximumASP offers enhanced hosting solutions on the Windows 2000 platform. Dedicated processor, RAM, and server resources provide
dedicated server performance at virtual server prices. Commercial components provided; custom components allowed.

---

You are currently subscribed to asp_web_howto as: $subst('Recip.EmailAddr')

To unsubscribe send a blank email to leave-asp_web_howto-$subst('Recip.MemberIDChar')@p2p.wrox.com

Message #3 by "Oleg Perepelkin" <operep@m...> on Fri, 15 Dec 2000 05:39:23 +1000
Can you also give a tip how to submit a form to that newly opened window

from the parent one ?

Thanks!

Oleg



----- Original Message -----

From: Imar Spaanjaars <Imar@S...>

To: ASP Web HowTo <asp_web_howto@p...>

Sent: Friday, December 15, 2000 8:47 AM

Subject: [asp_web_howto] Re: URGENT I need to build a new window from my

application...





Just use the window.open JavaScript function. This will open a new window

that inherits the session from the "opener" window.



<SCRIPT LANGUAGE="JavaScript">

<!--

function openWindow(sURL)

{

         var sOptions 

'toolbar=yes,location=no,directories=no,status=yes,menubar=yes,scrollbars=ye

s,resizable=yes,width=640,height=400'

         window.open (sUrl,'NameOfWindow',sOptions)

}

Most of the options are self explanatory.



One way to call this function is:



<A HREF='JavaScript:openWindow("oneCoolURL.asp")' >Click me man!!</a>



Or use an ordinary A HREF with an _BLANK target. This will also open a new

window which also will inherit the session variables (as long as the source

of the new window is from your server too).



All this works because session state is stored client side as a single

cookie only that holds the session ID. For each request this ID is sent to

the server where it is matched to the session object.



HtH



Imar





At 10:11 PM 12/14/2000 +0000, you wrote:

>Hi, I need yo build a new window from my application, you see...

>i have a home page (using ASP 3.0) I need yo pop up a new window but with

>the environment and session variables enabled...

>

>how can i do that ?

>

>please help me, itīs urgent...

>





---

MaximumASP offers enhanced hosting solutions on the Windows 2000 platform. Dedicated processor, RAM, and server resources provide
dedicated server performance at virtual server prices. Commercial components provided; custom components allowed.

---

You are currently subscribed to asp_web_howto as: $subst('Recip.EmailAddr')

To unsubscribe send a blank email to leave-asp_web_howto-$subst('Recip.MemberIDChar')@p2p.wrox.com

Message #4 by Gregory_Griffiths@c... on Fri, 15 Dec 2000 08:29:24 +0000
You use the Javascript DOM (Document Object Model) and get something

like



<window name>.<form name>.submit()



Check out the DOM for exact info.



> -----Original Message-----

> From: operep@m... [mailto:operep@m...]

> Sent: 14 December 2000 19:39

> To: operep@m...; asp_web_howto@p...

> Subject: [asp_web_howto] Re: URGENT I need to build a new

> window from my

> application...

>

>

> Can you also give a tip how to submit a form to that newly

> opened window

> from the parent one ?

> Thanks!

> Oleg

>

> ----- Original Message -----

> From: Imar Spaanjaars <Imar@S...>

> To: ASP Web HowTo <asp_web_howto@p...>

> Sent: Friday, December 15, 2000 8:47 AM

> Subject: [asp_web_howto] Re: URGENT I need to build a new

> window from my

> application...

>

>

> Just use the window.open JavaScript function. This will open

> a new window

> that inherits the session from the "opener" window.

>

> <SCRIPT LANGUAGE=3D"JavaScript">

> <!--

> function openWindow(sURL)

> {

>          var sOptions =3D

> 'toolbar=3Dyes,location=3Dno,directories=3Dno,status=3Dyes,menubar=3Dy

es

> ,scrollbars=3Dye

> s,resizable=3Dyes,width=3D640,height=3D400'

>          window.open (sUrl,'NameOfWindow',sOptions)

> }

> Most of the options are self explanatory.

>

> One way to call this function is:

>

> <A HREF=3D'JavaScript:openWindow("oneCoolURL.asp")' >Click me man!!</a

>

>

> Or use an ordinary A HREF with an _BLANK target. This will

> also open a new

> window which also will inherit the session variables (as long

> as the source

> of the new window is from your server too).

>

> All this works because session state is stored client side as a single



> cookie only that holds the session ID. For each request this

> ID is sent to

> the server where it is matched to the session object.

>

> HtH

>

> Imar

>

>

> At 10:11 PM 12/14/2000 +0000, you wrote:

> >Hi, I need yo build a new window from my application, you see...

> >i have a home page (using ASP 3.0) I need yo pop up a new

> window but with

> >the environment and session variables enabled...

> >

> >how can i do that ?

> >

> >please help me, it=B4s urgent...

> >

>

>

---

MaximumASP offers enhanced hosting solutions on the Windows 2000 platform. Dedicated processor, RAM, and server resources provide
dedicated server performance at virtual server prices. Commercial components provided; custom components allowed.

---

You are currently subscribed to asp_web_howto as: $subst('Recip.EmailAddr')

To unsubscribe send a blank email to leave-asp_web_howto-$subst('Recip.MemberIDChar')@p2p.wrox.com


  Return to Index