I have a map.asp page and zoominout.asp page. Each one is opened in separate frame. I have defined selmap session variable in map asp, and initialized it to address1.gif as following code:
======== map.asp ========================
<html>
<head>
<script language=javascript>
selectmap = "<%=Session("selmap"
%>";
if (selectmap ==""
{
<%Session("selmap"
="/RL_site/address1.gif" %>;
}
</script>
</head>
<body bgcolor=white >
<table width="90%"BORDER="0" cellspacing="0" cellpadding="0" >
<tr height=15></tr>
<tr >
<td width="4%"></td>
<td align=center> <IMG src=<%=Session("selmap"
%> width="531" height="644"> </td>
</tr>
</table>
</body>
</html>
I call the showMessage by using onclick event to refresh map.asp with a new map, but it does not show the new map! still the old value! Can you help, please. Thanks
======== part of zoopinout.asp ===================
<script langquage="javascript">
function showMessage() {
selectmap = "<%=Session("selmap"
%>";
if (selectmap == "/RL_site/address1.gif"
{
<% Session("selmap"
="/RL_site/address3.gif" %>;
parent.map.location.reload(true);
}
}
</script>
======== map.asp ========================
<html>
<head>
<script language=javascript>
selectmap = "<%=Session("selmap"
if (selectmap ==""
<%Session("selmap"
}
</script>
</head>
<body bgcolor=white >
<table width="90%"BORDER="0" cellspacing="0" cellpadding="0" >
<tr height=15></tr>
<tr >
<td width="4%"></td>
<td align=center> <IMG src=<%=Session("selmap"
</tr>
</table>
</body>
</html>
I call the showMessage by using onclick event to refresh map.asp with a new map, but it does not show the new map! still the old value! Can you help, please. Thanks
======== part of zoopinout.asp ===================
<script langquage="javascript">
function showMessage() {
selectmap = "<%=Session("selmap"
if (selectmap == "/RL_site/address1.gif"
<% Session("selmap"
parent.map.location.reload(true);
}
}
</script>