Forum Moderators: open
And I certainly hope that's the answer - I don't want anyone hacking with the browser layout that I chose for my main window.
1) changing your security privilages first, then changing the attributes. Netscape example below. Not really cross-browser, and results in an ugly dialog box asking the visitor to confirm that you are requesting more privilages (and most visitors with half a brain would say no):
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserWrite");
window.menubar.visible=!window.menubar.visible;
2) Have the new window pop up another window, then close itself.
I must be missing something... I note that it is a php app, but still ... Why can't you can't put the code in the page which calls the new window, instead of from the onload() of the new window?
Shawn
photoshow.php is the script where the pic gets shown. There's another script media.php when you click a picture it opens that photoshow.php BUT
if you go directly to photoshow.php then well the toolbars etc are visible and it messes up the script to resize the window for the image
see what im saying?
[edited by: tedster at 2:26 am (utc) on April 14, 2003]
"
here's another script media.php when you click a picture it opens that photoshow.php BUT
if you go directly to photoshow.php then well the toolbars etc are visible and it messes up the script to resize the window for the image
see what im saying?
"
Theres a link already for that
BUT if somone goes, hmm
I could check for the referer BUT some browsers dont send a referer :-/
You don't need to check the referer; you could check whether the menu bar, etc are visible by looking at the window.menubar.visible attribute per my previous post; you just can't change it. You'd have to use one of the cludges I suggested. Are visitors likely to go directly to the pop-ups rather than through another of your pages?
Sorry I did not understand your post #5. I think the lack of full sentences/punctuation, etc fooled me. I guess I just read it too fast, sorry.
Shawn
[Removed sentence which is not relevant as it was responding to a post which has since been removed by the moderator]
[edited by: ShawnR at 2:43 am (utc) on April 14, 2003]
Thats 1 step closer :-)
Thanks, there must be a way to disable the status bar, toolbar address bar and the other bar for one window :-/
EDIT:
K I guess I forgot to actuatly use sentences heh :-/
Sorry for not making it readable.
I wanted it so people can link to the image directly and it will display without toolbars etc without having them to use the onclick window open...
So they can click on http://www.example.com/photoshow.php?pic=blah.jpg
and it will show up, remove the status and all that so the picture fits in perfectly.
Maybe ill recode it, I only have to change 1 variable so no window on open, then status and all that is visible and might not look so well on larger images, so thats why I wanted to do it this way :-)
[edited by: tedster at 2:25 am (utc) on April 14, 2003]
[edit reason] use generic domain name [/edit]