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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

option boxes blank out when "Back" is pressed

Status
Not open for further replies.

smsinger3

Programmer
Oct 5, 2000
192
US
Hello all.

This problem is stumping me. I have 2 option boxes on a page. When I move on to another page, then click the "Back" button on the browser, only 1 of the option boxes still contains the data that I selected. The other box is blank and I have to reselect the data. Does anyone know why?????? If you want me to post my code, let me know.

Thanks for you help! X-)

Steve
 
Let us have it? gsc1ugs
"Cant see wood for tree's...!"
 

This is the box that will be BLANK when the user hits the BACK key.

<SELECT size=1 NAME=&quot;Category&quot; tabindex=3>
<Option selected></option>
<Option value=36021>Research Photo</option>
<Option value=36022>Assignment Photo</option>
<SELECT>


This is the box that keeps the same information
<SELECT size=1 name=&quot;placement&quot; tabindex=4>
<Option selected></option>
<Option value=73>left</option>
<Option value=33025>right</option>
<Option value=75>top</option>
<Option value=33062>(add placement by hand)</option>
</SELECT>

Any ideas what the deal is?

Thanks!

Steve
 
Oooops.. There was a typo.. Look at this one instead!

This is the box that will be BLANK when the user hits the BACK key.

<SELECT size=1 NAME=&quot;Category&quot; tabindex=3>
<Option selected></option>
<Option value=36021>Research Photo</option>
<Option value=36022>Assignment Photo</option>
</SELECT>


This is the box that keeps the same information
<SELECT size=1 name=&quot;placement&quot; tabindex=4>
<Option selected></option>
<Option value=73>left</option>
<Option value=33025>right</option>
<Option value=75>top</option>
<Option value=33062>(add placement by hand)</option>
</SELECT>

Any ideas what the deal is?

Thanks!

Steve
 
What is your browser? its fine with V6 of IE

GSC1UGS gsc1ugs
&quot;Cant see wood for tree's...!&quot;
 
You do know about the <select> that should be </select>? fine in netscape 6... cant create your error.. anyone else gsc1ugs
&quot;Cant see wood for tree's...!&quot;
 
put this at the bottom of ure page


<script language=&quot;JavaScript&quot;>
<!--
document.selectform.reset();
//--></script>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top