Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 182
  • Last Modified:

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
0
inverted_2000
Asked:
inverted_2000
1 Solution
 
inverted_2000Author 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()">
0
 
lennagyCommented:
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.

:)

0
 
GranModCommented:
PAQed with points refunded (300)

GranMod
Community Support Moderator
0

Featured Post

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now