We help IT Professionals succeed at work.

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

Medium Priority
205 Views
Last Modified: 2013-12-24
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
Comment
Watch Question

Author

Commented:
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()">

Commented:
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.

:)

Commented:
PAQed with points refunded (300)

GranMod
Community Support Moderator

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.