View Full Version : Javascript passes applet parameter fine in FF and Chrome but not IE

01-24-2011, 11:32 PM
I am trying to pass a screen resolution parameter to a java applet so that it will appear in full screen mode when it launches. This is working fine in Firefox and Chrome but not in IE8. Here is the code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script type="text/javascript">
function getresolution() {
var yourres = screen.width + 'x' + screen.height;
document.write('<param name="geometry" value="' + yourres + '">');
<applet name='rdp' code='com.elusiva.rdp.applet.RdpApplet' archive='JavaRDP16-1.1.jar' codebase='.' width='1' height='1'>
<param name='server' value='XXXXXXXXXX'>
<param name='port' value='3389'>
<param name='shell' value='C:\seamlessrdp\seamlessrdpshell.exe -s C:\Program%20Files%20(x86)\TRAMS\CBplus\CBplus.exe'>
<script type="text/javascript">getresolution();</script>

Any help on this would be much appreciated!

01-25-2011, 07:05 PM
Anybody have any ideas on this? Did I not give enough information?

01-25-2011, 07:14 PM
matthewjamesr - applet is part of java not javascript. Are you in the right form? Also applet is deprecated. See: