If you look at how Harlan does it (harlan.riaforge.org), you embed a JS into your site. The JS points to a CFM file. The output of that is JS that writes out the HTML for both the image and link at the same time.
On Thu, Sep 23, 2010 at 3:10 PM, Richard Steele <r...@photoeye.com> wrote: > > Next problem... To make the ad clickable and go to the correct website, I > have an <a href="link_router.cfm"> wrapping the image that is retrieved by > the ad. > > The link_router.cfm simply looks for the last ad that was requested (the > datetime stamp was updated in the ad table when it was requested). That link > would be then initially be that viewer's ad, but only for a short period of > time, until the next person to view the blog page requested an ad image (the > next one in the queue) and the datetime stamp changes. > > So, how can I assure that the correct link will be retrieved? > > Idea.... When the ad is requested, insert the ad id and the link along with a > datetime stamp and the ip address that requested it. I'm not sure how > accurate that would be if the user has an AOL browser. > > Is there a better way? > > Thanks so much. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337423 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm