Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

opening site in kiosk mode.

Posted on 2002-06-07
24
500 Views
Last Modified: 2013-12-24
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.?
0
Comment
Question by:jriver12
  • 13
  • 11
24 Comments
 
LVL 19

Expert Comment

by:cheekycj
ID: 7068715
you mean full screen mode...

You can use JavaScript to do this:

<script language="JavaScript"><!--
function full(url) {
    if (document.all) {
        window.open(url,'windowName','fullscreen=yes');
        return false;
    }
    return true;
}
//--></script>

<a href="default.htm" onClick="full(this.href)">Open full screen</a>

HTH,
CJ
0
 

Author Comment

by:jriver12
ID: 7069724
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.?
0
 
LVL 19

Expert Comment

by:cheekycj
ID: 7070164
here is some Microsoft info on the kiosk mode shortcuts:

http://support.microsoft.com/default.aspx?scid=kb;EN-US;q154780
0
Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

 

Author Comment

by:jriver12
ID: 7070176
cj im trying to use that code as an onload="full(this.href)" but get a 404 error what am I doing wrong.
0
 
LVL 19

Expert Comment

by:cheekycj
ID: 7070233
<script language="javascript">
function full(url) {
   if (document.all) {
       window.open(url,'windowName','fullscreen=yes');
       self.close();
   }
}

        self.close();
     }
</script>

<body onload="full(location.href);">

that should work.

CJ
0
 

Author Comment

by:jriver12
ID: 7070257
duh!
0
 
LVL 19

Expert Comment

by:cheekycj
ID: 7070263
:-)
0
 

Author Comment

by:jriver12
ID: 7070321
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,'windowName','fullscreen=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>
0
 
LVL 19

Expert Comment

by:cheekycj
ID: 7070347
try this:

  <html>
  <head>
  <title>test kiosk</title>
   <script language="javascript">
function full(url) {
 if (document.all) {
     window.open(url,'windowName','fullscreen=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
0
 

Author Comment

by:jriver12
ID: 7070407
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,'windowName','fullscreen=yes');
    self.close();
}
}
</script>
 
 

</head>

<body bgcolor="#FFFFCC" text="#000000" link="#000000" vlink="#000000" alink="#000000" onload="full(location.href);">


TEST
   
   

</body>
   </html>
0
 
LVL 19

Expert Comment

by:cheekycj
ID: 7070467
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.substring(1);
if (document.all && params.indexOf("full=1") != -1) {
   window.open(url,'windowName','fullscreen=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>
0
 

Author Comment

by:jriver12
ID: 7070706
syntax error near line 47,

there is no line 47?/?
0
 
LVL 19

Expert Comment

by:cheekycj
ID: 7070720
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.substring(1);
if (document.all && params.indexOf("full=1") != -1) {
  window.open(url,'windowName','fullscreen=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>
0
 

Author Comment

by:jriver12
ID: 7070767
no error but still not opening in full screen mode
0
 
LVL 19

Accepted Solution

by:
cheekycj earned 300 total points
ID: 7070815
My apologies my logic was off...

<html>
<head>
<title>test kiosk</title>
<script language="javascript">
function full(url) {
var params = window.location.search.substring(1);

if (document.all && params.indexOf("full=1") == -1) {
 window.open(url,'windowName','fullscreen=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>


instead of opening full screen when full parameter doesn't exist I was opening full screen when full param existed.

That was my mistake.

CJ
0
 

Author Comment

by:jriver12
ID: 7070896
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.?
0
 
LVL 19

Expert Comment

by:cheekycj
ID: 7070927
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
0
 

Author Comment

by:jriver12
ID: 7070957
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
0
 

Author Comment

by:jriver12
ID: 7071077
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?
0
 

Author Comment

by:jriver12
ID: 7071303
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.appVersion.substring(navigator.appVersion.indexOf('.')-1,navigator.appVersion.length));
if((navigator.appVersion.indexOf("Mac")!=-1) &&(navigator.userAgent.indexOf("MSIE")!=-1) &&(parseInt(navigator.appVersion)==4))
window.open(other,"sub",'scrollbars=yes');
if (target >= 4){
     if (navigator.appName=="Netscape"){
    var MachakFull=window.open(other,"MachakFull",'scrollbars=yes','width='+x+',height='+y+',top=0,left=0');
     MachakFull.moveTo(0,0);
     MachakFull.resizeTo(x,y);}
if (navigator.appName=="Microsoft Internet Explorer")
     window.open(Ie,"MachakFull","fullscreen=yes");
     }
     else window.open(other,"sub",'scrollbars=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.
0
 
LVL 19

Expert Comment

by:cheekycj
ID: 7072953
ok.. I see.. it also is cross browser.  which is good.

MM's site does have some useful resources doesn't it.

CJ
0
 

Author Comment

by:jriver12
ID: 7072962
thanks for the time and great suggestions as usual.

:)
0
 
LVL 19

Expert Comment

by:cheekycj
ID: 7072974
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.
0
 

Author Comment

by:jriver12
ID: 7072980
take your time,
like I said that one I have been trying to get to work at 100% for about a year now.:()
0

Featured Post

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how to setup ssl access to internal local machine 4 120
WEB Service vs ??? 7 121
Has my website been infiltrated? 21 68
Webserver access problem 5 75
Turn A Profile Picture Into A Cartoon Using Photoshop And Illustrator This tutorial will teach you how to make a cartoon style image out of a regular picture. I have tried to keep the tutorial as simple as possible. I used Adobe CS4 for this tuto…
Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question