Syntax?? or WHAT!

admin

Administrator
Staff member
My hit counting dB won't count the hit when I run it through a javascript that opens a popup. The window opens just fine and all seems good except no hit is logged in my dB. I use the same ASP code on many other pages and my dB code seems to be fine. The popup window routine works good in other pages and of course using an image map works. But when I try to put them all together all works except logging a hit in my dB. Below is pieces of the code I am using. Please Help.

<!--Code for popup-->
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=380,height=385,left = 225,top = 150');");
}

<!--Calling the popup and sending thru dB-->
<area shape="rect" coords="298,192,310,208" href=http://www.webdeveloper.com/forum/archive/index.php/"javascript:popUp('http://townsend.discoverynet.com/realestatelocator.asp?name=communitiesofnorthbrook')" alt="Communities of Northbrook" >
 
Back
Top