Only Allowing Popup To Popup Once
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.
View Complete Forum Thread with Replies
Related Forum Messages:
Can't Open A New Fullscreen Popup From Another Popup Window
I can't seem to make a fullscreen popup from a page that is already a fullscreen popup. What I want to do is open another fullscreen popup window from a current fullscreen popup that has the link in it. The link that comes up is http://www.somesite.com/"javascript:void(0);/" Here is a sample of the code I am working with. Does anyone see anything wrong? echo '<html>' echo '<head>' echo '<script type="text/javascript" src="/uploads/File/Javascripts/new_window_max.js"></script>' echo '</head>' echo '<body>' echo '<a href="javascript:void(0);" onclick="fullScreen('/uploads/File',$row['map'],'');">Map</a><br>' echo '</body>' echo '</html>'
View Replies !
PHP Popup
I have a site thats full based on PHP... its Zen-Cart.com Zencart Shopping cart... Im tring to add a popup script in the but I have to use this script since i don't know anything else... but it doesn't work because its using ' and not ", can anyone help me with this... Code:
View Replies !
Popup
I want to create a popup file, or a new window using _blank. What is the best way to do this? PHP or java? I would like scrollbars, but not for it to be resizable, and i would like it central to the users screen.
View Replies !
Popup Window
I have a file called opportunityList.php .It has a search button in it.When I press the button a popup window opens.The file that opens in the popup window is searchOpportunity.php,in which there are some text boxes ,drop down boxes and one submit button.When I press submit button the values in the textboxes should be transfered to the main file i.e. from searchOpportunity.php to opportunityList.php and the window should close.
View Replies !
Alert Popup Box
I can't find a way to create an alert popup box for debugging, is this possible in php? I guess I'm thinking of visual basic where that was so easy, in php I normally use *print* for this but it can be hard to find.
View Replies !
Using Variable In Popup
I have a website with a login and a postgres database. Users login with their password and continues to their personal page. From here they can watch all their trafic in and out of the database in two seperate queries. Now I need to be able to make a popup with a data-field from the query. for an example Table X: Date | clock | length | sender | receiver | other But the record contains more data like - senders adress, phone number etc. So under the 'other'-row, which are shown to the users, I have included a small icon with a popup. Now I want to show some of the data from the parent query in this popup. can this be done (yes it can - I know ;-) ) How do I do it? something like this in parent: print "<td><a href="popup.php" onClick=return popup("?????") <img border="0" src="bleh.gif">></A> And what should i do with my variables that I want to send on to the popup. Variables from the database is shown like this: print "<td> . $row["Date"]; print "<td> . $row["Clock"]; print "<td> . $row["Sender"]; print "<td> . $row["Receiver"];
View Replies !
An Alternative Popup...
I'm looking at a different means of creating a popup to calling js. I'd like to use the standard <a href... target="_new"> syntax, so that I can dynamically control the content of the popup using php. However, I'd like to control the way it looks as you can with a javascript popup - no buttons, etc. I'm trying to do this by calling a js function at body onload=..., and have had some success - 've resized it, and moved it away from the top left corner of the screen. However, I am not a js programmer, and am having limited success using js 101 sites and google. So far, I've got <script language='javascript'> var arrTemp=self.location.href.split("?"); var picUrl = (arrTemp.length>0)?arrTemp[1]:""; var NS = (navigator.appName=="Netscape")?true:false; function FitPic() { self.blur(); iWidth = (NS)?window.innerWidth:document.body.clientWidth; iHeight = (NS)?window.innerHeight:document.body.clientHeight ; iWidth = " . $_GET["Width"] . " - iWidth + 250; iHeight = " . $_GET["Height"] . " - iHeight + 20; self.resizeBy(iWidth, iHeight); self.moveTo (200, 200); self.focus(); }; </script>
View Replies !
Popup Calender
In php how to popup Calender and on click date ,month and year its value store in textfield and those value store in database.
View Replies !
Message Popup In PHP
is there a function in PHP to get a message popup on the web page? Couldn't find any (or missed it) in the docs; so I am now putting "echo <script> alert(whatever)</script>" whic feels really strange... there go to be a better solution...
View Replies !
Popup Page
I would like to have a popup page. In case of errors, I would like to have a separate page (of small size) pop up with the error message. How can I make this happen?
View Replies !
How To Popup A New Window
hy guys..need some help here..how to popup a new window..i've been searching for the answer for many times..i want to popup the details via id. ere's my code: PHP Code: while ($row=mysql_fetch_array($sql)){$id=$row["id"];echo <TD><div align='center'><a href="javascript:winpopup();">Details</a></div></TD></TR>"; .
View Replies !
Popup Message
I have a php page called sms.php which displays checkbox value retrieved from the previous page. Here is the code: <? foreach($_POST['check'] as $value) { $check_msg=$value; echo "Message sent to username<br>"; echo " $check_msg <br>"; } <? I want to display these checkbox value in a popup message after i press a submit button <input type="submit" name="submit" value="submit">.
View Replies !
POPUP In Actionscript
I am trying to code this line to open a popup window instead for a new browser window (_blank). Ive tried and tried. So if your good at this type of thing please lelp me out. This code goes into a flash .as file and this is for a button that post data for an email script. Original Code: for_post_mc.getURL(o._parent.PHP_PATH+"share_video.php", "_blank", "POST"); What im trying to do: for_post_mc.getURL("javascript:openNewWindow(o._parent.PHP_PATH+'share_video.php','popup','width=450,height=335,toolbar= no,scrollbars=no');", "", "POST");
View Replies !
Selection Box Popup
I cannot find the "New Post" button on the forum itself. I'm needing help in creating a selection box that on submission opens a popup that gets image thumbnails matching the selection, then on selecting one of the thumbnails updates or reloads the previous window with information that matches that thumbnail. Can this be done? I so far have the selection box opening the popup with the thumbnails, but I don't know how to make the thumbnails update the previous window.
View Replies !
Produce Popup
In my office we have a tool thats like telephonic system which is connected to our local system, What i need to do is , Just i have to access the status of that tool(wheather idle, working, etc), After that i need to send this status to server and than produce a pop-up which produce some message from server.
View Replies !
Popup Input Box
I want to make a link on my PHP file that when user clicks on it, it pops up a input box, which then user can type in something, then I could capture the user input and process it in my PHP code. For example, in my pHP file, I have the user click on a link, a pop up input box displays, then asks: "what is your name?", user type in his/her name, then I capture the string of his/her name.
View Replies !
POST To A Popup
I have built a CMS with a Rich text editor in a popup. To send article content to the Rich Text Editor I am URL encoding it and tacking it onto the querystring. Problem is there is a querystring limitation of 1024 characters.
View Replies !
Passing Variable To Popup
I am querying a database and returning job listings. I want the user to be able to click on a listing and view the job requirements and description in a popup window. I am using a javascript function to open the popup window. When I try to pass my id variable into the url, it is passing the id of the last record. In other words, all job descriptions are being given the same id instead of their unique id. How do I pass the unique id through the url? I can get it to work using target="_blank", but I do not want to do this because I cannot control the window paremeters. Code:
View Replies !
Popup Window And Sessions
I encounter some troubles using $_SESSION, since I use a popup window in my php code. I mean, $_SESSION['id'] contains a certain value, when I click to get popup window opened, $_SESSION['id'] value has changed, without being reaffected explicitly...
View Replies !
Live Counter Popup
I am looking for a live counter. What I need is someone to tell me if it is possible to have a counter that is invisible and is included in a popup window. I need to be able to configure it so that when the counter reaches certain numbers that the popup will be directed to different pages. If this is possible please let me know.
View Replies !
Login System + Popup
Previously i've posted a topic on retrieving images. ( http://groups-beta.google.com/group...aa7a7e1c3229697 ) It evolved into a topic on PHP/MySQL-login systems. My question was if it's possible to send session values along while opening a pop-up. Since then, i've read and read about sessions, hijacking etc. but still haven't found the right information to get what i want.. (Pop-up content depends on wether a user i logged in or not)
View Replies !
Popup Autocomplete In Firefox
I've got a form that has a textbox. In firefox (2.0) the pop up just transfer to the next page (process.php) and stay in the background until you click on it and then it disappears. The code is working on both pages, it just really disturbing to see this stupid autocomplete box transfering between pages.
View Replies !
Bypass The Htaccess Popup
I've finally gotten my htaccess/htpassword scripts working and now I would like to know if its possible to eliminate the popup login. Perhaps use a form login and pass the parameter to htaccess? I've done a search and see that adding the username:password to the URL does this but when I do so, I get http/username:password@www.secretpage.html not found.
View Replies !
Popup Inside Echo
i cant get the javascript to work inside echo. i need the window to pop up. echo ("<a href='.$zeb.' onclick="window.open('.$zeb.','popup','width=440,height=290,left=165,top=140'); return false"><img src='.$ICON.' border='0'></a>");
View Replies !
Popup Window + Picture From DB
I have a link that says: CLICK HERE TO ENLARGE... if you click it, it will take you to another page in the same browser window... i dont want to use _blank beacuse i need a browser window with a 640 pixels width and 480 pixels height... Code:
View Replies !
Creating A Popup Window
I am trying to make the website button on my phpbb forum open the posters webpage in a popup window. However, my knowledge of php is limited and it is returning the error below. As a normal link it works perfectly. It is once the code from 'onclick=' all the way to 'return false;' that it returns an error. Can anybody tell me what is wrong with my code? Code:
View Replies !
Generating A Popup In Index.php
what i want to do is add a some code so when users visit the website a popup automatically pops up. this code works in html... <script language="Javascript" type="text/javascript"> <!-- var popupwin = window.open('http://linkhere.com/blah.php','popup',"directories=no, menubar=no, scrollbars=no, status=no, height=1, width=1, left=1, top=1"); popupwin.focus(); --> </script> doesnt seem to work in index.php though? when i put it in index.php i get a fatal error and have to take it out Code:
View Replies !
Echo To Show In Popup?
Right... where do I start? I have a htm page with a PHP script embedded. The PHP script's function is to capture all values entered by a visitor in a form and send it to my email address. I have put the form near the end of the page, so it is not visible when the page loads, unless you scroll down (I hope this makes sense). This script functions fine, but the echo that is returned (upon confirmation that the message is sent, the script "thanks" the visitor) is not placed at the top of the page. So people would have to scroll down to where they filled out the form in order to read the confirmation note. I would like to adapt the code so that the confirmation message is shown at the top of the page in a popup. Code:
View Replies !
Download File Popup
I have a music website and when user click on Download link, it opens window media player and play the file, which i don't want. Is there a way that when user click on the Download link, it would open a Save As windows allow user to choose: Open, Save ? The way I make think user has to click on it. Then it will pull the link from database and put back to header using: header("Location: " . $file); File extension is *.wma
View Replies !
Popup Window From Button
I want the action from a button to open up another page when clicked, instead of opening up viewquestions in a small 630,330 popup window. getinfo.php is the popup with 630,330 It contains the code below that sends me to viewquestion. $template -> assign_block_vars('user.info', array('C_INFO' => '<input type="hidden" name="action" value="viewquestions"><input type="submit" value="View">', 'C_INPUT' => '')); currently viewquestion opens up as 630,330 as well, which is too small. I would rather it open up at 800 600 at least. Trying to find a way to change the behavior so when the button is clicked it opens up viewquestions with a larger screen.
View Replies !
Create Popup Window
i want to send a mail to my user.so in that mail he get some link and when he click the link it should open a small window and display some information.how to do this using php/javascript.i know how to send mail but i dont know how to use javascript in php mail to open a pop window.
View Replies !
Popup, Mysql Query
I have a form, and I want to have a button that someone can click which will open a popup window. That window will run a query on a database and return a listing of the categories field in my table (mysql) and then have it so the person can click on one, then the window will close and put the clicked one into the text box. Steps - 1) Click on button 2) Display list of all categories from MySQL database 3) Click on one 4) Window closes 5) Item clicked is passed into the textbox - Here is the MySQL Query I have SELECT DISTINCT category FROM rp_rares ORDER BY category ASC The text box snippet, the form passes this to another script which stores it into the DB Category:<br/> <input type="text" name="category" size="35" value="' . $row['category'] . '"><p></p>
View Replies !
Image Popup Window
I am trying to make an image popup window using php and java. I have thumbnail that I want to link to a larger picture and when you click on the thumbnail the bigger picture pops up in a window and below the picture there is a link that says "close window" Here is what i have so far. I have a page lets just call it pic.php here is the code i have for the link for the thumbnail. <a href="javascript:window.open('window.php?id=1')"><img src="images2/cat2/thumbs/cat_small1.jpg" width="120" height="90"></a> then I made a file called window.php and here is the code in it Code:
View Replies !
Popup On Databse Entry
I have an application where user1 is logged into his security groups section of the site, and user2 (user1's subordinate) is logged into his. User2 makes an entry for an appointment into a table. When User2 submits his entry, I want a popup to show on User1's computer so that he can confirm or reschedule the appointment.
View Replies !
Killed Popup Window
If the browser installs popup killer, sometimes necessary popup window will be killed too, some websites can detect this and ask the user to click again by pressing ctrl key. But how could we implement it in PHP.
View Replies !
Close Popup Window
When a user enter something into a popup window I created, after I process the input, I want my code to automatically close that popup window after it's done. For example, I pop up a window for a user to enter his name, after he enter his name in my pop up window form, and hit submit, the name is inserted into my database, then I want to close that pop up window after the data is inserted into database.
View Replies !
Dynamic Image Popup
I have a page which displays details of products including images. I want to add a link to display an large version of the image in a popup window. Can this be done with PHP or do I need to use Javascript? Can anyone offer any advice on what is the best way to achieve this.
View Replies !
Parent And Popup Redirection
Overview, I have a form the user fills out... they go through all the pages to the end. I'm passing my php variables (the main chunk is built in php) throughout so at the end they click the submit button and the information is loaded into a database. What I'd like to have happen when the user presses the submit button is the following: Little window popups... gif flashes saying the page is working... after a set time the popup closes and the parent window redirects to a thank you page. Code:
View Replies !
How To Close Popup After Download Starts?
I am pulling my hair out here. What I'm doing is I have a page with a link that opens a popup window. This window asks a user for a build number, submits to PHP_SELF, does error checking, and if the build is valid, starts the download. My problem is that I want the popup window to close when the download starts. How would I do this?? Another problem I am having with this form is that after I enter data into the text box, I have to click the submit button for it to submit, rather than having the option to just press enter. Here is the code from the popup:
View Replies !
Sending Data To Popup Window
I have a table and when i do click in one of its parameters i open a popup window and obtain some data. It works ok when the parameter i do the link are just numbers(ex: 12345) but if i have other simbols on it doesn't work, for example: if i have 12345-1 instead of sending to the popup 12345-1 it sends 12344.
View Replies !
How To Bypass The .htaccess Popup Dialog
A part of my website is protected with a .htaccess file. Can I somehow bypass the username/password dialog ?? Can I somehow "hardcode" the authentication name and password in my php-file or can I use for example a html form/mysql authentication and at the same time set some variables or headers (or something) so the user can access the ..htaccess part ? A stupid example: if user presses a button, user gets transferred to the protected site without the popup-dialog ?
View Replies !
Redirect On _blank Popup Link
I am creating a service which users can gain access to after clicking an advertisement link (The advertiser knows and agrees that this is OK). My objective is to use PHP to display the code that runs the advert. When a user clicks the advert, it loads in a popup (or pop under), and the main page forwards to a new address where the actual service is. So here's a simple flow diagram: Load page > Click advert link > Automatically redirected to content... Also, I will need to incorporate a login script such that the user must log in before moving to the advertiser link page, however I can probably accomplish that with a pre existing script. Could anyone take the time to guide me through the script I would need for the above advertising system to work?
View Replies !
Javascript Popup Alert Window On Die
How would I integrate a javascript alert window with an alert message on die? I want the code that's on the page to remain and have the alert box appear with a message I choose. It seems that on die I can get a message but it kills the code below. Want everything on the page to remain stable, but just have the alert window popup on error. Code:
View Replies !
Populate Form Field From Popup
I'm working from one of the examples that comes with PEAR's HTML_QuickForm_Controller (1.0.6) - regWizard.php and all is fine. However, I'd like to add a feature where I present the user with a link that opens a popup to get some information, and then returns the user to the form that now has one of its textfields populated with the result of the processing in the popup. Using a similar method to how some travel sites will have a calendar popup in order to fill in a date field. Code:
View Replies !
Queries Opened In Popup Window
trying to get my queries opened in popup window with certain size, no scroll and no address bar. Here is my link that right now opens in a _blank target < a href="video_pop.php?GenderID=**<?php echo $row_rs_Gender['GenderID']; ?> " target="_blank"class ="centerTa*ble"> <img src="<?php echo $row_rs_Gender['Pic1']; ?>" border="0"></a> .
View Replies !
Pass Variable To Popup Window
i need some help with pass some variables from one file to another file Look this link As u can see, when u click in some user, this open another window (popup window) supposedly the variable would have to write in the other page, but it does not do it, if they watch the bar of directions, appears what would have to appear form in the other page. Code:
View Replies !
How I Can Have The Username Displayed On This Popup Window.
i have a form that has a username field, a password and a confirm password field. When the submit button is pressed it adds that info to a database and opens a popup window with the onsubmit attribute in the form tag (the main window from before now goes back to the page to have a new user/password combo entered for another account). I need to know how i can have the username displayed on this popup window.
View Replies !
Passing Values From A Popup Window
I am building a script that allows creation of a user, so i have the normal fields such as; name, email, phone. However I also want to have a button to open a popup window and allow the selection of one or more form values and submittion of that form. without loosing the data I just entered reload the parent form adding a list of the values selected previously. This would then be stored in hidden fields and added to the database after.
View Replies !
|