Dear all,
I am stuck at this problem. I've got 2 iframes open in one html page, one I shall call "IFrameTop" and the other one I shall call "IFrameBottom". I've also put "history.back()" in a link called BACK in IFrameBottom.
However, right after everytime I click on any link in IFrameTop(the focus is on IFrameTop), and I then click the BACK link in IFrameBottom, the link will make IFrameTop go back instead of IFrameBottom.
Can someone please help me. I am stuck here. I realize that this happens in IE 5.5 but not IE 5.0.
Thanks a lot for your help, people!
ckleow
Below is my code;
-----------------
<html>
<head>
<title>zoomFinance:Article Preview</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<script language="JavaScript">
self.name = "this";
function goBack() {
history.back();
}
</script>
<%@ include file="../scripts/jscode.js" %>
<table width="750" height="100%" cellspacing="3" cellpadding="3" bgcolor="#2B2B2B">
<tr>
<td colspan="4">
<div>
<table width="98%" border="0" align="center" height="100%">
<tr>
-------------------------------
Below is the BACK link...
-------------------------------
<td>
<img border="0" src="<%= IMAGE_BASE_URL %>icon_add.gif"><font size="2" face="Arial, Helvatica, sans-serif" color="#FFFFFF">
<a href="JavaScript:goBack();" class="headline">back</font></a>
------------------------------
</td>
</tr>
<tr>
<td>
<% if (strThumb[0].length() > 0) { %>
<img src="<%= strThumb[0] %>" align="left" valign="top">
<% } %>
<div>
<font size="2" face="Arial, Helvatica, sans-serif" color="#FFFFFF"><strong><%= strHeadline %></strong></font>
<font size="2" face="Verdana, Arial, Helvatica, sans-serif" color="#FFFFFF">
<!-- by <strong><a href="<%= toSource %>" target="mnSrcInfo" onClick="javascript: goInfoPage('mnSrcInfo','<%= toSource %>'); return false;" class="headline"><%= strDisplay %></a></strong>,-->
<%= formatBean.formatDate(dtCreated) %>
<hr size="1">
</font>
</div>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td colspan="4"> <font size="2" face="Verdana, Arial, Helvatica, sans-serif" color="#FFFFFF">
</font>
<table width="98%" border="0" height="100%" align="center">
<tr>
<td>
<font size="2" face="Verdana, Arial, Helvatica, sans-serif" color="#FFFFFF">
<%--
<% if (strSummary.length() > 1) { %>
<br>
<%= formatBean.formatText(strSummary) %><br>
<% } %>
--%>
<%= formatBean.formatContent(strContent, "MN", strThumb, strImage, strCaption, ""
%>
</font>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<img border="0" src="<%= IMAGE_BASE_URL %>icon_add.gif"><font size="2" face="Arial, Helvatica, sans-serif" color="#FFFFFF">
<a href="JavaScript:goBack();" class="headline">back</font></a>
</td>
</tr>
</table>
</body>
</html>
---------------
I am stuck at this problem. I've got 2 iframes open in one html page, one I shall call "IFrameTop" and the other one I shall call "IFrameBottom". I've also put "history.back()" in a link called BACK in IFrameBottom.
However, right after everytime I click on any link in IFrameTop(the focus is on IFrameTop), and I then click the BACK link in IFrameBottom, the link will make IFrameTop go back instead of IFrameBottom.
Can someone please help me. I am stuck here. I realize that this happens in IE 5.5 but not IE 5.0.
Thanks a lot for your help, people!
ckleow
Below is my code;
-----------------
<html>
<head>
<title>zoomFinance:Article Preview</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<script language="JavaScript">
self.name = "this";
function goBack() {
history.back();
}
</script>
<%@ include file="../scripts/jscode.js" %>
<table width="750" height="100%" cellspacing="3" cellpadding="3" bgcolor="#2B2B2B">
<tr>
<td colspan="4">
<div>
<table width="98%" border="0" align="center" height="100%">
<tr>
-------------------------------
Below is the BACK link...
-------------------------------
<td>
<img border="0" src="<%= IMAGE_BASE_URL %>icon_add.gif"><font size="2" face="Arial, Helvatica, sans-serif" color="#FFFFFF">
<a href="JavaScript:goBack();" class="headline">back</font></a>
------------------------------
</td>
</tr>
<tr>
<td>
<% if (strThumb[0].length() > 0) { %>
<img src="<%= strThumb[0] %>" align="left" valign="top">
<% } %>
<div>
<font size="2" face="Arial, Helvatica, sans-serif" color="#FFFFFF"><strong><%= strHeadline %></strong></font>
<font size="2" face="Verdana, Arial, Helvatica, sans-serif" color="#FFFFFF">
<!-- by <strong><a href="<%= toSource %>" target="mnSrcInfo" onClick="javascript: goInfoPage('mnSrcInfo','<%= toSource %>'); return false;" class="headline"><%= strDisplay %></a></strong>,-->
<%= formatBean.formatDate(dtCreated) %>
<hr size="1">
</font>
</div>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td colspan="4"> <font size="2" face="Verdana, Arial, Helvatica, sans-serif" color="#FFFFFF">
</font>
<table width="98%" border="0" height="100%" align="center">
<tr>
<td>
<font size="2" face="Verdana, Arial, Helvatica, sans-serif" color="#FFFFFF">
<%--
<% if (strSummary.length() > 1) { %>
<br>
<%= formatBean.formatText(strSummary) %><br>
<% } %>
--%>
<%= formatBean.formatContent(strContent, "MN", strThumb, strImage, strCaption, ""
</font>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<img border="0" src="<%= IMAGE_BASE_URL %>icon_add.gif"><font size="2" face="Arial, Helvatica, sans-serif" color="#FFFFFF">
<a href="JavaScript:goBack();" class="headline">back</font></a>
</td>
</tr>
</table>
</body>
</html>
---------------