can you think of another way to do this :
I have a selectbox, when i print it turns into a value (displays the selected value), after printing i want it to show the select box again. If i refresh the page (right click, refresh), it returns to the select box, but if i use window.refresh in the code at the end, it does nothing.
Here is my code :
<%Set RSC = MyClientsConn.Execute("SELECT * FROM Stores"
IF not RSC.EOF then
RSC.MoveFirst
do while Not RSC.eof %>
<option value="<%= RSC("Code"
%>"><%=RSC("Store"
%></option>
<% End If
RSC.MoveNext
LOOP
END IF%>
</select></div></b>
</td>
</tr>
</table>
<script>
function PrintWin()
{
document.getElementById("sel"
.innerHTML= document.form.Company.options[document.form.Company.selectedIndex].value
window.print()
}
</script>
I have a selectbox, when i print it turns into a value (displays the selected value), after printing i want it to show the select box again. If i refresh the page (right click, refresh), it returns to the select box, but if i use window.refresh in the code at the end, it does nothing.
Here is my code :
<%Set RSC = MyClientsConn.Execute("SELECT * FROM Stores"
IF not RSC.EOF then
RSC.MoveFirst
do while Not RSC.eof %>
<option value="<%= RSC("Code"
<% End If
RSC.MoveNext
LOOP
END IF%>
</select></div></b>
</td>
</tr>
</table>
<script>
function PrintWin()
{
document.getElementById("sel"
window.print()
}
</script>