HI,
I am using Iframes in my project .There are two jsps one is A.jsp another one is B.jsp In A.jsp I used iFrame to call B.jsp.The code will be as follows
A.jsp
B.Jsp
If I click the hyper link in A.jsp it is supposed to refresh the only the iFrame part.It is successfully refreshing the iFrame but entire page i.e content of both A.jsp and B.jsp is getting displayed in iFrame.
Can any one help me out in this issue.
Thanks ,
Mohan.
I am using Iframes in my project .There are two jsps one is A.jsp another one is B.jsp In A.jsp I used iFrame to call B.jsp.The code will be as follows
A.jsp
Code:
<html:html>
<head>
<script>
function fnGetData(){
document.forms[0].action="sample.do?method=getData";
document.forms[0].target = "RoFrame";
document.forms[0].method = "POST";
document.forms(0).submit();
}
</head>
<html:form action="/sample.do" method="post">
<table>
<tr>
<a href="javascript:fnGetData()">Click</a>
</tr>
<tr>
<td colspan="16" align=left >
<iframe id="RoFrame" name="RoFrame" src="sample.do?method=assign" height=250 width=980 >
</iframe>
</td>
</tr>
</html:form>
</html:html>
Code:
<html:html> <body> <html:form action="/sample.do" method="post"> ///Some presentation logic </html:form> </body> </html:html>
If I click the hyper link in A.jsp it is supposed to refresh the only the iFrame part.It is successfully refreshing the iFrame but entire page i.e content of both A.jsp and B.jsp is getting displayed in iFrame.
Can any one help me out in this issue.
Thanks ,
Mohan.
Comment