Help please! can someone take a look if there's anything wrong with this piece of code? it's causing a problem on our ecommerce site <% ':: Everest E-Commerce Advanced Edition ':: Copyright © 1999 - 2005 iCode, Inc. All rights reserved. ':: Template: AMAZING %> <% Dim rsCustomWebsites On Error Resume Next '*** rsCustomWebsites recordset will have the information asssociated with the web tracked item. '*** Caching implementation for GetCustomTrackingForWebSites begins If bEnableCache then If Application("appCustomTrackingForWebSites")<>"" then Set rsCustomWebsites = GetFromCache("appCustomTrackingForWebSites",true) Else Set rsCustomWebsites = objStoreFront.GetCustomTrackingForWebSites(sConnectionString,sCartId) If Err.number <> 0 Then Call ErrorTrap(Err.description) End if Call AddToCache("appCustomTrackingForWebSites",rsCustomWebsites,true) End if Else Set rsCustomWebsites = objStoreFront.GetCustomTrackingForWebSites(sConnectionString,sCartId) End If If Err.number <> 0 Then Call ErrorTrap(Err.description) End if '*** Caching implementation for GetCustomTrackingForWebSites begins If Not rsCustomWebsites.Eof Then%> <table border="0"> <tr> <td width=100%> <%'*** Display the notes associated for the web tracked item. Javascript is used to show the items on mouse move. DO While Not rsCustomWebsites.Eof%> <a href="websiteinfo.asp?fc=<%=Trim(rsCustomWebsites("CHOI_CODE"))%>"><%=rsCustomWebsites("CHOICE_NAME")%></a> <%rsCustomWebsites.Movenext If Not rsCustomWebsites.Eof Then%> | <%End If Loop%> </td> </tr> <tr><td width=100% height=10></td></tr> </table> <%End If%>
Why not switch "On Error Resume Next" to "On Error Goto 0" or comment-out "On Error Resume Next" That way you will get a meaningful error message that might identify where the problem is.
i dont see any syntax errors.. must be some logic problem and on run time while working with data dynamically, objects are having some unexpected data causing error, u will need to debug carefully..
that's what has been bugging me, this file causes our ecomm site to have problems with certain product displays... what kind of tool is there that i can trace the scripts?
is there any error coming on browser, what is that error if any? or just funcionally it is not giving results what you want.
the browser doesn't show any error at all, it's just one function is not giving the result... to be exact, it's the multiple option for certain products not changing to the correct item code when user makes a selection