[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.4

urgent - Browser back buttom problems

Asked by mapy in JavaScript

Tags: back, javascript, html

Hi,
I'll ask this question again. I have a web page with a list of cities. so, when the user clicks on one of the cities the asigned div shows fine. My question is: When you click the back button on your browser the div description stays there. How can i make it to hide? or how can i make it to refresh when a user clicks the back buttom?

Please see my code. You can copy it and check it out. and you will see what i mean.

Thank you,


<html>
<head>
<title>TCP Schedule</title>
<style type="text/css">
.hiddenName {
display: none;
}
</style>
<script type="text/javascript" language="javascript">
function display(selval) {
 divs = document.getElementsByTagName('div');
 for (i=0;i<divs.length;i++)
   if (divs[i].id == selval) {
     divs[i].style.display = 'block';
     divs[i].focus();
   } else {
     if(divs[i].className == "hiddenName")
       divs[i].style.display = 'none';
   }
}
</script>
</head>

<body onLoad="display('dummy')">
<a href="portal/template/TCP_Schedule.jsp">Region Map</a><img src="arroworange.gif" width="19" height="14">Vancouver Island
    <table width="500" align="center" cellspacing="20">
    <tr><td colspan="3">Select a town or city in this region. If you have selected an incorrect region,
     go back to the <a href="portal/template/TCP_Schedule.jsp">Region Map</a>.  
    <img src="tcp_icon.jpg"> This symbol indicates that the town or city has one or more TCP courses listed. <br><br><br></td></tr>
   
     <tr><td width="200" valign="top">    
     <ul>          
<li>Bamfield</li>
<li>Bella Coola</li>
<li>Campbell River</li>  
<li>Chemainus</li>
<li>Colwood</li>
<li>Comox</li>
<li>Courtenay</li>  
<li>Cumberland</li>  
<li><a href="#Dunc" onClick="display('DUN')">Duncan</a><img src="tcp_icon.jpg"></li>
<li>Esquimalt </li>
<li>Gabriola Island</li>
<li>Galiano Island</li>
<li>Gibsons</li>    
<li>Gold River</li>
<li>Hagensborg</li>  
<li>Ladysmith</li>
<li>Lake Cowichan</li>
<li>Langford</li>
<li>Lund</li>
<li>Metchosin</li>
<li><a href="#Nanaimo" onClick="display('NAN')">Nanaimo</a><img src="tcp_icon.jpg"></li>
</ul>
</td>
<td width="230" valign="top">
<ul>
<li>North Cowichan</li>
<li>Oak Bay</li>
<li>Ocean Falls</li>
<li>Parksville</li>  
<li><a href="#Port" onClick="display('POR')">Port Alberni</a><img src="tcp_icon.jpg"></li>
<li>Port Alice</li>
<li>Port Hardy</li>
<li>Port McNeill</li>  
<li>Powell River</li>  
<li>Quadra Island</li>  
<li>Qualicum Beach</li>
<li><a href="#Saanich" onClick="display('SAA')">Saanich</a><img src="tcp_icon.jpg"></li>
<li>Salt Spring Island</li>
<li>Sidney</li>  
<li>Sointula</li>  
<li>Sooke</li>
<li>Tofino</li>
<li>Ucluelet</li>
<li>Victoria</li>  
<li>View Royal</li>
<li>Zeballos</li>
</ul>
</td></tr></table>    
<BR><BR><BR>

<div id="dummy" class="hiddenName">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</div>

<div id="DUN" class="hiddenName"><a name="Dunc"></a>
<table align="center" cellpadding="0" cellspacing="0" border="0">
<tr><td valign=top><b>Instructor:</b></td><td>John R. Marriott</td></tr>
<tr><td valign=top><b>Date:</b></td><td>October 18 to October 19, 2003</td></tr>
<tr><td valign=top><b>Time:</b></td><td>9:00am - 5:00pm</td> </tr>
<tr><td valign=top><b>Location:</b></td> <td>Malaspina University College<br>
                            222 Cowichan Way<br>
                            Duncan, BC<br>
<tr><td valign=top><b>Room:</b></td><td>162</td></tr>
<tr><td valign=top><b>Registration Info:</b></td><td>(250)746-3519</td></tr>
<tr><td colspan=2><hr></td></tr>
</table>
</div>

<div id="NAN" class="hiddenName"><a name="Nanaimo"></a>
<table align="center" cellpadding="0" cellspacing="0" border="0">
<tr><td valign=top><b>Instructor:</b></td><td>Margaret Landry</td></tr>
<tr><td valign=top><b>Date:</b></td><td>August 9 to August 10, 2003</td></tr>
<tr><td valign=top><b>Time:</b></td><td>9:00am - 4:00pm</td> </tr>
<tr><td valign=top><b>Location:</b></td> <td>Nanaimo Days Inn<br>
                            809 Island Highway<br>
                            Nananimo, BC<br>
<tr><td valign=top><b>Room:</b></td><td>Gabriola</td></tr>
<tr><td valign=top><b>Phone:</b></td><td>(250)754-8171</td></tr>
<tr><td colspan=2><hr></td></tr>

<tr><td valign=top><b>Instructor:</b></td><td>Margaret Landry</td></tr>
<tr><td valign=top><b>Date:</b></td><td>September 27 to September 28, 2003</td></tr>
<tr><td valign=top><b>Time:</b></td><td>9:00am - 4:00pm</td> </tr>
<tr><td valign=top><b>Location:</b></td> <td>Nanaimo Days Inn<br>
                            809 Island Highway<br>
                            Nananimo, BC<br>
<tr><td valign=top><b>Room:</b></td><td>Gabriola</td></tr>
<tr><td valign=top><b>Phone:</b></td><td>(250)754-8171</td></tr>
<tr><td colspan=2><hr></td></tr>

<tr><td valign=top><b>Instructor:</b></td><td>Margaret Landry</td></tr>
<tr><td valign=top><b>Date:</b></td><td>October 18 to October 19, 2003</td></tr>
<tr><td valign=top><b>Time:</b></td><td>9:00am - 4:00pm</td> </tr>
<tr><td valign=top><b>Location:</b></td> <td>Nanaimo Days Inn<br>
                            809 Island Highway<br>
                            Nananimo, BC<br>
<tr><td valign=top><b>Room:</b></td><td>Gabriola</td></tr>
<tr><td valign=top><b>Phone:</b></td><td>(250)754-8171</td></tr>
<tr><td colspan=2><hr></td></tr>

<tr><td valign=top><b>Instructor:</b></td><td>John R. Marriott</td></tr>
<tr><td valign=top><b>Date:</b></td><td>October 25 to October 26, 2003</td></tr>
<tr><td valign=top><b>Time:</b></td><td>9:00am - 5:00pm</td> </tr>
<tr><td valign=top><b>Location:</b></td> <td>Malaspina University College<br>
                            5th Street<br>
                            Nanaimo, BC<br>
<tr><td valign=top><b>Room:</b></td><td>162</td></tr>
<tr><td valign=top><b>Registration Info:</b></td><td>(250)740-6323</td></tr>
<tr><td colspan=2><hr></td></tr>

<tr><td valign=top><b>Instructor:</b></td><td>Margaret Landry</td></tr>
<tr><td valign=top><b>Date:</b></td><td>November 8 to November 9, 2003</td></tr>
<tr><td valign=top><b>Time:</b></td><td>9:00am - 4:00pm</td> </tr>
<tr><td valign=top><b>Location:</b></td> <td>Nanaimo Days Inn<br>
                            809 Island Highway<br>
                            Nananimo, BC<br>
<tr><td valign=top><b>Room:</b></td><td>Gabriola</td></tr>
<tr><td valign=top><b>Phone:</b></td><td>(250)754-8171</td></tr>
<tr><td colspan=2><hr></td></tr>

<tr><td valign=top><b>Instructor:</b></td><td>John R. Marriott</td></tr>
<tr><td valign=top><b>Date:</b></td><td>November 21 to November 22, 2003</td></tr>
<tr><td valign=top><b>Time:</b></td><td>9:00am - 5:00pm</td> </tr>
<tr><td valign=top><b>Location:</b></td> <td>Malaspina University College<br>
                            5th Street<br>
                            Nanaimo, BC<br>
<tr><td valign=top><b>Room:</b></td><td>245</td></tr>
<tr><td valign=top><b>Registration Info:</b></td><td>(250)485-2878</td></tr>
<tr><td colspan=2><hr></td></tr>
</table>
</div>

<div id="POR" class="hiddenName"><a name="Port"></a>
<table align="center" cellpadding="0" cellspacing="0" border="0">
<tr><td valign=top><b>Instructor:</b></td><td>Donna Curveon-Johnson</td></tr>
<tr><td valign=top><b>Date:</b></td><td>September 8 to September 9, 2003</td></tr>
<tr><td valign=top><b>Time:</b></td><td>8:30am - 4:30pm</td> </tr>
<tr><td valign=top><b>Location:</b></td> <td>Timber Lodge<br>
                            2404 Port Alberni Highway<br>
                            Port Alberni, BC<br>
<tr><td valign=top><b>Room:</b></td><td>Banquet</td></tr>
<tr><td valign=top><b>Registration Info:</b></td><td>(250)723-0679</td></tr>
<tr><td colspan=2><hr></td></tr>

<tr><td valign=top><b>Instructor:</b></td><td>Donna Curveon-Johnson</td></tr>
<tr><td valign=top><b>Date:</b></td><td>September 29 to September 30, 2003</td></tr>
<tr><td valign=top><b>Time:</b></td><td>8:30am - 4:30pm</td> </tr>
<tr><td valign=top><b>Location:</b></td> <td>Timber Lodge<br>
                            2404 Port Alberni Highway<br>
                            Port Alberni, BC<br>
<tr><td valign=top><b>Room:</b></td><td>Banquet</td></tr>
<tr><td valign=top><b>Registration Info:</b></td><td>(250)723-0679</td></tr>
<tr><td colspan=2><hr></td></tr>

<tr><td valign=top><b>Instructor:</b></td><td>Donna Curveon-Johnson</td></tr>
<tr><td valign=top><b>Date:</b></td><td>October 10 to October 11, 2003</td></tr>
<tr><td valign=top><b>Time:</b></td><td>8:30am - 4:30pm</td> </tr>
<tr><td valign=top><b>Location:</b></td> <td>Timber Lodge<br>
                            2404 Port Alberni Highway<br>
                            Port Alberni, BC<br>
<tr><td valign=top><b>Room:</b></td><td>Banquet</td></tr>
<tr><td valign=top><b>Registration Info:</b></td><td>(250)723-0679</td></tr>
<tr><td colspan=2><hr></td></tr>
</table>
</div>

<div id="SAA" class="hiddenName"><a name="Saanich"></a>
<table align="center" cellpadding="0" cellspacing="0" border="0">
<tr><td valign="top"><b>Instructor:</b></td><td>John R. Marriott</td></tr>
<tr><td valign="top"><b>Date:</b></td><td>September 27 to September 28, 2003</td></tr>
<tr><td valign="top"><b>Time:</b></td><td>9:00am - 5:00pm</td></tr>
<tr><td valign="top"><b>Location:</b></td><td>Camosun College<br>
                                                        4461 Interurban Road<br>
                                                        Saanich, BC</td></tr>
<tr><td valign="top"><b>Room:</b></td><td>112</td></tr>
<tr><td valign="top"><b>Registration Info:</b></td><td>(250)370-4221</td></tr>
<tr><td colspan=2><hr></td></tr>
</table>
</div>

</body>

</html>

[+][-]07/27/03 12:43 PM, ID: 9015467Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: JavaScript
Tags: back, javascript, html
Sign Up Now!
Solution Provided By: sciwriter
Participating Experts: 6
Solution Grade: A
 
[+][-]07/27/03 12:28 PM, ID: 9015447Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/27/03 12:29 PM, ID: 9015449Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/27/03 12:42 PM, ID: 9015463Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07/27/03 12:43 PM, ID: 9015468Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/27/03 12:46 PM, ID: 9015471Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/27/03 12:53 PM, ID: 9015493Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/27/03 12:56 PM, ID: 9015504Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/27/03 01:03 PM, ID: 9015520Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/27/03 01:05 PM, ID: 9015524Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/27/03 01:06 PM, ID: 9015525Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07/27/03 01:06 PM, ID: 9015526Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/27/03 01:07 PM, ID: 9015532Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07/27/03 01:18 PM, ID: 9015555Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/27/03 01:19 PM, ID: 9015558Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/27/03 01:21 PM, ID: 9015565Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07/27/03 01:27 PM, ID: 9015575Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/27/03 01:29 PM, ID: 9015582Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/27/03 01:33 PM, ID: 9015597Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/27/03 01:35 PM, ID: 9015601Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/27/03 01:48 PM, ID: 9015630Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/27/03 02:59 PM, ID: 9015826Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/27/03 03:03 PM, ID: 9015843Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/27/03 05:18 PM, ID: 9016340Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/27/03 05:26 PM, ID: 9016355Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/27/03 07:57 PM, ID: 9016833Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/27/03 08:00 PM, ID: 9016838Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/27/03 08:02 PM, ID: 9016849Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/29/03 03:28 PM, ID: 9032090Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92