473,836 Members | 2,039 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help with popup control please

Hi there,
I have this code for a popup window. Everytime i go back to the front page,
the popup will come up. I want it to pop up only the first time I come to
the site. Would some one advice please. Thank you
/* Function popup */
function popupPage() {
var page = "advertisement_ popup.htm";
windowprops = "height=453,wid th=650,location =no,"
+ "scrollbars=no, menubars=no,too lbars=no,resiza ble=no";
window.open(pag e, "Popup", windowprops);
}
Jul 23 '05 #1
2 1542
Hi,
You'll have to use cookies (or something like hidden frame value) to
keep track of the visit.
Otherwise, every time the page is reloaded the script function will be
called.

Kien

Thien-Anh wrote:
Hi there,
I have this code for a popup window. Everytime i go back to the front page,
the popup will come up. I want it to pop up only the first time I come to
the site. Would some one advice please. Thank you
/* Function popup */
function popupPage() {
var page = "advertisement_ popup.htm";
windowprops = "height=453,wid th=650,location =no,"
+ "scrollbars=no, menubars=no,too lbars=no,resiza ble=no";
window.open(pag e, "Popup", windowprops);
}

Jul 23 '05 #2
I got it, Thank you
"Kien" <ca*********@ho tmail.com> wrote in message
news:Vw******** ********@news-server.bigpond. net.au...
Hi,
You'll have to use cookies (or something like hidden frame value) to
keep track of the visit.
Otherwise, every time the page is reloaded the script function will be
called.

Kien

Thien-Anh wrote:
Hi there,
I have this code for a popup window. Everytime i go back to the front page, the popup will come up. I want it to pop up only the first time I come to the site. Would some one advice please. Thank you
/* Function popup */
function popupPage() {
var page = "advertisement_ popup.htm";
windowprops = "height=453,wid th=650,location =no,"
+ "scrollbars=no, menubars=no,too lbars=no,resiza ble=no";
window.open(pag e, "Popup", windowprops);
}

Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
12442
by: HarveyB | last post by:
I would like to generate non-modal popup windows from ASP.Net code-behind. I have tried using Client Side scripting like "function Test(){ window.open('test.htm',_blank, 'height=200,width=400,status=no,toolbar=no, menubar=no,location=no resizable=no scrollable=no'); but I can't seem to invoke the client side script from within a Server Side Form. I know I can use the context with to Response.redirect or Server.transfer to return a
4
10494
by: Davey | last post by:
I have a website which has a popup window (this only opens when the user chooses to open it). In the popup window I have a <select> control which lists a selection of "classes". Each class has a description and a class_id (stored in the value attribute of each option). The user will then select a class from the drop-down list. What I want to do is have a control in the parent browser window which can store the class_id and the...
2
5873
by: PC User | last post by:
I'm creating a shortcut menu to popup over my richtext box. Its a form with a listbox of menu items with associated richtext activex (rtf) editing commands. I found a way to transfer a value from the popup menu to the form, but now I have one more step to take. The value being transferred is a public function from a module. I need to find a way to execute the function to edit the text in the richtext field. Download the test database from...
1
11597
by: Earl Teigrob | last post by:
I did a ton of searching to try and find a simple solution to this issue and finally wrote my own, which I am sharing with everyone. In my searching, I did find a very complete and robust solution at http://weblogs.asp.net/asmith/archive/2003/09/15/27684.aspx but it was far more complex then I needed. (I got lost trying to figure it all out). Therefore, here goes my simple "web dialog box with parent event handler fireing" solution. ...
8
1129
by: Chris | last post by:
Hi, I want to use a popup control in my asp app like the one in outlook web access and msn. This will be used to notify users of a change in the database. I plan on using the one on codeproject, however, how can I have the popup control check by itself every minute or two minutes in the database instead of waiting for the current page (which the control is on) to be refreshed or postback? Thanks
3
2242
by: Tim::.. | last post by:
Can someone please help.... I'm having major issues with a user control I'm tring to create! I an trying to execute a sub called UploadData() from a user control which I managed to do but for some reason I keep getting the error: Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.
4
2061
by: amerar | last post by:
Hi Everyone, I am very new to this, so I'm hoping someone can help. I have a form with buttons that a user can click. What I need to do is that when a user clicks a button, before the form submits, I need to show a popup window with a drop down list of values which were returned from a MySQL query. And, the value selected will help drive the next page shown to the user.
6
2645
by: SAL | last post by:
hello, I'm using a radiobuttonlist in an updatepanel in an item template in a Gridview control. I'm populating the radiobuttonlist in the RowDataBound event. I have the control toolkit registered in the page and I've got code to get the selected value from it in the Radiobuttonlist_SelectedIndexChanged event. The code in there is: Protected Sub rblFMSValue_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs)
5
10896
by: =?Utf-8?B?SmFtZXMgUGFnZQ==?= | last post by:
Hi all Have a couple of issues with the modal popup extender (asp.net 3.5, vb.net, visual studio 2008): I have created a user control (e-mail enquiry form) which is designed to accept text input then send an e-mail. The user control has 2 views – view 1 –e-mail input form, view 2 confirmation that e-mail has been sent.
0
9810
marktang
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...
0
10819
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9355
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7772
isladogs
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...
0
6972
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();...
0
5641
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...
0
5811
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4438
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4000
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.