cityguy
Junior Member
Better living through reckless experimentation.
Posts: 390
inherit
133800
0
Aug 17, 2014 0:49:19 GMT -8
cityguy
Better living through reckless experimentation.
390
November 2008
cityguy
|
Post by cityguy on Feb 18, 2014 18:02:51 GMT -8
I've been using the following script to automatically resize the page in V4, but it's not compatible with V5, and has been causing problems. Is there a plugin that will perform the same task?
<SCRIPT LANGUAGE="JavaScript"> <!-- Begin if (window != top) top.location.href = location.href; self.moveTo(0,0); self.resizeTo(screen.availWidth,screen.availHeight); // End --> </script>
|
|
Former Member
inherit
guest@proboards.com
131621
0
Nov 24, 2024 16:21:21 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Feb 18, 2014 18:21:34 GMT -8
What page is it you're wanting altered? It should be a simple edit rather than a plugin. Do you mean the entire forum width?
|
|
inherit
168679
0
Nov 18, 2012 17:03:07 GMT -8
Virgil Sovereign
Latet anguis in herba.
686
July 2011
syonidv
|
Post by Virgil Sovereign on Feb 19, 2014 1:56:21 GMT -8
It's considered extremely bad form for a web page to tinker with the position and dimensions of the browser window. Most modern browsers disallow it by default. The code is syntactically fine. It's just trying to perform an action that modern browsers don't allow (and for good reason). You might look at some stopgap solutions to invoking "full-screen mode", but even these can only be invoked by some user action on the page (such as a click, etc.). In general, your site should not be attempting to manipulate the position and dimensions of the browser window.
|
|
cityguy
Junior Member
Better living through reckless experimentation.
Posts: 390
inherit
133800
0
Aug 17, 2014 0:49:19 GMT -8
cityguy
Better living through reckless experimentation.
390
November 2008
cityguy
|
Post by cityguy on Feb 19, 2014 3:25:50 GMT -8
This the page: www.cityspeak.proboards.com/I don't know about form, tinkering, or manipulation, but none of it is subversive, I promise you. When I visit a page that's about a quarter or less of my screen, the first thing I like to do is make it full screen so that I can view all of it. That's all I'd like to do... I'm trying to save the visitor a step, I'm not insulting anyone's mother or attempting to crack and hack the government military computers in the basement of the Pentagon.
|
|
inherit
168679
0
Nov 18, 2012 17:03:07 GMT -8
Virgil Sovereign
Latet anguis in herba.
686
July 2011
syonidv
|
Post by Virgil Sovereign on Feb 19, 2014 10:28:29 GMT -8
cityguy: I'm not accusing you of being subversive. I'm just giving you a heads up on what modern browsers do and don't allow. The latest generation of browsers don't allow scripts to reposition or resize the browser window. The best we can give you here is a plugin that places a button somewhere that, if clicked, puts the browser into full-screen mode. That's the best any website can do nowadays. On most browsers, hitting F11 puts the browser into full-screen mode. A simple solution is to add a small disclaimer to your homepage: "This site is best viewed in a window larger than X by Y pixels. To view this site in full-screen mode, press F11."
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Feb 19, 2014 18:46:24 GMT -8
one of the reason this wouldnt really be acceptable is its open to all sorts of abuse. someone could write a script that resizes the browser window to be 50x50 everytime a site is accessed.
so because of that kind of behavior, its been removed from browsers. even if YOU didnt write it, you never know what someone else could have snuck in there.
Virgil's idea for a message telling members about F11 is the fastest possible way to achieve your dreams there.
|
|
cityguy
Junior Member
Better living through reckless experimentation.
Posts: 390
inherit
133800
0
Aug 17, 2014 0:49:19 GMT -8
cityguy
Better living through reckless experimentation.
390
November 2008
cityguy
|
Post by cityguy on Feb 21, 2014 16:16:04 GMT -8
Thank you all.
|
|