Advertisement
ASP_Volume2 Miscellaneous #35856

AutoSort With Arrays

Load a files contents into an combo box then sort the unsplit lines of text in the combo box then Split the lines and add to proper place... Great for things used to keep track of names with info about the name... Check out this example!

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
Upload
cut the code below a save it as a asp.
when you run this code after pressing the back/forard button you will see it will automatically refresh
<%@ Language=VBScript %>
<%Response.Expires=0%>
<HTML>
<HEAD>
<META NAME="save" CONTENT="history">
<STYLE>
 .saveHistory {behavior:url(#default#saveHistory);}
</STYLE>
<SCRIPT>
var RandomValue;
 function fnSaveInput(){
  oPersistInput.setAttribute("sPersistValue",PersistedValue);
 }
 function fnLoadInput(){
  oPersistInput.value=oPersistInput.getAttribute("sPersistValue");
  RandomValue=oPersistInput.getAttribute("sPersistValue");
 }
 function f1()
 {
 if (RandomValue==PersistedValue)
	{window.location.reload(true)
	}
 }
</SCRIPT>
<%
Response.Write("<SCRIPT>")
Response.Write("var PersistedValue = '" & Now() & "';")
Response.Write("</SCRIPT>")
%>
</HEAD>
<BODY onload='f1()'>
<INPUT class=saveHistory onsave="fnSaveInput()" onload="fnLoadInput()" type=text id=oPersistInput>
</BODY>
<%
Response.Write(Now())
%>
</HTML>
Original Comments (3)
Recovered from Wayback Machine