jriver12
asked on
opening site in kiosk mode.
here we go!
as we all know iexlore -k www.yourwebspace.com
will open an instance of explorer in kiosk mode.
this is the perfect mode for stuborn users, this takes all navigation and chrome away from the all unknowing user.
this is the question.
how can I run this iexlore -k www.yourwebspace.com in coldfusion.
refrase how to run cmd line scripts on a coldfusion page and or site.?
as we all know iexlore -k www.yourwebspace.com
will open an instance of explorer in kiosk mode.
this is the perfect mode for stuborn users, this takes all navigation and chrome away from the all unknowing user.
this is the question.
how can I run this iexlore -k www.yourwebspace.com in coldfusion.
refrase how to run cmd line scripts on a coldfusion page and or site.?
ASKER
cj,
that is exactly what I was looking for.
is there a keyboard key combonation that would allow the user to minimize as well as maximize the browser as needed.?
that is exactly what I was looking for.
is there a keyboard key combonation that would allow the user to minimize as well as maximize the browser as needed.?
here is some Microsoft info on the kiosk mode shortcuts:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q154780
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q154780
ASKER
cj im trying to use that code as an onload="full(this.href)" but get a 404 error what am I doing wrong.
<script language="javascript">
function full(url) {
if (document.all) {
window.open(url,'windowNam e','fullsc reen=yes') ;
self.close();
}
}
self.close();
}
</script>
<body onload="full(location.href );">
that should work.
CJ
function full(url) {
if (document.all) {
window.open(url,'windowNam
self.close();
}
}
self.close();
}
</script>
<body onload="full(location.href
that should work.
CJ
ASKER
duh!
:-)
ASKER
error:
object expected error:
I cant find it.(as usual)
<html>
<head>
<title>test kiosk</title>
<script language="javascript">
function full(url) {
if (document.all) {
window.open(url,'windowNam e','fullsc reen=yes') ;
self.close();
}
}
self.close();
}
</script>
</head>
<body bgcolor="#FFFFCC" text="#000000" link="#000000" vlink="#000000" alink="#000000" onload="full(location.href );">
TEST
</body>
</html>
object expected error:
I cant find it.(as usual)
<html>
<head>
<title>test kiosk</title>
<script language="javascript">
function full(url) {
if (document.all) {
window.open(url,'windowNam
self.close();
}
}
self.close();
}
</script>
</head>
<body bgcolor="#FFFFCC" text="#000000" link="#000000" vlink="#000000" alink="#000000" onload="full(location.href
TEST
</body>
</html>
try this:
<html>
<head>
<title>test kiosk</title>
<script language="javascript">
function full(url) {
if (document.all) {
window.open(url,'windowNam e','fullsc reen=yes') ;
self.close();
}
}
</script>
</head>
<body bgcolor="#FFFFCC" text="#000000" link="#000000" vlink="#000000" alink="#000000" onload="full(location.href );">
TEST
</body>
</html>
You had an extra:
self.close();
}
in the script code.
CJ
<html>
<head>
<title>test kiosk</title>
<script language="javascript">
function full(url) {
if (document.all) {
window.open(url,'windowNam
self.close();
}
}
</script>
</head>
<body bgcolor="#FFFFCC" text="#000000" link="#000000" vlink="#000000" alink="#000000" onload="full(location.href
TEST
</body>
</html>
You had an extra:
self.close();
}
in the script code.
CJ
ASKER
tried that and onload it prompts me that the window I am viewing is trying to close.
if I say yes the browser closes if I say no the browser opens in browser view(with chrome.
so I tried changing the self.close(); to self.open ();
and got stuck in an infinate loop of windows opening in fullscreen.?
<html>
<head>
<title>test kiosk</title>
<script language="javascript">
function full(url) {
if (document.all) {
window.open(url,'windowNam e','fullsc reen=yes') ;
self.close();
}
}
</script>
</head>
<body bgcolor="#FFFFCC" text="#000000" link="#000000" vlink="#000000" alink="#000000" onload="full(location.href );">
TEST
</body>
</html>
if I say yes the browser closes if I say no the browser opens in browser view(with chrome.
so I tried changing the self.close(); to self.open ();
and got stuck in an infinate loop of windows opening in fullscreen.?
<html>
<head>
<title>test kiosk</title>
<script language="javascript">
function full(url) {
if (document.all) {
window.open(url,'windowNam
self.close();
}
}
</script>
</head>
<body bgcolor="#FFFFCC" text="#000000" link="#000000" vlink="#000000" alink="#000000" onload="full(location.href
TEST
</body>
</html>
duh... oops.. got to put a check to make sure that it is not already in full screen mode.
try this:
html>
<head>
<title>test kiosk</title>
<script language="javascript">
function full(url) {
var params = window.location.search.sub string(1);
if (document.all && params.indexOf("full=1") != -1) {
window.open(url,'windowNam e','fullsc reen=yes') ;
self.close();
}
}
</script>
</head>
<body bgcolor="#FFFFCC" text="#000000" link="#000000" vlink="#000000" alink="#000000" onload="full(location.href + "?full=1");">
TEST
</body>
</html>
try this:
html>
<head>
<title>test kiosk</title>
<script language="javascript">
function full(url) {
var params = window.location.search.sub
if (document.all && params.indexOf("full=1") != -1) {
window.open(url,'windowNam
self.close();
}
}
</script>
</head>
<body bgcolor="#FFFFCC" text="#000000" link="#000000" vlink="#000000" alink="#000000" onload="full(location.href
TEST
</body>
</html>
ASKER
syntax error near line 47,
there is no line 47?/?
there is no line 47?/?
oops I think I know the problem try this:
<html>
<head>
<title>test kiosk</title>
<script language="javascript">
function full(url) {
var params = window.location.search.sub string(1);
if (document.all && params.indexOf("full=1") != -1) {
window.open(url,'windowNam e','fullsc reen=yes') ;
self.close();
}
}
</script>
</head>
<body bgcolor="#FFFFCC" text="#000000" link="#000000" vlink="#000000" alink="#000000" onload="full(location.href
+ '?full=1');">
TEST
</body>
</html>
<html>
<head>
<title>test kiosk</title>
<script language="javascript">
function full(url) {
var params = window.location.search.sub
if (document.all && params.indexOf("full=1") != -1) {
window.open(url,'windowNam
self.close();
}
}
</script>
</head>
<body bgcolor="#FFFFCC" text="#000000" link="#000000" vlink="#000000" alink="#000000" onload="full(location.href
+ '?full=1');">
TEST
</body>
</html>
ASKER
no error but still not opening in full screen mode
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
cj,
that worked (as usual)
however is there a way to get rid of the prompt box that comes up.
is there a way for it to automaticaly open in full screen without prompting.?
that worked (as usual)
however is there a way to get rid of the prompt box that comes up.
is there a way for it to automaticaly open in full screen without prompting.?
the prompt comes up b/c you are trying to close the main window.
The only way not to get the prompt is not close the main (parent) window.
CJ
The only way not to get the prompt is not close the main (parent) window.
CJ
ASKER
is there a way to do it with out having a parent to close?
if not.
hows this idea?
have 3 pages.
one that will say
you need to click yes to proceed. (example)
if they click not they will go to a page that says
you are not authorized.
but if they click yes
the parent closes and the desired url/page is displayed in full screen
if not.
hows this idea?
have 3 pages.
one that will say
you need to click yes to proceed. (example)
if they click not they will go to a page that says
you are not authorized.
but if they click yes
the parent closes and the desired url/page is displayed in full screen
ASKER
cj,
lets stick with the original script of having a text link.
can close the parent once the child is loaded without permission.
or keep the parent in the same page where the text link is?
lets stick with the original script of having a text link.
can close the parent once the child is loaded without permission.
or keep the parent in the same page where the text link is?
ASKER
got it cj!
found an extension on macromedia,
here is what I ended up with
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--
function MachakFull(Ie,other){
//Copyright © 1999 m.milicevic machakjoe@netscape.net jjooee@tip.nl
x=screen.availWidth;
y=screen.availHeight;
target = parseFloat(navigator.appVe rsion.subs tring(navi gator.appV ersion.ind exOf('.')- 1,navigato r.appVersi on.length) );
if((navigator.appVersion.i ndexOf("Ma c")!=-1) &&(navigator.userAgent.ind exOf("MSIE ")!=-1) &&(parseInt(navigator.appV ersion)==4 ))
window.open(other,"sub",'s crollbars= yes');
if (target >= 4){
if (navigator.appName=="Netsc ape"){
var MachakFull=window.open(oth er,"Machak Full",'scr ollbars=ye s','width= '+x+',heig ht='+y+',t op=0,left= 0');
MachakFull.moveTo(0,0);
MachakFull.resizeTo(x,y);}
if (navigator.appName=="Micro soft Internet Explorer")
window.open(Ie,"MachakFull ","fullscr een=yes");
}
else window.open(other,"sub",'s crollbars= yes');
}
//-->
</script>
<cfset pagecaption="Please select where you would like to go.">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<cfinclude template="htmlheader.cfm">
<p>After you make your selection you will be asked to login if your previous session has expired.</p>
<br>
<a href="#" onclick="MachakFull('index .cfm','')" >go in</a>
<cfinclude template="htmlfooter.cfm">
</body>
</html>
thanks man
a lil push in the right direction goes a long way.
found an extension on macromedia,
here is what I ended up with
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--
function MachakFull(Ie,other){
//Copyright © 1999 m.milicevic machakjoe@netscape.net jjooee@tip.nl
x=screen.availWidth;
y=screen.availHeight;
target = parseFloat(navigator.appVe
if((navigator.appVersion.i
window.open(other,"sub",'s
if (target >= 4){
if (navigator.appName=="Netsc
var MachakFull=window.open(oth
MachakFull.moveTo(0,0);
MachakFull.resizeTo(x,y);}
if (navigator.appName=="Micro
window.open(Ie,"MachakFull
}
else window.open(other,"sub",'s
}
//-->
</script>
<cfset pagecaption="Please select where you would like to go.">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<cfinclude template="htmlheader.cfm">
<p>After you make your selection you will be asked to login if your previous session has expired.</p>
<br>
<a href="#" onclick="MachakFull('index
<cfinclude template="htmlfooter.cfm">
</body>
</html>
thanks man
a lil push in the right direction goes a long way.
ok.. I see.. it also is cross browser. which is good.
MM's site does have some useful resources doesn't it.
CJ
MM's site does have some useful resources doesn't it.
CJ
ASKER
thanks for the time and great suggestions as usual.
:)
:)
no prob, just happy I could help in some way. Thanx for the "A".
CJ
BTW: The other problem.. I haven't gotten time to look at it yet.. I will hopefully take a look today.
CJ
BTW: The other problem.. I haven't gotten time to look at it yet.. I will hopefully take a look today.
ASKER
take your time,
like I said that one I have been trying to get to work at 100% for about a year now.:()
like I said that one I have been trying to get to work at 100% for about a year now.:()
You can use JavaScript to do this:
<script language="JavaScript"><!--
function full(url) {
if (document.all) {
window.open(url,'windowNam
return false;
}
return true;
}
//--></script>
<a href="default.htm" onClick="full(this.href)">
HTH,
CJ