[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.4

Upon browser close CPU spikes 100% and stays till all IE browser windows are closed

Asked by veepee09 in JavaScript, J2EE, Plug Ins

Tags: Javascript, Java, IE 6.0

My application uses a JSP/Javascript to launch applet within browser (IE 6) window. Upon closing the browser running the applet, the window closes fine, but immediately the CPU spikes to 100%. It stays that way till all IE windows are closed and then CPU usage becomes normal. This happened after JRE upgrade from 1.4.2_13 to 1.6.0_05. I tested with 1.5.0_11, 1.6.0_x and have the same problem. It works perfectly fine (window close with no CPU spike) with 1.4.2_13.

I have attached the JSP/Javascript code. Applet class is a huge java class(lots of functionality) which basically extends JApplet. If you want I can attach it too. Let me know.

I have tried lots of options like: Using plain Applet instead of JApplet, Changing innerHTML of applet tag, but non seems to work.

I would appreciate any help from experts. There is a company wide need to upgrade to 1.6.x JRE. Please help.

Thanks
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
JSP code:
------------------------------
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<html:html>
<HEAD>
<%@ page 
language="java"
import="com.abcdef.RaiderConstants, com.abcdef.ConfigManager"
contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"
%>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Page-Enter" content="progid:DXImageTransform.Microsoft.Fade(duration=0)" />
<META name="GENERATOR" content="IBM WebSphere Studio">
<TITLE>Raider Detail</TITLE>
 
<SCRIPT LANGUAGE="JavaScript">
 
function maximizeWindow(){	
	if (window.screen)
	{
		var w=screen.availWidth;
		var h=screen.availHeight;
		window.resizeTo(w,h);		
	}
}
 
function handleExitEvent()
{
	var isDataChanged = false;
 
	//call DetailScreenApplet method to check if unsaved changes exists
	isDataChanged = DetailScreenApplet.checkDataChange();
 
	if (isDataChanged == false)
	{
		window.close();
	}
	else
	{
		isDataChanged = false;
		return "You have uncommitted changes";
	}
 
}
 
function closeDetailWindow() {
	try {
		window.close();
	}
	catch (e)
	{
	}
}
 
window.onbeforeunload = handleExitEvent;
 
function setInitialFocus(){	
	DetailScreenApplet.setInitialFocus();	
}
 
</SCRIPT>
 
</HEAD>
 
<BODY leftmargin="0" rightmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#787878" onload="setInitialFocus();maximizeWindow();" >
 
<%
String env = System.getProperty("APP_ENV");
ConfigManager configMgr = ConfigManager.getInstance();
String appType = configMgr.getProperty(RaiderConstants.RAIDER_EAR_ENTITY_NAMESPACE, RaiderConstants.RAIDER_EAR_ENTITY_TYPE);
%> 
<form method=post action="detail.do?method=cleanupCache" name="DetailForm">
	<html:hidden name='flightLegDetailFormBean' property='detailWinId'/>
	<input type="hidden" name="applicationType" value="<%=appType%>">
	<input type="hidden" name="deploymentEnv" value="<%=env%>">
</form> 
 
<script>
var  screenHeight = 0;
var screenWidth = 0;
var jsAppType = document.DetailForm.applicationType.value;
var jsDeploymentEnv = document.DetailForm.deploymentEnv.value;
 
 
screenHeight = screen.height;
screenWidth = screen.width;
 
if(screenHeight == 1024 && screenWidth == 1280){
	screenHeight = 960;
	screenWidth = 1250;
}else if(screenHeight == 768 && screenWidth == 1024){
	screenHeight = 708;
	screenWidth = 995;
} else {
	alert("Screen resolution not supported, Please set screen resolution to 1280X1024 or 1024X768");
	screenHeight = 960;
	screenWidth = 1250;
}
 
document.write("<OBJECT classid = 'clsid:8AD9C840-044E-11D1-B3E9-00805F499D93'id='dtlApplet' ");
document.write("codebase = 'http://java.sun.com/update/1.6.0/jinstall-6-windows-i586.cab'");
document.write("WIDTH = " + screenWidth + " HEIGHT = " + screenHeight + " NAME = 'DetailScreenApplet' tabindex='1' >");
document.write("<PARAM NAME = 'CODE' VALUE = 'com.abcdef.DetailScreenApplet.class' >");
document.write("<PARAM NAME = 'CODEBASE' VALUE = '<bean:write name='flightLegDetailFormBean' property='codeBase'/>' >");
document.write("<PARAM NAME = 'ARCHIVE' VALUE = 'graph.jar, raiderSignedApplet.jar' >");
document.write("<PARAM NAME = 'NAME' VALUE = 'DetailScreenApplet' >");
document.write("<PARAM NAME = 'type' VALUE = 'application/x-java-applet;version=1.6'>");
document.write("<PARAM NAME = 'scriptable' VALUE = 'true'>");
document.write("<PARAM NAME = 'link' VALUE='<bean:write name='flightLegDetailFormBean' property='link'/>' >");
document.write("<PARAM NAME = 'userId' VALUE = '<bean:write name='flightLegDetailFormBean' property='userId'/>' >");
document.write("<PARAM NAME = 'detailWindowId' VALUE = '<bean:write name='flightLegDetailFormBean' property='detailWinId'/>' >");
document.write("<PARAM name = 'boxbgcolor' value='#787878'>");
document.write("<PARAM name = 'screenHeight' value=' " + screenHeight + " ' >");
document.write("<PARAM name = 'screenWidth' value=' " + screenWidth + " ' >");
document.write("<PARAM name = 'applicationType' value=' " + jsAppType + " ' >");
document.write("<PARAM name = 'deploymentEnv' value=' " + jsDeploymentEnv + " ' >");
document.write("<COMMENT>");
document.write("</COMMENT>");
document.write("</OBJECT>");
 
document.getElementById("dtlApplet").focus();
</script>
 
</BODY>
</html:html>
------------------------------
[+][-]03/14/08 09:26 AM, ID: 21126921Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/14/08 09:51 AM, ID: 21127136Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/14/08 02:06 PM, ID: 21129559Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/14/08 02:22 PM, ID: 21129689Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/14/08 02:49 PM, ID: 21129905Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/17/08 06:30 AM, ID: 21141908Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/17/08 07:07 AM, ID: 21142229Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/17/08 09:42 AM, ID: 21143849Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/21/08 12:42 PM, ID: 21182554Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/21/08 01:44 PM, ID: 21183035Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]03/28/08 06:57 AM, ID: 21230396Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/04/08 08:42 AM, ID: 21282899Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: JavaScript, J2EE, Plug Ins
Tags: Javascript, Java, IE 6.0
Sign Up Now!
Solution Provided By: veepee09
Participating Experts: 1
Solution Grade: A
 
 
Loading Advertisement...
20091111-EE-VQP-89 - Hierarchy / EE_QW_2_20070628