Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Firefox 3, JSP and IFRAME - Doesn't respond.

sanath_kOct 12 2008 — edited Oct 12 2008
Cheers experts !

I have two JSPs, working with IFRAMEs. Logic is simple, just to add every new number and show thus far sum.
No issues, this works excellent with IE, in FireFox 3, button click remains unresponded.
event is calling is alert is popped up, but result is nothing, unlike IE which works fine.
index.html is what executed first that includes a.jsp and b.jsp

index.html

<html>
<head>
<script language=javascript>
function fun()
{
alert('inside fun');
document.all.b.src="b.jsp?p="+document.frames[0].t.value;
}
</script>
</head>
<body>
<form name=x>
<input type=button value=submit onClick=fun()>
</form>
<iframe height=200 width=200 name="a" src="a.jsp"></iframe>
<iframe height=200 width=200 name="b" src="b.jsp"></iframe>
</body>
</html>

a.jsp

<html>
<body bgcolor=red>
<input type=textbox name=t>
</body>
</html>

b.jsp

<html>
<head>
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
</head>
<body bgcolor=green>
<%int a=0,p=0,s=0;%>
<%
p=Integer.parseInt(request.getParameter("p")==null?"0":request.getParameter("p"));
if (session.getAttribute("s") != null )
s=((Integer)session.getAttribute("s")).intValue();
a=p+s;
session.setAttribute("s",new Integer(a));
%>
<h3><%=p%> : <%=a%></h3>
</body>
</html>

Someone help me figuring out the issue here ? any rules to make something like this work in FF 3 !
Thanks in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 9 2008
Added on Oct 12 2008
8 comments
218 views