Author |
|
krommetje Super User
Joined: December 29 2004 Location: Netherlands
Online Status: Offline Posts: 695
|
Posted: November 02 2006 at 23:08 | IP Logged
|
|
|
HI all,
How do I get IE and Mozilla to run full screen with no scrollbars? I have been looking for javascripts and found millions of them but none work... either they run fullscreen but turn the scrollbars on again or they do nothing at all...
any help is welcome...
Peter
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: November 03 2006 at 08:05 | IP Logged
|
|
|
Kiosk mode is invoked by pressing F11. You may need to rework your pages to not be longer than one screen (if the page is bigger, you will see scroll bars).
|
Back to Top |
|
|
onhiatus Senior Member
Joined: May 12 2004 Location: United States
Online Status: Offline Posts: 279
|
Posted: November 03 2006 at 16:12 | IP Logged
|
|
|
I run an ie instance in a simple hta - this gets rid of all UI. You just have a browser window - no menus, no controls.
A warning it also gets rid of the close and minimize functionality...
Try Something like this (call it "test.hta"):
Quote:
<HTML>
<HTA:APPLICATION
ID="Float"
APPLICATIONNAME="Float"
BORDER="none"
INNERBORDER ="no"
CAPTION="no"
ICON=""
SYSMENU="no"
SHOWINTASKBAR="no"
SINGLEINSTANCE="yes"
WINDOWSTATE="maximize"
SCROLL = "no"
/>
<HEAD>
<TITLE>Window Title</TITLE>
<SCRIPT LANGUAGE="JavaScript">
var _oNetwork = new ActiveXObject("WScript.Network");
var _oShell = new ActiveXObject("WScript.Shell");
var _oFSO = new ActiveXObject("Scripting.FileSystemObject");
var _iFrameID = "myIFrame";
</SCRIPT>
</HEAD>
<BODY onLoad="" >
<IFRAME ID="myIFrame" WIDTH="100%" HEIGHT="100%" src="http://www.myx10.com/forum/forum_posts.asp?TID=947&PN=1 " style="position:absolute; top:0; left:0"></IFRAME>
</BODY>
</HTML> |
|
|
Note if you add "overflow:hidden" to the style property of the IFRAME you'll never get scroll bars...
Edited by onhiatus - November 03 2006 at 16:15
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: November 03 2006 at 18:29 | IP Logged
|
|
|
Tony,
That's pretty good. Ive copied the code and tested it...pretty interesting. I think that's probably exactly what Peter wants.
Ive implemented something similar with the new DCC (coming soon!) and the ph_openiewindow function that allows you to open an IE object without scrollbars, titlebars, and will fill the entire screen. Check out the ph_openiewindow function in the latest 1.03.4.9 help file to see all the options.
Dave.
|
Back to Top |
|
|
krommetje Super User
Joined: December 29 2004 Location: Netherlands
Online Status: Offline Posts: 695
|
Posted: November 03 2006 at 23:44 | IP Logged
|
|
|
for testing purposes I made a workaround with a seperate html-file and javascript which opens a new screen and I added Overflow:hidden to the CSS file and that worked too. I would have never thought of an hypertext appliication when this is the easiest and best way to do this!! However when I open the page in the HTA then the scrollbars are back when I am sure the page is not too big.... this puzzles me .... I even tried to remove the CSS but still those blasted scrollbars...
Peter
Edited by krommetje - November 04 2006 at 00:35
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: November 04 2006 at 00:05 | IP Logged
|
|
|
The ph_openiewindow function seems to be MIA in my help file.
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: November 04 2006 at 00:45 | IP Logged
|
|
|
Dohh! I don't know how I missed that. Here is the link to the latest help file: http://power-home.com/download/ph-help.chm.
Let me know if you discover any other functions MIA.
Dave.
|
Back to Top |
|
|
smarty Super User
Joined: May 21 2006 Location: United States
Online Status: Offline Posts: 728
|
Posted: November 04 2006 at 08:55 | IP Logged
|
|
|
Anyone else have problems with this help file?
Seems I can open it, find commands, but the command details will not display. Maybe it's just me
Edited by smarty - November 04 2006 at 08:56
__________________ Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: November 04 2006 at 09:57 | IP Logged
|
|
|
Works fine here.
|
Back to Top |
|
|
smarty Super User
Joined: May 21 2006 Location: United States
Online Status: Offline Posts: 728
|
Posted: November 04 2006 at 11:42 | IP Logged
|
|
|
Tried it on another machine...still no luck.
XP Pro. All updates.. IE 6
__________________ Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: November 04 2006 at 16:03 | IP Logged
|
|
|
Interesting. I just deleted the help file from my local machine and created a shortcut to the file on my PH machine. No go, as you are seeing. I get this window first...
I copied it to my local machine, and it works!
Edited by TonyNo - November 04 2006 at 16:06
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: November 04 2006 at 17:40 | IP Logged
|
|
|
Looks like this is relevant...
You cannot open remote content by using the InfoTech protocol after you install security update 896358, security update 840315, or Windows Server 2003 Service Pack 1
http://support.microsoft.com/kb/896054
Edited by TonyNo - November 04 2006 at 17:41
|
Back to Top |
|
|
krommetje Super User
Joined: December 29 2004 Location: Netherlands
Online Status: Offline Posts: 695
|
Posted: November 06 2006 at 01:51 | IP Logged
|
|
|
Well I still don't know why these scrollbars just don't disappear, but I've made a workaround and defined the whole page a a table with a value of 4 .... Next week I will try to run the HTA on my father's PC outside my network with XP... perhaps it is a local ActiveX setting ...
Peter
|
Back to Top |
|
|
onhiatus Senior Member
Joined: May 12 2004 Location: United States
Online Status: Offline Posts: 279
|
Posted: November 08 2006 at 13:15 | IP Logged
|
|
|
You're getting scroll bars when the iframe has "Overflow:hidden;" in the style? If that's true, I'd look at what is the outermost container inside the iframe - sometimes it's difficult to tell where the scroll bars are coming from...
A couple more notes on HTAs in general - they get around a lot of security restrictions since the OS knows they are running on the local machine. For example, by writting a couple functions in the hta you can then have your html pages do local read/write disk access. It's also possible to use libraries / COM objects / etc. - fun stuff
|
Back to Top |
|
|
krommetje Super User
Joined: December 29 2004 Location: Netherlands
Online Status: Offline Posts: 695
|
Posted: November 11 2006 at 00:34 | IP Logged
|
|
|
I am a little bit in the dark here, when I call an empty I-Frame, still the scrollbars are there.
By the way: I would love to see examples of doing read/write access or use libraries or even start programmes like my OE inside an HTA, perhaps this I can use in my new touchscreen I am working on...
Peter
|
Back to Top |
|
|
krommetje Super User
Joined: December 29 2004 Location: Netherlands
Online Status: Offline Posts: 695
|
Posted: November 11 2006 at 08:36 | IP Logged
|
|
|
I've got thus far:
On the lower right-side you see a button called Outlook Express... that is called locally...
and here is the code for the HTA:
Code:
<HTML>
<HTA:APPLICATION
ID="Float"
APPLICATIONNAME="Float"
BORDER="none"
INNERBORDER ="no"
CAPTION="no"
ICON=""
SYSMENU="no"
SHOWINTASKBAR="no"
SINGLEINSTANCE="yes"
WINDOWSTATE="maximize"
SCROLL = "no"
/>
<HEAD>
<TITLE>Powerhome Main</TITLE>
<script language="VBScript">
Sub RunProgram
Const NORMAL_WINDOW = 1
Set objShell = CreateObject("Shell.Application")
objShell.ShellExecute "C:\Program Files\Outlook Express\MSIMN.EXE", "", , , NORMAL_WINDOW
End Sub
</script>
</head>
<body onload " ">
<DIV style="position:absolute;right:30px;top:475px;z-index:2" align="right">
<button onclick="RunProgram" style="background-color:white;border-color:red">Outlook Express</button> <p>
</DIV>
</body>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
var _oNetwork = new ActiveXObject("WScript.Network");
var _oShell = new ActiveXObject("WScript.Shell");
var _oFSO = new ActiveXObject("Scripting.FileSystemObject");
var _iFrameID = "myIFrame";
</SCRIPT>
</HEAD>
<BODY onLoad="" >
<IFRAME ID="myIFrame" WIDTH="100%" HEIGHT="100%" src="http://192.168.1.11/phindex.psp" style="overflow:hidden;"></IFRAME>
</BODY>
</html>
|
|
|
Any comments on what i've got up until now?
Peter
Edited by krommetje - November 11 2006 at 08:39
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: November 13 2006 at 15:49 | IP Logged
|
|
|
Peter,
You can make the screen in English so I can understand it...just kidding .
It looks really good. I like it alot.
Dave.
|
Back to Top |
|
|