[PHP] Re: PHP pop-up windows
On Thu, 05 Feb 2009 01:47:28 +, nrix...@gmail.com (Nathan Rixham) wrote: Clancy wrote: I'm working on a website editor, primarily for my own use. Normally it will be used on my own computer, and much of what I wish to achieve could arguably be better done in either C or JavaScript, but both of these have a similar programming syntax to PHP, but with subtle differences, and I don't think my brain could cope with trying to work in two similar but different languages simultaneously. ... Is this a feasible mode of operation, and if so would anyone like to suggest ways to implement it, and/or traps to be avoided? if ever somebody needed flex, it's you Thanks. But what is flex? 1. Flex electrical cable: I've got plenty of that out in the shed, but it doesn't seem to be relevant here (unless I decide that it is all too much, and decide to hang myself with it!) 2. Single tasking operating system for the Motorola 6800: I once programmed in 6800 assembler, but I rather doubt if you can buy it, or them, these days. 3. Bodybuilding magazine: too late for that! 4. Adobe application builder - widely criticised for being inflexible: not what I'm looking for. Perhaps I ought to just give up, and get somebody else to do the job for me, but then I would get the solution to somebody else's problem. Also, although my mental agility is less than it used to be, so that I can't really handle working in multiple environments, I still enjoy programming, and it does keep my brain from going rusty! I have had what seems to me to be a bright idea, and I wondered if anybody had tried anything similar, and could cast any light either on how to go about it, or on problems that I might encounter. Just telling me to use something else, without explaining what it is or why it is better, is not really being helpful. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP pop-up windows
Clancy wrote: I'm working on a website editor, primarily for my own use. Normally it will be used on my own computer, and much of what I wish to achieve could arguably be better done in either C or JavaScript, but both of these have a similar programming syntax to PHP, but with subtle differences, and I don't think my brain could cope with trying to work in two similar but different languages simultaneously. An example of what I would like to achieve is: The primary instance of the program opens a text input window for the user to enter, say, one or more addresses from the contact list. It then pops up a second window, which could be another instance of the same program. In this window the user can search the contacts for the names he wants, and highlight them. When he is satisfied he clicks the submit button on the second window. When he does this the second window closes, and the primary window detects the response, processes it, and inserts it into the entry area. I gather that it would be possible for the first program to spawn a child process when the user clicks the button, and this could then open the second window. I think that the child can share session variables with the parent, so the parent could redraw its window, then wait for some flag to be set in the session window, indicating the second window was closing. The parent would then redraw its page incorporating the new information. Is this a feasible mode of operation, and if so would anyone like to suggest ways to implement it, and/or traps to be avoided? if ever somebody needed flex, it's you -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Pop up window in PHP code
PHP neither supports nor fails to support JS. PHP just spits out something for the browser. Use View Source in the browser and see what you've done. Fix the PHP until you get what you want in the View Source to make the JS work. On Sat, February 3, 2007 2:44 pm, Chris Carter wrote: I am trying to open a Java script pop up widow from within the php code. Not able to get it done, the error I think is in the use of '' .. I mean double and/or single quote. Do not know how to place those. Please advice. The code is below: echo tr td$shopname /td td$category /td td$subcategory /td td$level /td td javascript:poptastic( Details /td /tr; $i++; The Javascript code is: script language=javascript var newwindow; function poptastic(url) { newwindow=window.open(url,'name','height=490,width=900,left=150,top=175'); if (window.focus) {newwindow.focus()} } /script The javascript code works perfect with other pages and within HTML, its just that the PHP is not supporting the quotes and double quotes. I have even tried rsquo rdquo and all. Thanks in advance -- View this message in context: http://www.nabble.com/Pop-up-window-in-PHP-code-tf3167481.html#a8786668 Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Some people have a gift link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Pop up window in PHP code
At 2/3/2007 12:44 PM, Chris Carter wrote: I am trying to open a Java script pop up widow from within the php code. Not able to get it done, the error I think is in the use of '' .. I mean double and/or single quote. Do not know how to place those. Please advice. The code is below: echo tr td$shopname /td td$category /td td$subcategory /td td$level /td td javascript:poptastic( Details /td /tr; That last table cell is deeply troubled. First, you're missing a close-parenthesis and semi-colon, should be: javascript:poptastic( Details ); Second, this is going to output to HTML as plain text, not as executable script. Perhaps you meant to embed the function call in an anchor? a href=javascript:poptastic( Details );link text/a Third, when do you expect this pop-up window to pop up? Are you aware that PHP executes on the server, then downloads the page to the client, then the client processes any embedded javascript and executes it? Perhaps this sequence of events would be more clear if you used the window.onload event to trigger the pop-up. Fourth, are you aware that many browsers are set to suppress pop-ups? If your page depends on pop-ups, it will break or be rendered non-functional by pop-up suppression. The javascript code works perfect with other pages and within HTML, its just that the PHP is not supporting the quotes and double quotes. I have even tried rsquo rdquo and all. Don't use curly quotes in scripting; that's just for text display. I don't see that quotation marks are a problem in the script you've posted, but maybe you haven't given us an accurate copy of the whole thing. If quotes are a problem, try using heredoc: http://php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc echo _ This text doesn't care about quotes. _; Regards, Paul __ Paul Novitski Juniper Webcraft Ltd. http://juniperwebcraft.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Pop up window in PHP code
Try this: script function poptastic(url) { newwindow=window.open(url,'name','height=490,width=900,left=150,top=175'); if (window.focus) {newwindow.focus()} } /script ? $URL=index.php; print a href=\javascript:poptastic('.$URL.')\click here/a; ? Ed I am trying to open a Java script pop up widow from within the php code. Not able to get it done, the error I think is in the use of '' .. I mean double and/or single quote. Do not know how to place those. Please advice. The code is below: echo tr td$shopname /td td$category /td td$subcategory /td td$level /td td javascript:poptastic( Details /td /tr; $i++; The Javascript code is: script language=javascript var newwindow; function poptastic(url) { newwindow=window.open(url,'name','height=490,width=900,left=150,top=175'); if (window.focus) {newwindow.focus()} } /script The javascript code works perfect with other pages and within HTML, its just that the PHP is not supporting the quotes and double quotes. I have even tried rsquo rdquo and all. Thanks in advance -- View this message in context: http://www.nabble.com/Pop-up-window-in-PHP-code-tf3167481.html#a8786668 Sent from the PHP - General mailing list archive at Nabble.com. -- Best regards, mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Pop up window in PHP code
Sorry, if already posted, just did not get any confirmation, wanted to make sure the e-mail has been sent. Try this: script function poptastic(url) { newwindow=window.open(url,'name','height=490,width=900,left=150,top=175'); if (window.focus) {newwindow.focus()} } /script ? $URL=index.php; print a href=\javascript:poptastic('.$URL.')\click here/a; ? Ed I am trying to open a Java script pop up widow from within the php code. Not able to get it done, the error I think is in the use of '' .. I mean double and/or single quote. Do not know how to place those. Please advice. The code is below: echo tr td$shopname /td td$category /td td$subcategory /td td$level /td td javascript:poptastic( Details /td /tr; $i++; The Javascript code is: script language=javascript var newwindow; function poptastic(url) { newwindow=window.open(url,'name','height=490,width=900,left=150,top=175'); if (window.focus) {newwindow.focus()} } /script The javascript code works perfect with other pages and within HTML, its just that the PHP is not supporting the quotes and double quotes. I have even tried rsquo rdquo and all. Thanks in advance -- View this message in context: http://www.nabble.com/Pop-up-window-in-PHP-code-tf3167481.html#a8786668 Sent from the PHP - General mailing list archive at Nabble.com. -- Best regards, mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Pop up window in PHP code
Chris Carter wrote: I am trying to open a Java script pop up widow from within the php code. Not able to get it done, the error I think is in the use of '' .. I mean double and/or single quote. Do not know how to place those. Please advice. The code is below: echo tr td$shopname /td td$category /td td$subcategory /td td$level /td td javascript:poptastic( Details /td /tr; $i++; The javascript code works perfect with other pages and within HTML, its just that the PHP is not supporting the quotes and double quotes. I have even tried rsquo rdquo and all. Where are the problem quotation marks? And Is this in fact the actual html that you are outputting? td javascript:poptastic( Details /td Shouldn't it be: tda href=javascript:portastic();hello/a/table Without the a tag, it just prints the javascript pseudo-url to the screen as text. -- _ Myron Turner http://www.room535.org http://www.bstatzero.org http://www.mturner.org/XML_PullParser/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] pop up save dialog box
On Wed, July 26, 2006 7:00 am, Jay Blanchard wrote: [snip] I have code below which save MYSQL to csv file. I am using ADODB library to do this. The saving MYSQL to csv file is ok . However i need to allow the the user to enter file name for csv file. Anybody have any ideas how to do this? Thanks [/snip] If you want a true pop-up you will have to use a JavaScript http://www.codefoot.com/javascript/script_invoke_saveas.html I think you will find this useful: http://richardlynch.blogspot.com/ -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] pop up save dialog box
[snip] I have code below which save MYSQL to csv file. I am using ADODB library to do this. The saving MYSQL to csv file is ok . However i need to allow the the user to enter file name for csv file. Anybody have any ideas how to do this? Thanks [/snip] If you want a true pop-up you will have to use a JavaScript http://www.codefoot.com/javascript/script_invoke_saveas.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] pop up save dialog box
This is only an example and threat it as example. Take care about security too. So don't copy and paste :) You could do like this: weetat wrote: Hi all, I have code below which save MYSQL to csv file. I am using ADODB library to do this. The saving MYSQL to csv file is ok . However i need to allow the the user to enter file name for csv file. Anybody have any ideas how to do this? Thanks ? $sql = $_SESSION['CSV_SQL']; $_logger = new Log4jLogger(); $_logger-logdebug('sql:', $sql); if( !isset( $filename ) ) $filename = $_GET[filename]; if( empty( $filename ) ) { ? script language=JavaScript !-- var filen = prompt( Please provide a filename., ); if( filen.length ) { document.location = '?=$PHP_SELF??filename=' + filen; } //-- /script ? } else { if (!isset($_REQUEST['maintainall'])) { //$filename = 'tbl_chassis.csv'; CSVUtil::UploadTbtoCSV($sql, $filename); unset($_SESSION['CSV_SQL']); header('Location: ../maintain.php?csv'); exit; } else { //$sql = 'SELECT * from tbl_card'; //$filename = 'tbl_card.csv'; CSVUtil::UploadTbtoCSV($sql, $filename); unset($_SESSION['CSV_SQL']); header('Location: ../maintainall.php?csv'); exit; } } function UploadTbtoCSV($sqltext,$filename) { $_logger = new Log4jLogger(); $_logger-logdebug(starting.. upload tb to csv); $rs = dbQuery($sqltext); $rs-MoveFirst(); $_logger-logdebug(UploadTbtoCSV csvpath:,CSV_PATH); $fp = fopen(CSV_PATH./.$filename, w); if ($fp) { rs2csvfile($rs, $fp); fclose($fp); $_logger-logdebug(starting upload tb to csv done); } } ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] pop-up window in php???
The code would be quicker and fewer lines if you did this with Javascript, but you could do it with PHP. Use an iframe for the yes / no options, create a form, then capture the response and display the results as you wish. Jef -Original Message- From: Adam Zey [mailto:[EMAIL PROTECTED] Sent: Monday, May 29, 2006 12:59 PM To: [EMAIL PROTECTED] Cc: [php] PHP General List Subject: Re: [PHP] pop-up window in php??? [EMAIL PROTECTED] wrote: ok, maybe I didn't make my question too clear. I was mostly wondering if there is a way to do it in PHP rather than Javascript. I would prefer only using php. and from the answers I got, I take it that there is no way of doing it in PHP. thanks, Siavash Quoting Andrei [EMAIL PROTECTED]: Not related to PHP, but u hava javascript confirm function or prompt (if you need input also). Andy [EMAIL PROTECTED] wrote: Hi all, Is there anyway to have a pop-up window to ask are you sure? yes / no in php? I know you can do it in Javascript, but I'm not sure what's the best way to implement it in php. I want the page to do nothing if no is pressed. any help would be appreciated. thanks, Siavash -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php PHP is a server-side language. It cannot directly influence anything on the client-side. That is why you need to have your PHP script output a client-side scripting language such as JavaScript. You are still only executing PHP code on the server. Regards, Adam Zey. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] pop-up window in php???
[snip] Toolbars? No, I'm not that clever. I was only referring to disabling links and form fields within the HTML page itself. The best I could do using this technique wouldn't exactly mimic a modal dialog, just approximate one. [/snip] Incredibly enough I just found this particular way of doing this on the CVS Pharmacy web site for picture ordering. When I attempted to delete an album it gave me a pseudo-popup using styling to ask 'Are you sure?'. Looked a lot light Lightbox JavaScript, I have not explored it further -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] pop-up window in php???
Not related to PHP, but u hava javascript confirm function or prompt (if you need input also). Andy [EMAIL PROTECTED] wrote: Hi all, Is there anyway to have a pop-up window to ask are you sure? yes / no in php? I know you can do it in Javascript, but I'm not sure what's the best way to implement it in php. I want the page to do nothing if no is pressed. any help would be appreciated. thanks, Siavash -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] pop-up window in php???
ok, maybe I didn't make my question too clear. I was mostly wondering if there is a way to do it in PHP rather than Javascript. I would prefer only using php. and from the answers I got, I take it that there is no way of doing it in PHP. thanks, Siavash Quoting Andrei [EMAIL PROTECTED]: Not related to PHP, but u hava javascript confirm function or prompt (if you need input also). Andy [EMAIL PROTECTED] wrote: Hi all, Is there anyway to have a pop-up window to ask are you sure? yes / no in php? I know you can do it in Javascript, but I'm not sure what's the best way to implement it in php. I want the page to do nothing if no is pressed. any help would be appreciated. thanks, Siavash -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] pop-up window in php???
[EMAIL PROTECTED] wrote: ok, maybe I didn't make my question too clear. I was mostly wondering if there is a way to do it in PHP rather than Javascript. I would prefer only using php. and from the answers I got, I take it that there is no way of doing it in PHP. thanks, Siavash Quoting Andrei [EMAIL PROTECTED]: Not related to PHP, but u hava javascript confirm function or prompt (if you need input also). Andy [EMAIL PROTECTED] wrote: Hi all, Is there anyway to have a pop-up window to ask are you sure? yes / no in php? I know you can do it in Javascript, but I'm not sure what's the best way to implement it in php. I want the page to do nothing if no is pressed. any help would be appreciated. thanks, Siavash -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php PHP is a server-side language. It cannot directly influence anything on the client-side. That is why you need to have your PHP script output a client-side scripting language such as JavaScript. You are still only executing PHP code on the server. Regards, Adam Zey. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] pop-up window in php???
[EMAIL PROTECTED] wrote: ok, maybe I didn't make my question too clear. I was mostly wondering if there is a way to do it in PHP rather than Javascript. I would prefer only using php. and from the answers I got, I take it that there is no way of doing it in PHP. All that PHP can do is generate the text for the page that goes to the browser. It is the browser that does any displaying, and it is browser end tools you need to use to get a pop-up window. -- Lester Caine - G8HFL - L.S.Caine Electronic Services - http://home.lsces.co.uk Model Engineers Digital Workshop - http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/ Treasurer - Firebird Foundation Inc. - http://www.firebirdsql.org/index.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] pop-up window in php???
Quoting Lester Caine [EMAIL PROTECTED]: [EMAIL PROTECTED] wrote: ok, maybe I didn't make my question too clear. I was mostly wondering if there is a way to do it in PHP rather than Javascript. I would prefer only using php. and from the answers I got, I take it that there is no way of doing it in PHP. All that PHP can do is generate the text for the page that goes to the browser. It is the browser that does any displaying, and it is browser end tools you need to use to get a pop-up window. -- Lester Caine - G8HFL - L.S.Caine Electronic Services - http://home.lsces.co.uk Model Engineers Digital Workshop - http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/ Treasurer - Firebird Foundation Inc. - http://www.firebirdsql.org/index.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Thank you all very much. Siavash -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] pop-up window in php???
At 11:03 AM 5/29/2006, [EMAIL PROTECTED] wrote: Is there anyway to have a pop-up window to ask are you sure? yes / no in php? I know you can do it in Javascript, but I'm not sure what's the best way to implement it in php. I want the page to do nothing if no is pressed. With all due respect to my learned colleagues, my answer to your question is yes, you can accomplish your goal using just PHP. I assume that you understand that PHP is not a client-side language and therefore cannot, by itself, produce a real-time, operating-system-generated pop-up dialog box in the same way that JavaScript can. However, PHP can download a page with input fields disabled that includes a div styled to look like a dialog box with a couple of submit buttons labeled YES NO. Submitting YES will request the same page from PHP but without the dialog div and with user interface fields enabled; NO will request the same page but without the dialog div and with UI fields disabled. From the user's point of view, the main difference between doing this with PHP and doing it with JavaScript is that the PHP solution will take at least a few seconds for the round-trip to the server whereas JavaScript's response to a confirm() dialog will seem instantaneous. Regards, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] pop-up window in php???
[snip] However, PHP can download a page with input fields disabled that includes a div styled to look like a dialog box with a couple of submit buttons labeled YES NO. Submitting YES will request the same page from PHP but without the dialog div and with user interface fields enabled; NO will request the same page but without the dialog div and with UI fields disabled. From the user's point of view, the main difference between doing this with PHP and doing it with JavaScript is that the PHP solution will take at least a few seconds for the round-trip to the server whereas JavaScript's response to a confirm() dialog will seem instantaneous. [/snip] Interesting concept Paul, so you are saying that PHP can be used to generate something that looks like an alert box using CSS? Or are you saying that PHP would use an intermediary page to generate the behavior? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] pop-up window in php???
At 6:38 PM -0500 5/29/06, Jay Blanchard wrote: [snip] However, PHP can download a page with input fields disabled that includes a div styled to look like a dialog box with a couple of submit buttons labeled YES NO. Submitting YES will request the same page from PHP but without the dialog div and with user interface fields enabled; NO will request the same page but without the dialog div and with UI fields disabled. From the user's point of view, the main difference between doing this with PHP and doing it with JavaScript is that the PHP solution will take at least a few seconds for the round-trip to the server whereas JavaScript's response to a confirm() dialog will seem instantaneous. [/snip] Interesting concept Paul, so you are saying that PHP can be used to generate something that looks like an alert box using CSS? Or are you saying that PHP would use an intermediary page to generate the behavior? This really isn't any different than a page calling itself, or another page, where the result looks like a pop-up dialog box. I think the only real difference here is that in a true pop-up dialog box, the pop-up window appears above the previous window and goes away after the dialog leaving the previous window. However, that may be accomplished if php can generate two browser windows -- I don't know if it can, but I suspect it might. tedd -- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] pop-up window in php???
At 04:38 PM 5/29/2006, Jay Blanchard wrote: [snip] However, PHP can download a page with input fields disabled that includes a div styled to look like a dialog box with a couple of submit buttons labeled YES NO. Submitting YES will request the same page from PHP but without the dialog div and with user interface fields enabled; NO will request the same page but without the dialog div and with UI fields disabled. From the user's point of view, the main difference between doing this with PHP and doing it with JavaScript is that the PHP solution will take at least a few seconds for the round-trip to the server whereas JavaScript's response to a confirm() dialog will seem instantaneous. [/snip] Interesting concept Paul, so you are saying that PHP can be used to generate something that looks like an alert box using CSS? Or are you saying that PHP would use an intermediary page to generate the behavior? The former. No big deal, just a regular page with a small gray form layered on top. The original poster asked for a way to do this without using JavaScript, so I assume that we're only dealing with a single window here. Regards, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] pop-up window in php???
At 05:04 PM 5/29/2006, tedd wrote: This really isn't any different than a page calling itself, or another page, where the result looks like a pop-up dialog box. That's right. Add the dialog form to the markup and position it absolutely to appear centered a bit down from the top of the window. To imitate a modal dialog, disable all other links and form controls by tweaking the markup in PHP before download. (I can't recall how cross-browser successful it is to cover up the page with a large transparent image to disable all UI, but that might be worth exploring.) I think the only real difference here is that in a true pop-up dialog box, the pop-up window appears above the previous window and goes away after the dialog leaving the previous window. However, that may be accomplished if php can generate two browser windows -- I don't know if it can, but I suspect it might. I'm not aware that PHP can ask a browser to open a second window without using JavaScript. What I'm suggesting would LOOK like a second window appearing on top of the primary window, then going away, when it would actually be a single page cleverly styled. Regards, Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] pop-up window in php???
[snip] I'm not aware that PHP can ask a browser to open a second window without using JavaScript. What I'm suggesting would LOOK like a second window appearing on top of the primary window, then going away, when it would actually be a single page cleverly styled. [/snip] PHP could not open a second window unless you found a way to hack the target attribute in an href link. I have done some clever styling, but I am unaware of how you could hide all of the toolars, etc. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] pop-up window in php???
On Mon, May 29, 2006 1:03 pm, [EMAIL PROTECTED] wrote: Is there anyway to have a pop-up window to ask are you sure? yes / no in php? I know you can do it in Javascript, but I'm not sure what's the best way to implement it in php. I want the page to do nothing if no is pressed. The only way this question even makes any sense at all is: http://gtk.php.net I'm 99.9% certain that this ain't what you are using, though. What you probably need to do us just use JavaScript and/or AJAX, or not do what you think you want to do. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] pop-up window in php???
At 06:25 PM 5/29/2006, Jay Blanchard wrote: [snip] I'm not aware that PHP can ask a browser to open a second window without using JavaScript. What I'm suggesting would LOOK like a second window appearing on top of the primary window, then going away, when it would actually be a single page cleverly styled. [/snip] PHP could not open a second window unless you found a way to hack the target attribute in an href link. OK, I see what you mean: PHP could modify links buttons on a page being downloaded so that a second window would be opened (target=_blank) [if permitted by the browser settings] when the user tried to navigate. However, that child window couldn't close itself like a modal dialog does without using JavaScript, which is the driving constraint of this whole thought-problem. I have done some clever styling, but I am unaware of how you could hide all of the toolars, etc. Toolbars? No, I'm not that clever. I was only referring to disabling links and form fields within the HTML page itself. The best I could do using this technique wouldn't exactly mimic a modal dialog, just approximate one. Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Pop-up message
Lester Caine wrote: At the risk of being shouted at because *I* know it's not a PHP problem! I have a page that is being refreshed every 30 seconds or so, and displays a list of 'tickets' waiting to be dealt with on a list from a database query. No problems there, but a couple of sites now want me to add a pop-up warning when a ticket is added that has a staff ID matching the logged in user. I can drive a sounder in the target browser, but need kicking in the right direction for a method of adding a pop-up window. Ideally it needs to be browser agnostic, which is where the problem comes given the pop-up blockers and other 'toys' that are being added to the browser end of things. So can anybody point me in the right direction for a CURRENT method of achieving this, many of the bits I've found so far are somewhat antiquated, and fail in one way or another :( I don't know about 'CURRENT' but you have atleast 3 options: 1. if its an intranet app then just tell them they have to add the intranet server to a trusted zone (and that the browser should allow popups 2. dump your popup info in an absolutely positioned div and make the layer visible on top of the rest of the page (with a js link that hides the layer again) 3. use a js alert(), which you might consider ugly... BUT its modal, its not blockable (other than if js is turned off completely!) -- a user is therefore forced to read the alert and click OK in order to continue. if you want to do something that is triggered by page onload() then you can use this function to add the handler to the document.onload event without breaking any other js code (functions) which have already been 'attached' to the onload event: function joinFunctions() { var newfunc = ''; for (var c = 0;c arguments.length;c++) { if ( arguments[c] ) { var func=arguments[c].toString(); newfunc+=func.substr(func.indexOf({)-1); } } return new Function(newfunc); } example: window.onload = joinFunctions( window.onload, function() { alert('Hey User you have been assigned some new tickets!'); } ); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Pop-up message
I believe one could also embed a small flash object and call the window open from flash. I'm just not sure if IE popup blocker will also block that window. Pedro. -Mensagem original- De: Jochem Maas [mailto:[EMAIL PROTECTED] I don't know about 'CURRENT' but you have atleast 3 options: 1. if its an intranet app then just tell them they have to add the intranet server to a trusted zone (and that the browser should allow popups 2. dump your popup info in an absolutely positioned div and make the layer visible on top of the rest of the page (with a js link that hides the layer again) 3. use a js alert(), which you might consider ugly... BUT its modal, its not blockable (other than if js is turned off completely!) -- a user is therefore forced to read the alert and click OK in order to continue. ( ... ) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Pop-up message
not knowing much about php myself but you could ask phpBB about their private msgs. i cant recall whther it is a mod that pops the window up on receiving a msg or whether the user is online (probably configurable). But as far as direction, that is where i would be heading :) Greg Richard Lynch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Lester Caine wrote: At the risk of being shouted at because *I* know it's not a PHP problem! Actually, it's a client problem :-) I have a page that is being refreshed every 30 seconds or so, and displays a list of 'tickets' waiting to be dealt with on a list from a database query. No problems there, but a couple of sites now want me to add a pop-up warning when a ticket is added that has a staff ID matching the logged in user. Your first task is to convince the client what an incredibly stupid idea this is. And that it won't work with all the popup blockers. And if it did work, it would just annoy the [bleep] out of their users. I know I'm preaching to the choir, here, but I have to go on record with this statement. I can drive a sounder in the target browser, but need kicking in the A sounder? You mean like make my browser make noise? ICK!!! right direction for a method of adding a pop-up window. Ideally it needs to be browser agnostic, which is where the problem comes given the pop-up blockers and other 'toys' that are being added to the browser end of things. You're not going to defeat the popup blockers in the long run. You are better off using clean simple code in an onLoad in your body tag to open the new window. Something like: body onLoad=window.open(URL); where the URL loads in that user's recently added items. Either the users will accept the popup and whitelist it in their popup blocker, or they won't. And if a lot of them don't accept it, as they shouldn't, that tells you right there what a dumb idea this was. :-) But running around to find code to defeat the popup blockers will be a total waste of time -- and you'll end up with something so hacked and so un-maintainable that you'll have to fix it every six months, even if the popup blockers don't find workarounds to block your workarounds that popup the windows that they don't want popped up. So can anybody point me in the right direction for a CURRENT method of achieving this, many of the bits I've found so far are somewhat antiquated, and fail in one way or another :( Perhaps it would be better to segregate the tickets into those associated with the User logged in, and those that are not. Or to at least sort them that way, regardless of their other sorting options. For that matter, don't even *BOTHER* to show me items that aren't mine, unless I specifically ask for them. Build a system that detects tickets that sit un-assigned for too long, and randomly assigns them, or, better yet, assigns them based on factors such as: Ticket features (IE, interface tickets to interface team members) Productivity (IE, don't assign as many tickets to your slow team members as your fast ones) User Status (IE, if I'm on vacation, don't assign me anything) . . . That way, no tickets is left sitting there too long but nobody has to deal with tickets that aren't assigned to them. Just an idea. In general, though, I only mean: Come back at the client with more than just That's a dumb idea (which it is) Come back with a Here's a MUCH better way to do this proposal. That's a dumb idea just gets you more headaches. A solution for a better solution makes you look real smart. :-) Yes, this may turn out to be a waste of your time, because the client is REALLY dead set on these popups, and you'll end up being miserable about them not taking your proposal as well... Time to start looking for a new client. :-v -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Pop-up message
Richard Lynch wrote: Lester Caine wrote: At the risk of being shouted at because *I* know it's not a PHP problem! Actually, it's a client problem :-) Yep - but with so many different ways of doing it, which client method would be best ;) I have a page that is being refreshed every 30 seconds or so, and displays a list of 'tickets' waiting to be dealt with on a list from a database query. No problems there, but a couple of sites now want me to add a pop-up warning when a ticket is added that has a staff ID matching the logged in user. Your first task is to convince the client what an incredibly stupid idea this is. Actually it's not - which is part of the problem - these are all private networks and this is to replace 'reception' trying to phone the member of staff - who may already be on the phone - to tell them an appointment has arrived. So I just ant to 'queue' something on the their machine. And that it won't work with all the popup blockers. Have a handle on that, and the customer knows the problem, they are even willing to consider a switch to Firefox if that will help. Tabbed browsing with queue's on different tabs makes a lot of sense :) And if it did work, it would just annoy the [bleep] out of their users. I know I'm preaching to the choir, here, but I have to go on record with this statement. I know all the arguments, but hopefully you can see the problem - how do we tell the 'target' that there is someone waiting - and the clock is running on performance figures :( I can drive a sounder in the target browser, but need kicking in the A sounder? You mean like make my browser make noise? ICK!!! Yep - and if they are on the phone they may not here it either. right direction for a method of adding a pop-up window. Ideally it needs to be browser agnostic, which is where the problem comes given the pop-up blockers and other 'toys' that are being added to the browser end of things. You're not going to defeat the popup blockers in the long run. As I said - we have control over machine configurations - to a certain extent, and if a user decides they want to be clever it's their performance figures that will be affected ;) You are better off using clean simple code in an onLoad in your body tag to open the new window. Something like: body onLoad=window.open(URL); where the URL loads in that user's recently added items. Either the users will accept the popup and whitelist it in their popup blocker, or they won't. That is probably where I am at, but I was looking to see if anybody had any other ideas for passing messages. Probably should have explained better what I was trying to do, but I often see 'Did you try so and so' which provides another avenue to look at. And if a lot of them don't accept it, as they shouldn't, that tells you right there what a dumb idea this was. :-) But running around to find code to defeat the popup blockers will be a total waste of time -- and you'll end up with something so hacked and so un-maintainable that you'll have to fix it every six months, even if the popup blockers don't find workarounds to block your workarounds that popup the windows that they don't want popped up. Already covered that, but there *IS* a need for a controlled way of passing messages from the server to the client ... So can anybody point me in the right direction for a CURRENT method of achieving this, many of the bits I've found so far are somewhat antiquated, and fail in one way or another :( Perhaps it would be better to segregate the tickets into those associated with the User logged in, and those that are not. Or to at least sort them that way, regardless of their other sorting options. For that matter, don't even *BOTHER* to show me items that aren't mine, unless I specifically ask for them. Other people in a department need to be able to see who is waiting on a queue, only some callers are appointments, so a browser is left logged in with that queue selected so people can monitor things. As soon as an appointment is logged, the page changes to a staff ID specific page, and as long as it is visible in the background, it can be seen, but 'other systems' insist on being displayed full screen, which is what is being the pain. If (actually probably WHEN) we can get the applications that don't want to share to play nicely ... Build a system that detects tickets that sit un-assigned for too long, and randomly assigns them, or, better yet, assigns them based on factors such as: Ticket features (IE, interface tickets to interface team members) Productivity (IE, don't assign as many tickets to your slow team members as your fast ones) User Status (IE, if I'm on vacation, don't assign me anything) Already covered - we know the person is in the office - and that they are waiting for a caller - They COULD be advised by a telephone call (and in some offices I can actually dial the number via PHP), and in some offices the telephone system has a voice mail, but the 30-60
Re: Re: [PHP] Pop-up message
Is there some reason you can't simply use a javascript alert on the page refresh? if(isset($queue)){ echo script type=\text/javascript\ !-- alert(\$queue\); -- /script; } From: Lester Caine [EMAIL PROTECTED] Date: 2005/03/01 Tue AM 03:18:58 EST To: php-general@lists.php.net Subject: Re: [PHP] Pop-up message Richard Lynch wrote: Lester Caine wrote: At the risk of being shouted at because *I* know it's not a PHP problem! Actually, it's a client problem :-) Yep - but with so many different ways of doing it, which client method would be best ;) I have a page that is being refreshed every 30 seconds or so, and displays a list of 'tickets' waiting to be dealt with on a list from a database query. No problems there, but a couple of sites now want me to add a pop-up warning when a ticket is added that has a staff ID matching the logged in user. Your first task is to convince the client what an incredibly stupid idea this is. Actually it's not - which is part of the problem - these are all private networks and this is to replace 'reception' trying to phone the member of staff - who may already be on the phone - to tell them an appointment has arrived. So I just ant to 'queue' something on the their machine. And that it won't work with all the popup blockers. Have a handle on that, and the customer knows the problem, they are even willing to consider a switch to Firefox if that will help. Tabbed browsing with queue's on different tabs makes a lot of sense :) And if it did work, it would just annoy the [bleep] out of their users. I know I'm preaching to the choir, here, but I have to go on record with this statement. I know all the arguments, but hopefully you can see the problem - how do we tell the 'target' that there is someone waiting - and the clock is running on performance figures :( I can drive a sounder in the target browser, but need kicking in the A sounder? You mean like make my browser make noise? ICK!!! Yep - and if they are on the phone they may not here it either. right direction for a method of adding a pop-up window. Ideally it needs to be browser agnostic, which is where the problem comes given the pop-up blockers and other 'toys' that are being added to the browser end of things. You're not going to defeat the popup blockers in the long run. As I said - we have control over machine configurations - to a certain extent, and if a user decides they want to be clever it's their performance figures that will be affected ;) You are better off using clean simple code in an onLoad in your body tag to open the new window. Something like: body onLoad=window.open(URL); where the URL loads in that user's recently added items. Either the users will accept the popup and whitelist it in their popup blocker, or they won't. That is probably where I am at, but I was looking to see if anybody had any other ideas for passing messages. Probably should have explained better what I was trying to do, but I often see 'Did you try so and so' which provides another avenue to look at. And if a lot of them don't accept it, as they shouldn't, that tells you right there what a dumb idea this was. :-) But running around to find code to defeat the popup blockers will be a total waste of time -- and you'll end up with something so hacked and so un-maintainable that you'll have to fix it every six months, even if the popup blockers don't find workarounds to block your workarounds that popup the windows that they don't want popped up. Already covered that, but there *IS* a need for a controlled way of passing messages from the server to the client ... So can anybody point me in the right direction for a CURRENT method of achieving this, many of the bits I've found so far are somewhat antiquated, and fail in one way or another :( Perhaps it would be better to segregate the tickets into those associated with the User logged in, and those that are not. Or to at least sort them that way, regardless of their other sorting options. For that matter, don't even *BOTHER* to show me items that aren't mine, unless I specifically ask for them. Other people in a department need to be able to see who is waiting on a queue, only some callers are appointments, so a browser is left logged in with that queue selected so people can monitor things. As soon as an appointment is logged, the page changes to a staff ID specific page, and as long as it is visible in the background, it can be seen, but 'other systems' insist on being displayed full screen, which is what is being the pain. If (actually probably WHEN) we can get the applications that don't want to share to play nicely ... Build a system that detects tickets that sit un-assigned for too long, and randomly assigns them, or, better yet, assigns them based on factors such as: Ticket
Re: [PHP] Pop-up message
Lester Caine wrote: At the risk of being shouted at because *I* know it's not a PHP problem! Actually, it's a client problem :-) I have a page that is being refreshed every 30 seconds or so, and displays a list of 'tickets' waiting to be dealt with on a list from a database query. No problems there, but a couple of sites now want me to add a pop-up warning when a ticket is added that has a staff ID matching the logged in user. Your first task is to convince the client what an incredibly stupid idea this is. And that it won't work with all the popup blockers. And if it did work, it would just annoy the [bleep] out of their users. I know I'm preaching to the choir, here, but I have to go on record with this statement. I can drive a sounder in the target browser, but need kicking in the A sounder? You mean like make my browser make noise? ICK!!! right direction for a method of adding a pop-up window. Ideally it needs to be browser agnostic, which is where the problem comes given the pop-up blockers and other 'toys' that are being added to the browser end of things. You're not going to defeat the popup blockers in the long run. You are better off using clean simple code in an onLoad in your body tag to open the new window. Something like: body onLoad=window.open(URL); where the URL loads in that user's recently added items. Either the users will accept the popup and whitelist it in their popup blocker, or they won't. And if a lot of them don't accept it, as they shouldn't, that tells you right there what a dumb idea this was. :-) But running around to find code to defeat the popup blockers will be a total waste of time -- and you'll end up with something so hacked and so un-maintainable that you'll have to fix it every six months, even if the popup blockers don't find workarounds to block your workarounds that popup the windows that they don't want popped up. So can anybody point me in the right direction for a CURRENT method of achieving this, many of the bits I've found so far are somewhat antiquated, and fail in one way or another :( Perhaps it would be better to segregate the tickets into those associated with the User logged in, and those that are not. Or to at least sort them that way, regardless of their other sorting options. For that matter, don't even *BOTHER* to show me items that aren't mine, unless I specifically ask for them. Build a system that detects tickets that sit un-assigned for too long, and randomly assigns them, or, better yet, assigns them based on factors such as: Ticket features (IE, interface tickets to interface team members) Productivity (IE, don't assign as many tickets to your slow team members as your fast ones) User Status (IE, if I'm on vacation, don't assign me anything) . . . That way, no tickets is left sitting there too long but nobody has to deal with tickets that aren't assigned to them. Just an idea. In general, though, I only mean: Come back at the client with more than just That's a dumb idea (which it is) Come back with a Here's a MUCH better way to do this proposal. That's a dumb idea just gets you more headaches. A solution for a better solution makes you look real smart. :-) Yes, this may turn out to be a waste of your time, because the client is REALLY dead set on these popups, and you'll end up being miserable about them not taking your proposal as well... Time to start looking for a new client. :-v -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] pop-up windows with a include
this case using javascript with the function window.open() e.g the file index.php will popup teste.php while the index.php load inde.php .. body onload=window.open('teste.php') . rgds http://amadarum.e-tics.net/blogger - Original Message - From: Andre [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, March 03, 2004 6:22 AM Subject: [PHP] pop-up windows with a include Hello I need to open one pop-up windows with a include For example... ?PHP include(teste.php); ? I need de window teste.php show in po-up . Obrigado André Caridade -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] pop-up windows with a include
Andre mailto:[EMAIL PROTECTED] on Tuesday, March 02, 2004 3:23 PM said: Hello hi. I need to open one pop-up windows with a include For example... ?PHP include(teste.php); ? I need de window teste.php show in po-up . php is a server side technology. what you are looking to do needs to be handled on the client side. what you need to do is figure out how to open a window with javascript and then have php send that code to the client. read this page: http://www.pageresource.com/jscript/jwinopen.htm hth, chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] pop-up problem
On Tue, 11 Mar 2003 21:37:37 +0100, Ernest E Vogelsinger wrote about Re: [PHP] pop-up problem what the universal translator turned into this: At 21:02 11.03.2003, -{ Rene Brehmer }- said: [snip] On Mon, 20 Jan 2003 21:48:22 +, Sean Burlington wrote about Re: [PHP] pop-up problem what the universal translator turned into this: I would do a href=foo.php target=Foo onclick=window.open('foo.php', 'Foo', 'height=480,width=640,status=yes,scrolling=no,scrollbars=no');return false;Click Here/a as this will still work on non-js browsers - albeit without being able to size/position the window. But you'd also get the same page in two windows ... one with dressing, one without. Atleast in IE ... it runs both the href code, and the onclick code ... when the JIT is enabled. On browsers where the JIT is disabled, only HREF is executed. [snip] No - if the onClick handler returns false, nothing will happen. That's the original reason for the onClick handler to be there - it can take control if a link is actually performed or not. My IE doesn't care about that ... it kicks both into action ... which is bothersome as I normally used '#' in the href when onclick was used to open windows... so everytime you clicked the link, it'd scroll the page to the top, while opening the new window. The same thing happens with target (if target is _new) and # in href. It'll load a new window, with the current page in, and try to run the onclick function there... Rene -- Rene Brehmer This message was written on 100% recycled spam. Come see! My brand new site is now online! http://www.metalbunny.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] pop-up problem
At 15:52 13.03.2003, -{ Rene Brehmer }- said: [snip] My IE doesn't care about that ... it kicks both into action ... which is bothersome as I normally used '#' in the href when onclick was used to open windows... so everytime you clicked the link, it'd scroll the page to the top, while opening the new window. The same thing happens with target (if target is _new) and # in href. It'll load a new window, with the current page in, and try to run the onclick function there... [snip] You might use a href=javascript:void(0); onClisk=... here - however note that this won't do _anything_ if JS is disabled. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] pop-up problem
On Mon, 20 Jan 2003 21:48:22 +, Sean Burlington wrote about Re: [PHP] pop-up problem what the universal translator turned into this: I would do a href=foo.php target=Foo onclick=window.open('foo.php', 'Foo', 'height=480,width=640,status=yes,scrolling=no,scrollbars=no');return false;Click Here/a as this will still work on non-js browsers - albeit without being able to size/position the window. But you'd also get the same page in two windows ... one with dressing, one without. Atleast in IE ... it runs both the href code, and the onclick code ... when the JIT is enabled. On browsers where the JIT is disabled, only HREF is executed. Rene -- Rene Brehmer This message was written on 100% recycled spam. Come see! My brand new site is now online! http://www.metalbunny.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] pop-up problem
At 21:02 11.03.2003, -{ Rene Brehmer }- said: [snip] On Mon, 20 Jan 2003 21:48:22 +, Sean Burlington wrote about Re: [PHP] pop-up problem what the universal translator turned into this: I would do a href=foo.php target=Foo onclick=window.open('foo.php', 'Foo', 'height=480,width=640,status=yes,scrolling=no,scrollbars=no');return false;Click Here/a as this will still work on non-js browsers - albeit without being able to size/position the window. But you'd also get the same page in two windows ... one with dressing, one without. Atleast in IE ... it runs both the href code, and the onclick code ... when the JIT is enabled. On browsers where the JIT is disabled, only HREF is executed. [snip] No - if the onClick handler returns false, nothing will happen. That's the original reason for the onClick handler to be there - it can take control if a link is actually performed or not. -- O Ernest E. Vogelsinger (\)ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] pop-up problem
Hi Mark McCulligh, Other than the fact that popups are a work of the devil, there's no way PHP can help you there. Except that you can use regular HTML to popup a new window, albeit with all the dressing: a href=target.php?loc=popup target=_newWill popup a new window/a Rene On Mon, 20 Jan 2003 15:29:26 -0500, you wrote about [PHP] pop-up problem something that looked like this: I was wondering if anyone knows of a way to create a pop-up using PHP or other language to do the same thing as JavaScript window.open method. I have an app that uses the JavaScript popup but now with those popup stopper it will not always work. For I am looking for another way of creating popups. Does anyone know of a way other then window.open to control the window's size and remove things like the toolbar, address bar, etc.. Is there a way to control is through PHP and the header information? or I am look for something that doesn't exist. -- Rene Brehmer This message was written on 100% recycled spam. Come see! My brand new site is now online! http://www.metalbunny.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] pop-up problem
--- Mark McCulligh [EMAIL PROTECTED] wrote: I was wondering if anyone knows of a way to create a pop-up using PHP or other language to do the same thing as JavaScript window.open method. I have an app that uses the JavaScript popup but now with those popup stopper it will not always work. That is the point. For I am looking for another way of creating popups. Does anyone know of a way other then window.open to control the window's size and remove things like the toolbar, address bar, etc.. Is there a way to control is through PHP and the header information? or I am look for something that doesn't exist. No, PHP cannot help you here. Controlling client behavior like that is not something that is within the scope of HTTP either, so there are no headers that do anything like that. You must depend on some sort of client-side scripting. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] pop-up problem
I wish people won't miss use features for people start blocking them. I am using the window.open the way it was meant for. I have a online help feature. I am not using it a force people to look at banner after banner. Mark. --- Mark McCulligh [EMAIL PROTECTED] wrote: I was wondering if anyone knows of a way to create a pop-up using PHP or other language to do the same thing as JavaScript window.open method. I have an app that uses the JavaScript popup but now with those popup stopper it will not always work. That is the point. For I am looking for another way of creating popups. Does anyone know of a way other then window.open to control the window's size and remove things like the toolbar, address bar, etc.. Is there a way to control is through PHP and the header information? or I am look for something that doesn't exist. No, PHP cannot help you here. Controlling client behavior like that is not something that is within the scope of HTTP either, so there are no headers that do anything like that. You must depend on some sort of client-side scripting. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] pop-up problem
--- Mark McCulligh [EMAIL PROTECTED] wrote: I wish people won't miss use features for people start blocking them. I am using the window.open the way it was meant for. I have a online help feature. I am not using it a force people to look at banner after banner. I know exactly what you mean. However, I believe window.open still works when used like this: a href=# onclick=window.open('foo.php', 'Foo', 'height=480,width=640,status=yes,scrolling=no,scrollbars=no');return false;Click Here/a At least, that works with Mozilla's pop-up blocker. As I understood it, only those annoying automatic popups are disabled. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] pop-up problem
Right, Mozilla set it up to block pop-ups that were not requested by the end user. I don't know why Netscape 7 didn't include this with their build. Chris Shiflett wrote: --- Mark McCulligh [EMAIL PROTECTED] wrote: I wish people won't miss use features for people start blocking them. I am using the window.open the way it was meant for. I have a online help feature. I am not using it a force people to look at banner after banner. I know exactly what you mean. However, I believe window.open still works when used like this: a href=# onclick=window.open('foo.php', 'Foo', 'height=480,width=640,status=yes,scrolling=no,scrollbars=no');return false;Click Here/a At least, that works with Mozilla's pop-up blocker. As I understood it, only those annoying automatic popups are disabled. Chris -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] pop-up problem
What does IE do? John Nichel [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Right, Mozilla set it up to block pop-ups that were not requested by the end user. I don't know why Netscape 7 didn't include this with their build. Chris Shiflett wrote: --- Mark McCulligh [EMAIL PROTECTED] wrote: I wish people won't miss use features for people start blocking them. I am using the window.open the way it was meant for. I have a online help feature. I am not using it a force people to look at banner after banner. I know exactly what you mean. However, I believe window.open still works when used like this: a href=# onclick=window.open('foo.php', 'Foo', 'height=480,width=640,status=yes,scrolling=no,scrollbars=no');return false;Click Here/a At least, that works with Mozilla's pop-up blocker. As I understood it, only those annoying automatic popups are disabled. Chris -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] pop-up problem
on 1/20/03 4:47 PM, Mark McCulligh at [EMAIL PROTECTED] wrote: What does IE do? Hi Mark, IE, as far as I know, doesn't have any built-in pop-up killer. Pop-up killers generally only block pop-ups that either weren't requested by the visitor -- that is, no link was clicked -- or that reside on a different server than the page opening the pop-up. I imagine your help system should be fine unless your visitors have JavaScript disabled (pop-ups won't work without JavaScript) or there's an error in you JavaScript that's preventing the pop-up from working on one browser or another. Hope this helps, -Step -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] pop-up problem
Thanks for the advise, I am doing to change the way I call the popup, move it out of a function, right into the A tag itself. To see if the one client I have popup killer app lets it happen now. Thanks again, Mark. - Original Message - From: Step Schwarz [EMAIL PROTECTED] To: Mark McCulligh [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, January 20, 2003 7:07 PM Subject: Re: [PHP] pop-up problem on 1/20/03 4:47 PM, Mark McCulligh at [EMAIL PROTECTED] wrote: What does IE do? Hi Mark, IE, as far as I know, doesn't have any built-in pop-up killer. Pop-up killers generally only block pop-ups that either weren't requested by the visitor -- that is, no link was clicked -- or that reside on a different server than the page opening the pop-up. I imagine your help system should be fine unless your visitors have JavaScript disabled (pop-ups won't work without JavaScript) or there's an error in you JavaScript that's preventing the pop-up from working on one browser or another. Hope this helps, -Step -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] pop-up problem
I have found that with the popup stopper that I have installed on my machine, Pop-up Stopper from Panic Ware, that I can't even start up a new instance of IE without it killing the new window. I have netscape 4,6,7 and mozilla installed on my machine and it won't allow me to start up more then one copy of netscape or mozilla at a time. Jim - Original Message - From: Step Schwarz [EMAIL PROTECTED] To: Mark McCulligh [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, January 20, 2003 4:07 PM Subject: Re: [PHP] pop-up problem on 1/20/03 4:47 PM, Mark McCulligh at [EMAIL PROTECTED] wrote: What does IE do? Hi Mark, IE, as far as I know, doesn't have any built-in pop-up killer. Pop-up killers generally only block pop-ups that either weren't requested by the visitor -- that is, no link was clicked -- or that reside on a different server than the page opening the pop-up. I imagine your help system should be fine unless your visitors have JavaScript disabled (pop-ups won't work without JavaScript) or there's an error in you JavaScript that's preventing the pop-up from working on one browser or another. Hope this helps, -Step -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] pop-up problem
Chris Shiflett wrote: --- Mark McCulligh [EMAIL PROTECTED] wrote: I wish people won't miss use features for people start blocking them. I am using the window.open the way it was meant for. I have a online help feature. I am not using it a force people to look at banner after banner. I know exactly what you mean. However, I believe window.open still works when used like this: a href=# onclick=window.open('foo.php', 'Foo', 'height=480,width=640,status=yes,scrolling=no,scrollbars=no');return false;Click Here/a At least, that works with Mozilla's pop-up blocker. As I understood it, only those annoying automatic popups are disabled. I would do a href=foo.php target=Foo onclick=window.open('foo.php', 'Foo', 'height=480,width=640,status=yes,scrolling=no,scrollbars=no');return false;Click Here/a as this will still work on non-js browsers - albeit without being able to size/position the window. -- Sean -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] pop-up
You need to modify topWindow() so that you can pass a query string to it, which you can then use to add to the URL of the pop-up window. SCRIPT !-- function userpop(user_id) { var prefix = show_user.php?userid=; var script = eval(prefix + user_id); window.open(script, view_user, toolbar=no,location=no,directories=no,status=yes,menubar=yes,scrollbars=yes ,resizable=no,width=250,height=250); } // -- /SCRIPT input type=BUTTON value=Preview onClick=userpop('justin'); This would pop-up a window with the dimensions listed, and I pass a userid to it, which gets appended to the URL of the new window, passing a userid variable into the target script via GET. I *think* all input's need to be in a form tag regardless... a better way to test your script would be to take the input/form out of the equation, get your javascript right with a simple A HREF tag: A HREF=# onClick=userpop('justin'); And since this is a JavaScript thing, not a PHP thing, you might want to address the issue(s) in comp.lang.javascript Justin French on 18/08/02 7:14 PM, Mantas Kriauciunas ([EMAIL PROTECTED]) wrote: Hey php-general, whats the easyest way to send variables to pop-up? i got button like this: input type=BUTTON value=Preview onClick=\topWindow()\ its not in the form its just standing hare.. do i add to post or how is the easy way to do it.. it just pops up window and i need to pass variables to that pop up whish takes variables from the form before that button. its preview.php that pops out. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] pop-up windows
In the old days, Rasmus would answer with something like: http://php.net/FAQ.php#4.17 That was back when the whole FAQ could fit in the head of a single person... :-) [Well, a single person as smart as Rasmus, anyway... :-)] This meta-thread about what to do about posters who obviously didn't do their homework is just as endemic to the system as the original problem. The poor will always be with you I truly believe that the best solution is to simply point them to the URL they should have found in the first place, maybe politely suggest they try the search engine first next time, and leave it at that. Being abusive is not going to make them want to improve themselves, really. Who gets the good results -- The sports coach who yells and screams at new, untrained players for stupid mistakes, or the one who politely informs them of their error, and sets them on the true path? Now if you got a poster who *CONTINUES* in their wayward behaviour, an off-list explanation of their error is a Good Idea (tm). :-) And, you'll never get the volume of a General list for something as popular as PHP to significantly decrease no matter how you try to hit users over the head with Do your homework There have already been more meta-posts about FAQs than FAQs, and that's just silly. [Which is why I'm making another one, of course :-)] Not saying that making it easy to find the right way to search isn't a Good Idea (tm) but extremes like a daily post to tell people that is just too much and won't help. Disclaimer: Once upon a time, a long time ago, as a brand-new user, I read the FAQ. A year went by. I asked question # 4.17. Why? Well, when I read the FAQ, I didn't even understand the QUESTION, much less the answer to #4.17. :-) A fellow named Rasmus was kind enough to just reply: http://php.net/FAQ.php#4.17 And you know what? About a year after that, I figured out (Hey, I'm slow, okay?) that this Rasmus guy (and that Zeev guy and that Andi guy) were the actual *DEVELOPERS* of PHP, and I figured they could better spend his (their) time fixing PHP for me, instead of answering questions with: http://php.net/FAQ.php#4.17 So, you know what I did? I started answering for him. Hey, I even answered questions I didn't even understand. No, really. There was this one Oracle question that kept popping up with the same error message, and the answer (not yet in the FAQ at that time) was SetEnv(ORACLE_HOME=/home/oracle); [And that's not even the correct answer any more, but it was then.] I didn't really know what SetEnv was, and I hadn't actually touched Oracle (well, okay, Oracle 4.1.17 or somesuch when I worked this day job years and years before, and they had this *horrible* command-line ASCII art interface that you couldn't even create a database without answering a zillion questions I didn't understand the question, much less know the answer to...) Anyway, for all practical purposes, I knew nothing about Oracle. [Still don't, for all practical purpose, but I reckon I can get away with Just like chicken if I ever need to use it.] There were other questions about CGI and Module (whatever those are) and I just memorized the FAQ answers and posted away. I think I did that pretty solid for, oh, three, maybe four years or so... :-) Next thing you know, I was being hailed as PHP expert (and eventually became one, I guess...). 'Course, I also got abusive emails from (eg) Oracle users after I told them (in response to direct-email followup questions) that I had no idea how to work Oracle and had never even seen it, and they seemed to think I was deliberately lying to them and taunting them, but that's another story... :-) Anyway, my point is this -- Abusive answers don't help, no matter how frustrated you are. If you're that frustrated, let somebody else answer the FAQ, or just let the guy flounder for awhile. They'll either get answered by somebody else, or the poster will get off their duff and start digging. Either way, just hit delete. Just my take as a former (and maybe once again) regular You'll have to use my old email addresses to dig out my old posts if you wanna figure out just how regular I was, back in the day... [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] And a few more I reckon I've forgotten, but that's okay :-) I think Stas even had this nifty interface on the Zend site for a while tracking post frequency by email. I don't think I ever was more vociferous than Rasmus, but it was close sometimes :-) -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] pop-up windows
on 29/06/02 2:53 AM, Kevin Stone ([EMAIL PROTECTED]) wrote: John I hate to critisize you since you are one of the most active members on this list. But are these types of comments really useful? -Kevin No, I'm with John on this one. I'd say I type no, JavaScript is client-side, and PHP is server side around 20 times a week to this list, and that's only when I can be bothered. Searching for pop-up in the archives would have solved the writers problem in about 2 minutes. For this group to maintain it's worth, we need to encourage users to do a LITTLE research before asking obvious questions, and we need to discourage people wasting our time with repetitive questions, or those who clearly subscribe to the but it's so easy to just send an email and wait to be flamed mentality. Regards, Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] pop-up windows
Here ! Here ! Everyone's time is valuable, and therefore the more we all respect each other's time and opinions, the more valuable a resource this will become. Bruce Karstedt President Technology Consulting Associates, Ltd. Tel: 847-735-9488 Fax: 847-735-9474 -Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 30, 2002 2:45 AM To: Kevin Stone; [EMAIL PROTECTED] Subject: Re: [PHP] pop-up windows Importance: Low on 29/06/02 2:53 AM, Kevin Stone ([EMAIL PROTECTED]) wrote: John I hate to critisize you since you are one of the most active members on this list. But are these types of comments really useful? -Kevin No, I'm with John on this one. I'd say I type no, JavaScript is client-side, and PHP is server side around 20 times a week to this list, and that's only when I can be bothered. Searching for pop-up in the archives would have solved the writers problem in about 2 minutes. For this group to maintain it's worth, we need to encourage users to do a LITTLE research before asking obvious questions, and we need to discourage people wasting our time with repetitive questions, or those who clearly subscribe to the but it's so easy to just send an email and wait to be flamed mentality. Regards, Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] pop-up windows
Perhaps we could agree on a standard response when someone asks about doing javascript in php. Then when someone asks that question, the first one to send out that canned response wins 1 php credit. John and Jason would be php millionaires by the year out I think. -Original Message- From: Bruce Karstedt [mailto:[EMAIL PROTECTED]] Sent: June 30, 2002 11:27 AM To: 'Justin French'; 'Kevin Stone'; [EMAIL PROTECTED] Subject: RE: [PHP] pop-up windows Here ! Here ! Everyone's time is valuable, and therefore the more we all respect each other's time and opinions, the more valuable a resource this will become. Bruce Karstedt President Technology Consulting Associates, Ltd. Tel: 847-735-9488 Fax: 847-735-9474 -Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 30, 2002 2:45 AM To: Kevin Stone; [EMAIL PROTECTED] Subject: Re: [PHP] pop-up windows Importance: Low on 29/06/02 2:53 AM, Kevin Stone ([EMAIL PROTECTED]) wrote: John I hate to critisize you since you are one of the most active members on this list. But are these types of comments really useful? -Kevin No, I'm with John on this one. I'd say I type no, JavaScript is client-side, and PHP is server side around 20 times a week to this list, and that's only when I can be bothered. Searching for pop-up in the archives would have solved the writers problem in about 2 minutes. For this group to maintain it's worth, we need to encourage users to do a LITTLE research before asking obvious questions, and we need to discourage people wasting our time with repetitive questions, or those who clearly subscribe to the but it's so easy to just send an email and wait to be flamed mentality. Regards, Justin French -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Pop Up Window
Weird. My netscape 4.7x does not do this under the same circumstances. (tried 4.7 4.75, 4.76, 4.77) On 4/8/01 1:33 PM, "Claudia" [EMAIL PROTECTED] wrote: Is there a way to initiate a pop up window containing a form using PHP code? I am trying to use Javascript to popup a window which contains a form. The form is processed via a PHP script. (miniquote.scp.php3) The popup window displays OK. The form processes OK in IE 5.0 however using NS 4.7 I receive this error: "Warning there is a possible security hazard here...opeing miniquote.scp.php3 using php.exe" "When you download a file from the network, you should be aware of security considerations" "A file that contains malicious programming instructions could damage"You should only use files obtained from a site that you trust" The issue is with Javascript as I can use the same code in a html window with no errors. Any ideas on how to get around this error would be appreciated! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Pop-up warning dialog box
On 18 Feb 2001 20:54:16 -0800, Edith Lai [EMAIL PROTECTED] wrote: If i want to validate a form and check for empty input which then will produce a pop up warning dialog box, what should i do? Read up on your JavaScript. And consider whether this is really a good idea - many people find it annoying. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Pop-up warning dialog box
On Mon, 19 Feb 2001 15:25, Edith Lai wrote: If i want to validate a form and check for empty input which then will produce a pop up warning dialog box, what should i do? thanks If you want to do that client side, you'll need to write a little javascript routine which checks the input and does the dialog box bit. But don't forget a) user may have js turned off and b) don't rely only on client side validation - recheck the data server side prior to processing it. -- David Robley| WEBMASTER Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet| http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]