Forums

This topic is locked

on page open open popup

Posted 27 Jun 2003 09:56:30
1
has voted
27 Jun 2003 09:56:30 Vince Baker posted:
I want a popup to open when I load a page, but I need to check if a cookie exists first.

SO, if cookie <> "" then popup will open.

Any code snippets guys?

Regards
Vince

Visit my home: www.chez-vince.com

VBScript | ASP | HTML | SQL | Oracle | Hosting

Edited by - bakerv on 27 Jun 2003 09:57:13

Replies

Replied 27 Jun 2003 21:45:07
27 Jun 2003 21:45:07 Robbie Laliberte replied:
are you using a behavior for the pop-up window or are you going to hand code the whole thing?

what is your language of choice? ASP I can help with...

Edited by - chariot on 29 Jun 2003 01:26:51
Replied 30 Jun 2003 09:28:04
30 Jun 2003 09:28:04 Vince Baker replied:
I was going to hand code it. And ASP / VBscript would be my choice......

Regards
Vince

Visit my home: www.chez-vince.com

VBScript | ASP | HTML | SQL | Oracle | Hosting
Replied 03 Jul 2003 16:52:34
03 Jul 2003 16:52:34 Robbie Laliberte replied:
if request.cookies("insertcookienamehere"<> "" then

or to be more precise:

if request.cookies("cookiename" = "value" then

I would go with the second choice, that way you are sure that you are getting what you want and not just whether or not the cookie exists.
Replied 14 Jul 2003 15:02:42
14 Jul 2003 15:02:42 Vince Baker replied:
Chariot, thanks for the reply but that is not the bit I am stuck with....

Once I have checked the cookie value I want to open a popup window and it is the openinig of the popup window I am stuck on.

Regards
Vince

Visit my home: www.chez-vince.com

VBScript | ASP | HTML | SQL | Oracle | Hosting
Replied 15 Jul 2003 02:56:20
15 Jul 2003 02:56:20 Robbie Laliberte replied:
Sorry, guess I mis understood.

I can understand the desire to hand code it, but why would you when there several really good, free extensions that will do it for you? There is also the Advanced Open Window here (not free) that is just super...
Replied 15 Jul 2003 09:33:55
15 Jul 2003 09:33:55 Vince Baker replied:
Problem is, i dont want the whole code that is used for the advanced open window extension, just the single line needed to open the window but I cant get the syntax right........

so simple, but so illuding...!

Regards
Vince

Visit my home: www.chez-vince.com

VBScript | ASP | HTML | SQL | Oracle | Hosting

Reply to this topic