Open Popup Window When Page Is Loaded If A Field Is Populated
Would it be possible to open a popup window on loading the instruction page but only when the critical information section of the page contains text?
The popup window could either contain the contents of the critical information section or just a visual warning that such information exists on the main page.
I have a pretty good knowledge of VBA but sadly my knowledge of php and javascript is very limited.
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
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>'
Populating Form In Parent Window With Value From Popup Window
I have a text box in the parent window.. now i want to populate this text box with a user_id that i will get from query within a popup window.. How do i get the value from the popup window to be passed to the main window form field in php. I know how it can be done in javascript but when i tried combining javascript and php i dont get the desired result.
Can A Popup Window Return Data To Parent Window?
Is it possible to do the following in php: I want to have a main form open. In the form I want a button that will open a popup window so the user can search for something. The user can then select what they want, and the popup window closes and the main form (which is still open) shows the search results.
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.
Popup Window
I am trying to make a popup window that when I click on a picture it pops up a new window with the bigger picture in it. Code:
Dropdown Populated From Mysql Field
I'm looking to create a drop down box that displays a field from a a mysql DB so that i can list all the names and when I select a name from the list it selects that record.
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...
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.
Passing Vars - Popup Window Problem
I currently have a problem passing a variable value from one page to another. Once a form submit button is pressed java pops up a window and displays some information. The problem being is variables value needs to be passed from the main page to this popup window ... but it isn't. why? the submit button one the PHP page is $s_download_action = "index.$phpEx?page=downloads"; $download_url = "download.$phpEx"; $hidden_download_vars = '<input type="hidden" name="download_id" value="' . $d_id . '" />' $u_download = "<input type="submit" name="get_download" value="" . $lang['Download'] . "" class="mainoption" onClick="window.open('" . $download_url . "', '_spdownload', 'HEIGHT=250,resizable=yes,WIDTH= 400');return false;" />"; echo '<form action="' . $s_download_action . '" method="post">' echo $hidden_download_vars . '' . $u_download; echo '</form>'
[php] Using Session To Pass Values From A Popup Window...
i got a problem here. its like this... i have a popup php page... in it details of what is stored in my database is retrieve and displayed out.... but i want to pass the values that is displayed out in the popup window to the main window by using session ..... how can i do that?
How Do You Parse Post Variables To A Popup Window?
I know this isnt really a php question but can anyone tell me how you parse post variables to a popup window, here's my code so far, im trying to pass the value entered into a radio button: <head> <script language="JavaScript" type="text/JavaScript"> var win= null; function NewWindow(mypage,myname,w,h,scroll) { var winl = (screen.width-w)/2; var wint = (screen.height-h)/2; var settings ='height='+h+',' settings +='width='+w+',' settings +='top='+wint+',' settings +='left='+winl+',' settings +='scrollbars='+scroll+',' settings +='resizable=yes' win=window.open(mypage,myname,settings); if(parseInt(navigator.appVersion) >= 4){win.window.focus();} } <!-- function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); //--> </script> </head> <body> <form name="answer" action="result.php" method="post"> <input type="radio" name="group1" value="Milk"> Milk<br> <input type="radio" name="group1" value="Butter"> Butter<br> <input type="radio" name="group1" value="Cheese"> Cheese<br> <input type="submit" name="submit" value="submit" src="result.php" onClick="NewWindow(this.src,'name',âÆ',âÆ','yes');retur n false" > </form> </body>
Create Popup Window With Product Details
I am attempting to create a popup window using the code that's shown here http://forums.devshed.com/t15928/s.html I want it to display the product information when a user clicks a link from a table. But, I havent got a clue about where to start. I am displaying an alternate color table from what i assume is a recordset. please excuse my ignorance if this is straight forward as i only just started to attempt anything like this in the last week. PHP Code:
Popup Window List Of Values To Select
What i need to do is bring up a popup window with a list of values(values looked up from the database). The user should be able to select one of the values from the list and the value then populate a text box on the calling form.
Popup Window Show When Php Form Is Validated.
I am using a HTML/PHP form on a website I am doing. The form works and it even redirects to the correct page. However, instead of redirecting to a new page I would like it to call a popup window (600px x 400px)but leave the page that the form is on open so when they close the popup window the page is still there.
Session Variables Disappear When Popup Window Closes
I am in window one (of one) and I popup a second window. Everything is fine. When the popup window closes the entire session in window one is destroyed!! I have tried everything from named sessions to caches, etc.. This does not happen when i start out with two windows open??
Open New Window
I have this code, i have tried for ages, I'm hopless, how can i ,make this link open in a new window? Code:
To Open A New Window
on selection of close option,can i open a new window ? <select> <option value="1" >Open</option> <option value="0" onClick="JavaScript:window.open('ajax2.php','view','height=350, width=550,scrollbars=1')">close</option> </select>
How To See If A Page Is Fully Loaded
kind of a noob question but hey some things I just never done Ive written this cleaning code that takes a lot of time to load cuz it effects the database big time.. of cuz.. it cleans up my tables and those aint small.. so thats not the prob.. the problem is when I do this on a page it takes a long time to load.. and after about 10 minutes the server says... propably not working.. page load terminated.. so now I want to do the following.. I want it to check like 50 rows at a time.. no prob.. did that.. only prob now is that I need to have php note that the page has fully been loaded (that everything given in the php file has been done) so it can refresh and go on with the next 50.. so what I tried before is just put a header("Location: bla.php"); on the bottem of the code.. I figured it wouldnt activate it before the code was fully run threw.. guess I was wrong cuz now the page just keeps on refreshing time after time without having been fully loaded so this is where I need help.. how can I have php see that the page has been fully loaded and then move on with the code?
Writing To A Page After It Has Loaded
I have been trying to find out how write to a page after it has loaded.. I have written an application to control pppd on our server and need to loop a status/progress display while the deamon is connecting.and after it has connected.
Open A Window And Fit An Image
The task is to open an enlarged version of a picture clicking on a thumbnail, so I would like the popup window fits the dimension of the big picture. The paths of the big pictures are stored in a mysql table and the size in pixel of each pic could be different. I started working on my task using also a bit of Java and sound like:
Need [link_url] To Open In New Window
This is a piece of code thats in a php file. <tr><td align='center'><a href='$row[link_url]' onClick="javascript:window.open('waiting.php?email=$email& banner_id=$row[banner_id]& action=open','loading','toolbar=no,left=50,top=50,scrollbars=no,resizable=no,width=400,height=100,alwaysRaised=yes') "></a></td></tr> I think this is the piece I need to change. The 'waiting.php' file opens in a new window but I want the [link_url] to open in a new window aswell. Is there any piece of code that can be put into a php file to make links open in new window?
Open New Window With PHP Header
Is there any way to open a new browser window with PHP? I know it can be done in javascript - but wondering whether it can be done with PHP. Much oblidged for any comment.
Random Window.open
I would like to know if there is a way in php to randomize the following url (www.domainsample.com used as example). I have 4 different urls I would like to use, basically changing every time the page is accessed. <!-- function open_on_entrance(url,name) { new_window = window.open('www.domainsample.com','domainsample', 'menubar,resizable,scrollbars,dependent,status') } // --> </script>
Open In New Window From RSS News
I'm using this simple rss parser that i would like to have open in another window. But I'm very much a beginner in php scripting. Here is the script on the page <?php require('./class.phpnet.php'); $phpxml = new phpnet_news("http://au.biz.yahoo.com/financenews/htt/financenews.xml", 1); $news = $phpxml->get_headlines(8); ?><?php for ($i = 0; $i < sizeof($news['title']); $i++) { echo '<li><a href="' . $news['link'][$i] . '">' . $news['title'][$i]. '</a></li>' echo " "; } ?>
Open New Browser Window
Is there a way to open a new browser window from the server (that is without using Javascript)? (Maybe send some kind of a header?) I want the contents in the first window to remain the same but when the user clicks a button, I want another window to open and display certain results. I don't want to rely on Javascript.
Open New Browser Window
Is there any way to use PHP to open a new browser window? I'm running a script which, based on a variable, will either display a certain page in the current browser window, or open a different page in a new window. At least, that is the plan. Any suggestions on how I can do this?
Links Open In Another Window
I've got a site (PHP and MySql), that was made with frames, but I've decide to get rid of frames and I've made this site through cells table and CSS. But now I've got a big problem: any link I click on my menu (from the left), the new page opens in a new window and I want that the new page to be opened in the same window, the initial window. What should I do for this? I want that browser opens new pages of my site in the same window.
Need Script To Open The Browse Window?
I want a script for php-mysql to backup the mysql data and restore, how i can write to open a browse window to select the desitanion directory to backup data there?
Open Window According To Image Specification
I am working on a realty script, and an idea was passed to me to have the script when a user views an ad open a popup window that matches the width and height of the image but i am lost. i am including my source that for any help you can provide. photos are called like this image.php?Id=30 PHP Code:
Onclick Won't Open New Window Until After Refresh
I have a number of links to other pages in the current page. When the page is initially loaded none of the "onclick" events that call a Javascript to do a "window.open" work. However, if I merely click the window "Refresh" then all work. I'm pretty sure it's something I did in the code, but after 2 days of trying and backtracking and hours of googling, perhaps someone could suggest some things to look for or try. The source language is PHP, and the browser is IE6.
Clickable Link - Open New Window
I am creating directory and file arrays, which I sort and print out. Currently I have made each line a clickable link - works good. My problem is I want to now open the link in a new window. I have tried every which way I can think of to append target="_blank" I keep getting T_string errors Code:
Load Open Pre-sized Window?
I have a html form that someone fills out. Then on "submit" a php script reads what was typed in the form. It then opens a new page with a html page in it with the results. I would like this page to load as a pre-sized window (ie. 200 X 400pixels). How? This is how I have it loading the new page: PHP Code:
Open Window On Button Click
in a form, here's what I want to do : <input type=button onclick= (???) is it possible to open a pop-up window with a specified url without using javascript ?
How To Open New (printer-friendly) Window
I have a php script that presents a rather simple form. After the user filled in parameters and presses <submit>, the results from a postgres database search follows on the page. Now, if the user wishes to print the page, it'll be ugly containing the form boxes. So one solution would be to present a "printer-friendly" option on the page. Clicking there will present the results in a new window free from the form boxes. I don't want to repeat the database search in this new window, just "forward" the variables to this new url.
Open Window With No Address To Prevent Bookmarking
We've created a secure registration and logon leading to a 3rd party chat popup window. We can't frame the window, it has to be a popup, but we want to hide the address link to prevent bookmarking and unauthorized access. We'd like the steps to be as follows: a) if logon/ authorize are ok b) popup the chat window (3rd party, not an SSL page) c) close the logon/authorize window. Right now, because of the SSL logon, the flow is as follows: 1) we check the logon/ authorize 2) we send authorization information to a php file containing an openwindow javascript ( with <BODY onLoad="openIt();">). 3) the user sees a system challenge saying "You are leaving a secure environment. Do you want to continue?" 4) The user sees another system challenge saying, " The program is trying to close the current window. Would you like to continue." 5) the popup comes up and to prevent bookmarking it has no address bar. This works, but I'm wondering if we can eliminate steps 3 and 4? Is it possible to supress those challenge screens from the server side? Or is there any other way (besides the openwindow JavaScript) to send the user to a new page without allowing them to bookmark the new page. I tried a php header redirect, but I can't find a reference that will allow me to not show the address bar in the new window.
Keeping Window Open After Running Php File From The Command Line?
I was getting a 500 error and someone adviced me to run the php file from the command line to check what errors that would come up with. Great idea which I'd like to use, but when I use the Windows "run" box to do this, I see a window open and close so quickly that there's no way for me to read what's come up. How can I force the window to stay open after the program has finished ? Just in case it's needed, I run the tests on a Win XP machine with Apache.
File-Field/Browse-Window Doesn't Appear
I've encountered big problems with one of my file-fields, which was implemented for uploading files. Some of my users don't have any problems at all - the "browse"-window appears. But with some PCs, it doesn't work at all. A js-error appears and the "browse"-window doesn't appear. Has anybody a clue on how to fix that bug?
Php Created Popup Error Message Page
I have created a system using PHP & Javascript that works OK except that I want a neat display of error messages. Error messages caught at the client are displayed in a Javascript alert, which is fine. But errors caught at the server are not as well displayed and therefore I thought that I would ask if anyone has produced a "popup error message page" that would look similar to a Javascript alert but would originate at the server.
How To Open Page
I want to send the browser to a differnet page how do i do this with php? it's an if statment if true send to example1.com else send to example2.com.
Open A New Page?
I have a small problem, this is my current script: {$_SESSION['login'] = $_POST['login']; $login='You are now logged in <b>' . $_SESSION['login'];} else{ $login= 'Wrong user name or password.';} If the user name or password is incorrect, it will just display Wrong user name or password. But what I want it to do is have the browser open a new page if it is incorrect, for example incorrect.php. Which will then display an incorrect user name or password message. This shouldn't be too complicated, I just have no idea how to go about it.
On If Statement Open .htm Page?
how to open a preset page from an if statement, such as: if ($row["password"]==$password ) { printf("Successfully Logged In!"); }else{ print("Login failed!");} where instead of just printing the text string it opens a new page!!
IE Ask To Open The (php) Page As File
I just uploaded a new website onto a new server. On this server however, when you click on the only 2 php pages. IE will ask to open the page as file. Is there a simple way to fix this, or is it simply the new server that can't support php? The two pages are just a simple email form.
Open A Page In Grayscale On Mac...
I've having a serious issue that I need your help with as soon as humanly possible. I have a page that has some products on it, when the product is clicked, it opens up the printable version along with the print dialog box for printing. My problem is, I need the page to open up in grayscale. It's working in IE, but it's not working in Fire Fox, and it's not working on Mac.
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.
Open And Process Remote Page
I want to be able to ask users for a URL, open that page, change some of the contents and then display that page as if they had typed the URL into a browser. I have toyed with some of the php functions for opening URLs, but what I am not clear on is how much work my script will have to do (do I need to fully emulate a browser, for example). The net effect I am after is very similar to the page translation feature that Google offers. Does anyone have any examples of this kind of technique. Any ideas how much work is involved? (My 'translation' is pretty trivial, so really it is mostly a question of how much work to display the remote page).
|