Link to home
Create AccountLog in
Avatar of inverted_2000
inverted_2000Flag for United States of America

asked on

ColdFusion - I need to create a link that will open a _blank in full screen mode

Hey eveyone,

This CF question could be done with using Java, but that is what I am trying to stay away from.  I've got a testing site and when the students log into the site they receive a list of the tests that they are scheduled to take.  In that list a button is presented that they can click on to start the test.  I would like the test to start in another full screen window that has No tool bars or anything.

How might I go about this:

<cfform name="startTest" action="student_StartTest.cfm" target="_blank">
<div align="center">
<input name="TS_ID" value="#TS_ID#" type="hidden">
<br>                          
<input type="Submit" value="Start">
</div>
</cfform>

Thanks a lot,
Chris
Avatar of inverted_2000
inverted_2000
Flag of United States of America image

ASKER

I figured it out...and I'll need to use JAVA to get it to work...but it does work (o:

I just called the function on the testing page once it started to load and it goes to full screen.

Please Close this question (o:

<SCRIPT>
function open_fullscreen() { window.open("student_StartTest.cfm", "", "height="+window.screen.availHeight+", width="+(window.screen.availWidth-10)+", top=0, left=0,fullscreen=yes");;}
function open_nobars() { window.open("index.html", "", "height="+window.screen.availHeight+", width="+(window.screen.availWidth-10)+", top=0, left=0, toolbar=no, status=no, scrollbars=no, location=no, menubar=no, directories=no, resizable=no");;}
function open_normal() { window.open("index.html", "", "height="+window.screen.availHeight+", width="+(window.screen.availWidth-10)+", top=0, left=0, toolbar=no, status=no, scrollbars=no, location=no, menubar=no, directories=no, resizable=no");;}
function window_close() { window.opener = self; window.close();}
</SCRIPT>

<body  onload="open_fullscreen()">
Avatar of lennagy
lennagy

Just so you know your terms, you said you used Java to solve you problem.  Technically you used Javascript.  While they share the same four characters in the language name 'java' , they are not the same language.  

Javascript is a browser-based language. Requires no plugins, code is intermingled as necessary with HTML.

Java, on the other hand, runs in a browser only within an applet frame, completely separate from Javascript and HTML. Most commonly, Java is used on the server side, rather than the browser, in .jsp pages.

As an educator, I'm sure you wish to convey the correct term when discussing your solution with your peers.

:)

ASKER CERTIFIED SOLUTION
Avatar of GranMod
GranMod

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer