YankeeDoodle Posted July 20, 2009 Report Posted July 20, 2009 Hi, hope somebody knows the solution to my problem. I want to open a photogallery in a new window, after clicking the button on the home page of course. Now opening a new window is not the problem, the tricky part is to get rid of any and all surrounding elements, such as directory, links, scrollbars etc. etc. I really want a BLANK window, and it seems to work with the function window.open, although even I set all the params to NO, it keeps showing the "links" bar (the space where you type in the URL) and I cannot get rid of it. I use the following code (and IE 8 as standard browser): onclick="window.open('gallery.html','PhotoGallery','width=1200,height=600,toolbar=no,location=no,directories=no, status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no')" type="button"> Please note: see the location=no param? it doesn't do it's job....... Is there somebody out there with a solution? It would be really appreciated. Thanks, /Hans Quote
administrator Posted July 21, 2009 Report Posted July 21, 2009 Hi, Try this: onClick="window.open('','page','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=350,height=410,left=150,top=150,titlebar=yes')" Quote
YankeeDoodle Posted July 21, 2009 Author Report Posted July 21, 2009 Stefan, Thanks for your reaction, but what exactly is the difference? You left out the page I want to call in that window........ I might be a rookie, but I ain't that far of track........ /Hans Quote
PicnicTutorials Posted July 21, 2009 Report Posted July 21, 2009 Here you go YankeeDoodle. http://www.visibilityinherit.com/code/popup.php Quote
YankeeDoodle Posted July 21, 2009 Author Report Posted July 21, 2009 Dear Eric, thank you so much for your contribution. I also tried your suggestion (as I did earlier with the one Stefan provided) but again, your solution doesn't solve my problem and the code is (except for popup.php - which program I do not have) in essence the same as mine. Could it be my browser (IE 8) or the way it is configured? Thanks again, /Hans Quote
daddyalfie Posted July 21, 2009 Report Posted July 21, 2009 Yankee: I am, BY FAR, the least experienced one to answer you. You have heard from two of our top experts herein. One comment: Eric's answer seems to imply working with PHP, which requires a few things. First the document needs to be saved with a .php extension rather than .html. Then it needs to be on a server that offers a "php-engine". (Most do). You can load a program like WAMP (Free.) on to your computer which will allow you to run php files locally on your home computer. Hope I'm not "preaching to the choir!" Alfie Quote
falkencreative Posted July 21, 2009 Report Posted July 21, 2009 One comment: Eric's answer seems to imply working with PHP, which requires a few things. In the example, the page that is being popped up is a .PHP page, but it could just as easily use HTML or something else. PHP isn't required -- the example only uses javascript to pop up the page. Quote
YankeeDoodle Posted July 22, 2009 Author Report Posted July 22, 2009 OK, guys. I have PHP on the host server and on my development server here, so I am going to try it again with the PHP extension. Thanks for the understanding and all the help sofar. Greetings from sunny Amsterdam (although thanks to web development is in the middle of the night right now ) /Hans Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.