btw heres some sample code i didnt test but just whipped up in hopes of explaining what im talking about:
main page (lets call it default.htm for the hell of it):
Code:
<html>
<head>
<title>yarr's penis</title>
<script type="text/javascript">
<!--
function showLength(str)
{
if(str.length)
{
xmlHTTP = new ActiveXObject("Microsoft.XMLHTTP");
xmlHTTP.onreadystatechange = stateChanged;
xmlHTTP.open("GET","findlength.asp?length=" + str);
xmlHTTP.send(null);
}
else
{
document.getElementById("yarrspenislength").innerHTML = "";
}
}
function stateChanged()
{
if(xmlHTTP.readyState==4 || xmlHTTP.readyState=="complete") document.getElementById("yarrspenislength").innerHTML = xmlHTTP.responseText;
}
//-->
</script>
</head>
<body>
<input type="text" onkeyup="showLength(this.value);"/>
<div id="yarrspenislength"></div>
</body>
</html>
findlength.asp page
Code:
<%@ language="javascript" %>
<%
length = Request.QueryString("length");
penislength = new Array("6.5","7","7.5");
for(i=0;i<penislength.length;i++)
{
if(length==penislength[i])
{
%>
omg yarr's penis is <%=length%> inches irl
<%
}
}
%>
btw I'm not gay just bored and couldn't think of any other sample code to write
oh and I dunno why yarr's penis is 6.5, 7, and 7.5 inches either