I have used the yahoo event library and dom js to detect clicks inside of just one div (with no special code on the actual link itself. Works pretty well.
Here is an example. http://dev.besavvy.com/Spry_P1_4_1214/samples/tabbedpanels/tabbed_panel_samp le.cfm This detects clicks on links based on content pulled in from another file with spry. Then redirects the click to open the file within the tab. See http://developer.yahoo.com/yui/event/ for more on the event manager. Joshua Cyr Savvy Software 866.870.6358 www.besavvy.com -----Original Message----- From: Stan Winchester [mailto:[EMAIL PROTECTED] Sent: Thursday, December 21, 2006 8:52 AM To: CF-Talk Subject: Record click through using div tag onclick for banner ads We are the design stage of developing an application that will record click through for image/text banners. The banners are created by cj.com, linkshare.com, and performics.com using a variety of methods to create the banner. -- Some banners are created by inserting a JavaScript that will put the banner (image or text) nested in an anchor tag; for example: <script type='text/javascript' language='javascript' src='http://www.kqzyfj.com/placeholder-1665536?target=_top&mouseover=N'></sc ript> -- Some banners are created by nesting an (image or text) in an anchor tag in a more traditional method such as: <a href="some url?foo=blah&..."><img src="some image source" height="...></a> The above code is generated by one of the before mentioned sites cj.com, linkshare.com, or performics.com which our client copies generated code as shown above for a particular banner and pastes it in a form on his site. The banner is then saved to our client's database. Our client must use the code as provided (un-modified). Here is the issue: Our client requires we must be able to record the click through each time a site visitor clicks on a banner which takes them away from our client's site. We have thought of wrapping the provided banner code (text or image) in a div tag and adding an onclick event calling an Ajax method to record the banner id, date, and some other data into a database record. Our client wants to keep track of which banners are the most successful, and display them according to popularity. Since we are in the design stage, I would like to know if this is a viable solution using and onclick event in a div tag which calls the Ajax method. Has anyone else done something similar to this, and does anyone have an example you would be willing to share? Thank you, Aftershock Web Design, Inc. by: Stan Winchester President/Developer [EMAIL PROTECTED] http://www.aftershockweb.com/ Phone 801-921-4320 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264708 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

