 |
 |
Setting Window Features with JS
|
 |
|
 |
|
Mac Elite
Join Date: May 2002
Status:
Offline
|
|
Can you set the windows features (i.e. no scroll, no navigation bar, etc..) via a js line in the head?
window.location.????
or do a have to call a function after load?
|
|
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Nov 1999
Status:
Offline
|
|
I don't think you can do this once the window has already been opened. You can do it in the call that opens the window, but I don't think you can do it otherwise.
|
|
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: May 2002
Status:
Offline
|
|
Hmmm....I've done this to resize or redirect a window. Are you sure?
Wish my JS book wasn't packed away :-(
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Aug 2002
Status:
Offline
|
|
here you go:
hide each of the six bars:
window.locationbar.visible=false
window.menubar.visible=false
window.personalbar.visible=false
window.scrollbars.visible=false
window.statusbar.visible=false
window.toolbar.visible=false
this is copyed directly out of javascript bible... they say in netscape you need to put these lines in:
before:
netscape.security.PrivilegeManager.enablePrivilege ("UniversalBrowserWrite")
after:
netscape.security.PrivilegeManager.disablePrivileg e("UniversalBroowserWrite")
hope that does it
--will
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: May 2002
Status:
Offline
|
|
|
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: May 2002
Status:
Offline
|
|
Hmmm .... so I put this in the head:
[script type="text/javascript" name="Set_Window"][!--
netscape.security.PrivilegeManager.disablePrivileg e("UniversalBrowserWrite")
window.locationbar.visible=false
window.menubar.visible=false
window.personalbar.visible=false
window.scrollbars.visible=false
window.statusbar.visible=false
window.toolbar.visible=false
netscape.security.PrivilegeManager.enablePrivilege ("UniversalBrowserWrite")
// --]
[/script]
and it doen'y seem to work ... hmmmm
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Aug 2002
Status:
Offline
|
|
will it work with the enable above and the disable below?
--will
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: May 2002
Status:
Offline
|
|
Nope .. atleast not in IE or Safari, haven't pulled out Camino yet, but at this point it doesn't matter.
hmmm ... if I used a function that would mean that i have to have an onload, which might look rather odd.
Any ideas? I could always dump the pages into a single frame, but that's what I'm trying to remove ... any use of frames.
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Aug 2002
Status:
Offline
|
|
ok, first off apperantly it should have been .visibility not .visible (my bad) but that only will work in netscape
there is probably some way to do it with:
window.open("whatever.html","_self","toolbar=no")
if you call the window "_self" it will open in the same window... but in my test it didn't actually hide the tool bar.
(easy way to execute javascript is to set your location to: javascript:script so you can paste javascript:window.open("http://www.apple.com","_self","toolbar=no") into your location bar to test it out)
--will
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: May 2002
Status:
Offline
|
|
I think I'm going to put this on the back burner for now ... maybe the next revison/tweek.
I was attempting to elimante scrolling as well as address my preloading issues.
I've decide to go back to my old technique of using two frames ... the left set to 0 will contain my preloaded/always loaded items and the right will eliminate the scroll bars.
Now if I can come up with a simple way of dynamically building pages :-) doc.write? ... hmmm since my nav bar is now out of the side frame it's got to be placed inside all my pages ... ouch!
Thanks again for the help :-)
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Aug 2002
Status:
Offline
|
|
you probably either want to do something dynamicly on the server (serverside includes / php / perl...) or if you can't you might consider iFrames, that way you can update your navigation page in one place
--will
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: May 2002
Status:
Offline
|
|
Thanks Wil, I think I'm going to reinsert my previous preloading technique and finish off the content first then do some research on iFrames.
How well is it supported? iFrames = Layers?
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Aug 2002
Status:
Offline
|
|
|
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|