This won't work if the file is an index.html file - your server won't recognize the pound signs.
We've gotten around this using Javascript: <!--- begin XED clickthru measurement script ---> <script language="javascript"> function PageQuery(q) { if(q.length > 1) this.q = q.substring(1, q.length); else this.q = null; this.keyValuePairs = new Array(); if(q) { for(var i=0; i < this.q.split("&").length; i++) { this.keyValuePairs[i] = this.q.split("&")[i]; } } this.getKeyValuePairs = function() { return this.keyValuePairs; } this.getValue = function(s) { for(var j=0; j < this.keyValuePairs.length; j++) { if(this.keyValuePairs[j].split("=")[0] == s) return this.keyValuePairs[j].split("=")[1]; } return false; } this.getParameters = function() { var a = new Array(this.getLength()); for(var j=0; j < this.keyValuePairs.length; j++) { a[j] = this.keyValuePairs[j].split("=")[0]; } return a; } this.getLength = function() { return this.keyValuePairs.length; } } function queryString(key){ var page = new PageQuery(window.location.search); return unescape(page.getValue(key)); } function displayItem(key){ if(queryString(key)=='false') { var me = 1; } else { var nnn = queryString(key); document.write('<img src="http://blahblahblah/recorder/clickrecorder.cfm?ID=' + nnn + '&page=home" width="1" height="1">'); } } displayItem('ID'); </script> You can rebuild this, I think, to grab the referring page... Ian -----Original Message----- From: WebMaster [mailto:[EMAIL PROTECTED]] Sent: Monday, July 29, 2002 6:44 AM To: CF-Talk Subject: Re: Issue: Update a tracker database with an index.html file. Use an image tag. The src= can be your CF code which returns a gif. Gif could be transparent. Pass all your user info to the cf page. Ex:<cfoutput> <img src="mycfUserINfoPage.cfm?referrer=#cgi.referer#&whateverElse=#wewew#" width=0 heifht=0 border=0> </cfoutput> ----- Original Message ----- From: <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Monday, July 29, 2002 9:25 AM Subject: Re: Issue: Update a tracker database with an index.html file. > I've never gotten SSI to kick off a .cfm page successfully, how did you do > this Isaac or .. are you just suggesting this without having tried this > for yosuelf? > > ~Todd > > On Mon, 29 Jul 2002, S. Isaac Dealey wrote: > > > If they're installed, you could use a server side include (SSI) tag to > > include the ColdFusion module where you want the counter to appear. This is > > done with hit counters written in PERL to display plain-text hit counts > > rather than those god-awful graphical hit counters. The cfm would then be > > able to run your script and display the count. The include tags would look > > like this: > > > > <!--#include virtual="/dir/tracker.cfm"--> > > <!--#include file="subdir/tracker.cfm"--> > > > > The other thing you have to check for is that SSI may not work on .html > > since they're not always enabled for the .html or .htm extensions ( the > > intended extension was .shtml )... > > > > hth > > > > Isaac Dealey > > Certified Advanced ColdFusion Developer > > > > www.turnkey.to > > 954-776-0046 > > -- > ============================================================ > Todd Rafferty ([EMAIL PROTECTED]) - http://www.web-rat.com/ | > Team Macromedia Volunteer for ColdFusion | > http://www.macromedia.com/support/forums/team_macromedia/ | > http://www.flashCFM.com/ - webRat (Moderator) | > http://www.ultrashock.com/ - webRat (Back-end Moderator) | > ============================================================ > > ______________________________________________________________________ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists