Hi
I use an OnLoad event in the body tag to open a popup window. I would like
to know how to go about only allowing the window to popup once i.e on
subsequent visits to the parent page, the popup np longer pops up. I think
it is irritating to users to have to close the popup everytime they visit
the page. I think I need to set a cookie so that the server knows the
visitor is a return visitor and not a new visitor, but I have no idea how to
write the code. I do know a little php so I could combine php and javascript
if that is the best way to achieve my goal.
thanks
David 4 3588
"David Graham" <da************ @ntlworld.com> schrieb im Newsbeitrag
news:s5******** ******@newsfep1-gui.server.ntli .net... Hi I use an OnLoad event in the body tag to open a popup window. I would like to know how to go about only allowing the window to popup once i.e on subsequent visits to the parent page, the popup np longer pops up. I think it is irritating to users to have to close the popup everytime they visit the page. I think I need to set a cookie so that the server knows the visitor is a return visitor and not a new visitor, but I have no idea how
to write the code. I do know a little php so I could combine php and
javascript if that is the best way to achieve my goal. thanks David
Set a cookie. Read the cookie. If the cookie exists, don´t show the popup,
else show it.
"Carsten B." <sp*****@web.de > wrote in message
news:3f******** @olaf.komtel.ne t... "David Graham" <da************ @ntlworld.com> schrieb im Newsbeitrag news:s5******** ******@newsfep1-gui.server.ntli .net... Hi I use an OnLoad event in the body tag to open a popup window. I would
like to know how to go about only allowing the window to popup once i.e on subsequent visits to the parent page, the popup np longer pops up. I
think it is irritating to users to have to close the popup everytime they
visit the page. I think I need to set a cookie so that the server knows the visitor is a return visitor and not a new visitor, but I have no idea
how to write the code. I do know a little php so I could combine php and javascript if that is the best way to achieve my goal. thanks David
Set a cookie. Read the cookie. If the cookie exists, don´t show the popup, else show it.
Thanks Carsten - I will read up on this. Can I ask for a few hints as to the
relevant code to carry this out
David
David, Take a look at yahoo and punch in 'Javascript cookies' you should get
a variety of examples on how to create and read them if they exist.
Stuart Palmer
"David Graham" <da************ @ntlworld.com> wrote in message
news:TV******** ************@ne wsfep2-win.server.ntli .net... "Carsten B." <sp*****@web.de > wrote in message news:3f******** @olaf.komtel.ne t... "David Graham" <da************ @ntlworld.com> schrieb im Newsbeitrag news:s5******** ******@newsfep1-gui.server.ntli .net... Hi I use an OnLoad event in the body tag to open a popup window. I would like to know how to go about only allowing the window to popup once i.e on subsequent visits to the parent page, the popup np longer pops up. I think it is irritating to users to have to close the popup everytime they visit the page. I think I need to set a cookie so that the server knows the visitor is a return visitor and not a new visitor, but I have no idea how to write the code. I do know a little php so I could combine php and javascript if that is the best way to achieve my goal. thanks David
Set a cookie. Read the cookie. If the cookie exists, don´t show the
popup, else show it. Thanks Carsten - I will read up on this. Can I ask for a few hints as to
the relevant code to carry this out David
In article <s5************ **@newsfep1-gui.server.ntli .net>, da************@ ntlworld.com enlightened us with... Hi I use an OnLoad event in the body tag to open a popup window. I would like to know how to go about only allowing the window to popup once i.e on subsequent visits to the parent page, the popup np longer pops up. I think it is irritating to users to have to close the popup everytime they visit the page.
Don't worry, most of us have popup killers and don't see it at all.
Unrequested popups are the most irritating thing EVER. So, we just don't
let them pop up at all.
--
~kaeli~
"No matter what happens, somebody will find a way to take
it too seriously." http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: H00ner |
last post by:
Hello All
Hope you can help
Been pulling my hair out about a popup problem in ASP.NET. One of the
forms i wrote requires the user to select a product from a list in a
popup web form. the popup has a DataGrid on it and the page.load
function DataBinds as you'd expect.
I have Code-Behind in C# to emit a call to a JavaScript function which
|
by: ukrbend |
last post by:
I use an iframe on my home page and everything works perfectly. But
now I decided to add a popups to my page. The popups come not from
within the iframe but from the parent frame. Again, everything
regarding the popup works perfectly, it pops up with the correct data.
But the strange thing is now any link that targets the iframe simply
get ignored and instead of displaying things in the iframe they get
displayed in a new browser window...
|
by: mike11d11 |
last post by:
I have a tab control on my form that has a webbrowser docked in it.
It automatically navigates to a website. Once the users clicks on a
particular link and popup window should come up with a document for
the user to see. All the other links brings you straight to another
page but this particular link pops up another window or is supposed to
popup another window but it doesnt when access from my program. Does
anyone know how to allow...
|
by: skinymike |
last post by:
when i allow user to download a media file such as midi or wav files. It automatically open the files using Windows Media Player. Its fine works ok.
But when i allow user to download a theme files such as *.sis or *.thm , Windows does have the software to open file such as sis or thm. But the Popup menu doesnt show Save Open Cancel. It used to show the Popup menu but now it doesnt show.
i even try to use the correct path for testing...
|
by: wreed06 |
last post by:
Hello,
I have 2 problems. In my webpage, I have a dropdown list with a button that takes the user to a popup window specific to the option. I am using Firefox 2.0.0.13. I have successfully validated my HTML and CSS code.
1. When I clear cache and refresh my webpage, it takes 3 tries before the popup window displays - I click on the button once, a white window the size of my webpage displays. I close it and click on the button again (for...
| |
by: wreed06 |
last post by:
I have 2 problems. In my webpage, I have a dropdown list with a button that takes the user to a popup window specific to the option. I am using Firefox 2.0.0.13. I have successfully validated my HTML and CSS code.
1. When I clear cache and refresh my webpage, it takes 3 tries before the popup window displays - I click on the button once, a white window the size of my webpage displays. I close it and click on the button again (for the same...
|
by: =?Utf-8?B?U3VyZXNoIFJlZGR5?= |
last post by:
I am getting a strange problem with IE7 tabs.
The web application I am working (developed in ASP.Net, .Net 2.0), will show
a popup message with the count down timer 2 minutes before session time out.
The count down timer on popup will start with 120 and will be count down to 0
and if the user doesn't click on the Continue button (which is on popup),
application logs out and the web page will be shown with login page. If the
user clicks...
|
by: V S Rawat |
last post by:
using Javascript, I am opening a web-based url in a popup window.
MyWin1=Window.Open(url, "mywindow")
There is a form (form1) in the url in that popup window, I need to
submit that form.
How do I submit that form1 from the javascript from my current window?
Thanks.
|
by: Bruce |
last post by:
I have an application where a main window opens a popup window. Within
the popup, I want to be able to post a form back to the popup all the
while maintaining the opener property.
Of course, once the popup window re-loads itself by posting a form to
itself, all Javascript state information is lost and so opener is
undefined.
Is there any way I can communicate with the original opener of a popup
window once the popup window has been...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |