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
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')"
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
PicnicTutorials Posted July 21, 2009 Report Posted July 21, 2009 Here you go YankeeDoodle. http://www.visibilityinherit.com/code/popup.php
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
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
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.
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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now