Forums

This topic is locked

get pop up appearing only once

Posted 25 Nov 2003 22:32:05
1
has voted
25 Nov 2003 22:32:05 richard thomas posted:
Hi,
Firstly I know I shouldn't use a pop up ! but client INSISTS for some reason. To reduce the visitors agro, I want to ensure the pop-up appears only once, so if the visitor returns to the homepage (pop-up page) again, the pop-up doesn't reload. It only pops up when the homepage is loaded for the first time.

Can anyone advise me of the 'best' and most efficient way of doing this? (I thought of cookies, but a bit clunky ? and no guarantee visitor will have enabled. I thought of creating a duplicate homepage that doesn't have pop-up script in it that is directed to from 'home' link on sites other pages ? but problem is The site will be managed by client in future and don't want them having to copy a duplicate homepage (index) whenever they update it.

All ideas much appreciated.

Replies

Replied 25 Nov 2003 23:18:01
25 Nov 2003 23:18:01 Dave Thomas replied:
now if the client was updating the site from a CMS system, you could have both homepages use the same values so when one is updated so is the other <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

except one has pop-up code, the other doesnt.

Regards,
Dave

UD4 | Flash 5/MX | Studio MX | SQL | Access | ASP/VBScript | XP-Pro
Replied 28 Nov 2003 18:21:44
28 Nov 2003 18:21:44 Janusz Jasinski replied:
Try using cookies also so that if they have been before, don't show pop-up.

Janusz

======================
www.xlibris.co.uk
janusz.monkey-it.co.uk

ASP | VBScript | IIS 5.1 | Windows XP Pro | Linux Redhat 9 | SuSE 9 Pro | Linux FreeBSD 4.9 | PHP 5.0.0 Beta 2 | MySQL 4.0 | Apache 2.0.48 | Macromedia Studio w/t Flash 2004 | Microsoft Office Pro 2003 | Mozilla Firebird 0.7 | IE 6 | B.O.R.E.D @ HoMe
Replied 28 Nov 2003 19:24:02
28 Nov 2003 19:24:02 richard thomas replied:
Client will be using contribute, so unless I use params all over the place to duplicate content in two pages I don't think its a viable option.

Thanks for the input.
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
now if the client was updating the site from a CMS system, you could have both homepages use the same values so when one is updated so is the other <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

except one has pop-up code, the other doesnt.

Regards,
Dave

UD4 | Flash 5/MX | Studio MX | SQL | Access | ASP/VBScript | XP-Pro
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Replied 28 Nov 2003 19:27:03
28 Nov 2003 19:27:03 richard thomas replied:
Thanks for the input, as I put in my initial posting, I thought cookies a bit 'clunky' for this solution, but they may end up being the best option.

I'm also considering using a session variable ? Can anyone tell me, before I take this route, do session variables survive if the user is taken to basic .htm pages on the same site and then back to .asp pages? can the variable be retrieved even if all the pages visited during the session are NOT .asp?

Any feedback about this idea appreciated.
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Try using cookies also so that if they have been before, don't show pop-up.

Janusz

======================
www.xlibris.co.uk
janusz.monkey-it.co.uk

ASP | VBScript | IIS 5.1 | Windows XP Pro | Linux Redhat 9 | SuSE 9 Pro | Linux FreeBSD 4.9 | PHP 5.0.0 Beta 2 | MySQL 4.0 | Apache 2.0.48 | Macromedia Studio w/t Flash 2004 | Microsoft Office Pro 2003 | Mozilla Firebird 0.7 | IE 6 | B.O.R.E.D @ HoMe
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Replied 28 Nov 2003 19:28:22
28 Nov 2003 19:28:22 Janusz Jasinski replied:
As far as I have seen with my sites... yes, it should work. However, I think a cooke may be the best option. Just a few lines.

Janusz

======================
www.xlibris.co.uk
janusz.monkey-it.co.uk

ASP | VBScript | IIS 5.1 | Windows XP Pro | Linux Redhat 9 | SuSE 9 Pro | Linux FreeBSD 4.9 | PHP 5.0.0 Beta 2 | MySQL 4.0 | Apache 2.0.48 | Macromedia Studio w/t Flash 2004 | Microsoft Office Pro 2003 | Mozilla Firebird 0.7 | IE 6 | B.O.R.E.D @ HoMe

Reply to this topic