Thalanos
09-01-2003, 05:49 AM
I have a JScript for creating hash codes which I am running on the server for security reasons. It loads perfectly on my company connection (2Mbps) but not on other external connections that I have tried (512Kbps and 36Kbps approx).
On the external connections, it loads the page up to the point where the JScript is executing and then locks up for about 1 minute before completing loading. This can't be a problem with the server executing the script because it loads on the fast connection. It may be that the JScript is being sent to the client, slowing it down (it is a large piece of code) but I'm not sure.
Does anyone have an idea about what the problem is and how it can be fixed?
Here is the relevent part of the code (ASP and HTML):
within the head-
<script src="jscripts/link.js" type="text/javascript" runat="server" language="JScript"></script>
...
within the body-
<%
hashURL = hash(buyDesc,BuyPrice,BuyQTY)
Response.write("<a href='"+hashURL+"' onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('add','','images/add_down.gif',1)>")
%>
Thanks.
On the external connections, it loads the page up to the point where the JScript is executing and then locks up for about 1 minute before completing loading. This can't be a problem with the server executing the script because it loads on the fast connection. It may be that the JScript is being sent to the client, slowing it down (it is a large piece of code) but I'm not sure.
Does anyone have an idea about what the problem is and how it can be fixed?
Here is the relevent part of the code (ASP and HTML):
within the head-
<script src="jscripts/link.js" type="text/javascript" runat="server" language="JScript"></script>
...
within the body-
<%
hashURL = hash(buyDesc,BuyPrice,BuyQTY)
Response.write("<a href='"+hashURL+"' onMouseOut=MM_swapImgRestore() onMouseOver=MM_swapImage('add','','images/add_down.gif',1)>")
%>
Thanks.