Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help about "location.reload(true) "

Status
Not open for further replies.

jrazi

Programmer
Mar 28, 2002
1
0
0
US
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 = &quot;<%=Session(&quot;selmap&quot;)%>&quot;;
if (selectmap ==&quot;&quot;) {
<%Session(&quot;selmap&quot;)=&quot;/RL_site/address1.gif&quot; %>;
}

</script>
</head>
<body bgcolor=white >
<table width=&quot;90%&quot;BORDER=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; >
<tr height=15></tr>
<tr >
<td width=&quot;4%&quot;></td>
<td align=center> <IMG src=<%=Session(&quot;selmap&quot;) %> width=&quot;531&quot; height=&quot;644&quot;> </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=&quot;javascript&quot;>
function showMessage() {
selectmap = &quot;<%=Session(&quot;selmap&quot;)%>&quot;;
if (selectmap == &quot;/RL_site/address1.gif&quot;){
<% Session(&quot;selmap&quot;)=&quot;/RL_site/address3.gif&quot; %>;
parent.map.location.reload(true);
}
}
</script>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top