Re: Issue: Update a tracker database with an index.html file.

2002-07-30 Thread James Blaha

To All:
Thanks for all your great help!

Sincerely,
James Blaha


WebMaster wrote:

Hi Ian, James,
Seems we are getting more info now.
OK, so you can't map html to cf.  So your choices are PERL,PHP or whatever
cgi your provider allows.  If they don't allow cgi you could still use the
image route and do it using JavaScript as suggested by Ian.  You can gather
all the info you need from JavaScript and put this into  new image() and set
the src to the coldFusion page you want.  Ian's code below actually shows
you how to do this.  Nice work Ian.  Here is another example:
NOTE: I have not tested this so there may be syntax errors. Also note the
spelling of referrer.  In cgi it is incorrectly spelt with one r.
script language=javascript
newImg = new image(1,1)  // Creates a new image
var infoNeeded = ?referrer= + document.referer // Sets infoNeeded to
?referrer=theReferringDocument
infoNeeded = infoNeeded + port= + document.port // appends any other
needed info to infoNeeded
// This code will make the src for the new image call a CF page.  This page
should return an image.
// the code on this page can do whatever you want with the info passed.
newImage.src=http://yourdomain.com/yourColdFusionPage.cfm; + infoNeeded
//This code will run when the page is loaded, or you can put it in a
function and call it with onLoad in the body tag.
/script



- Original Message -
From: James Blaha [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, July 29, 2002 10:45 AM
Subject: Re: Issue: Update a tracker database with an index.html file.


  

Ian, My case is also the the index.html file is on a non CF box.  How do
you do what you do? You capture the same information I'm looking for?

James Blaha

Ian Lurie wrote:



Hrm. I guess you can do that but the reason we went the JavaScript route
  

was
  

for clients who have index.html files on non-CF servers.

I may have misunderstood. Sorry about that...

-Original Message-
From: WebMaster [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 29, 2002 7:00 AM
To: CF-Talk
Subject: Re: Issue: Update a tracker database with an index.html file.


sure it will work. just map .html to cf

- Original Message -
From: Ian Lurie [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, July 29, 2002 9:47 AM
Subject: RE: Issue: Update a tracker database with an index.html file.


  

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

Re: Issue: Update a tracker database with an index.html file.

2002-07-29 Thread S . Isaac Dealey

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

__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
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



Re: Issue: Update a tracker database with an index.html file.

2002-07-29 Thread todd

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



Re: Issue: Update a tracker database with an index.html file.

2002-07-29 Thread WebMaster

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)   |
 

 
__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.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



RE: Issue: Update a tracker database with an index.html file.

2002-07-29 Thread Ian Lurie

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



Re: Issue: Update a tracker database with an index.html file.

2002-07-29 Thread WebMaster

sure it will work. just map .html to cf

- Original Message -
From: Ian Lurie [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, July 29, 2002 9:47 AM
Subject: RE: Issue: Update a tracker database with an index.html file.


 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)   |
  
 
 

 
__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.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



RE: Issue: Update a tracker database with an index.html file.

2002-07-29 Thread Ian Lurie

Hrm. I guess you can do that but the reason we went the JavaScript route was
for clients who have index.html files on non-CF servers.

I may have misunderstood. Sorry about that...

-Original Message-
From: WebMaster [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 29, 2002 7:00 AM
To: CF-Talk
Subject: Re: Issue: Update a tracker database with an index.html file.


sure it will work. just map .html to cf

- Original Message -
From: Ian Lurie [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, July 29, 2002 9:47 AM
Subject: RE: Issue: Update a tracker database with an index.html file.


 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)   |
  
 
 



__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.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



Re: Issue: Update a tracker database with an index.html file.

2002-07-29 Thread S . Isaac Dealey

 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?

No, it's an assumption. I know that it works with PERL and ASP files ...
It's actually the only way that ASP can process included files, which sucks
( for them ) because it means that includes are always processed prior to
any logical operators, etc. so dynamic inclusion isn't actually dynamic.
But because PERL files given the .pl ( or I'm guessing also .cgi ) extension
are ( or can be ) run through the PERL interpreter when they're included
this way, I would imagine there's got to be a way to do this with cfm's ...
I don't know all the specifics tho, 'cause I've never personally had cause
to or been asked to set it up.

Isaac Dealey
Certified Advanced ColdFusion Developer

www.turnkey.to
954-776-0046

 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)   |
 

 
__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
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



Re: Issue: Update a tracker database with an index.html file.

2002-07-29 Thread todd

Assumptions can make an ass out of u and me... :)

~Todd

On Mon, 29 Jul 2002, S. Isaac Dealey wrote:

  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?
 
 No, it's an assumption. I know that it works with PERL and ASP files ...
 It's actually the only way that ASP can process included files, which sucks
 ( for them ) because it means that includes are always processed prior to
 any logical operators, etc. so dynamic inclusion isn't actually dynamic.
 But because PERL files given the .pl ( or I'm guessing also .cgi ) extension
 are ( or can be ) run through the PERL interpreter when they're included
 this way, I would imagine there's got to be a way to do this with cfm's ...
 I don't know all the specifics tho, 'cause I've never personally had cause
 to or been asked to set it up.
 
 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)   |


__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
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



Re: Issue: Update a tracker database with an index.html file.

2002-07-29 Thread James Blaha

Ian, My case is also the the index.html file is on a non CF box.  How do 
you do what you do? You capture the same information I'm looking for?

James Blaha

Ian Lurie wrote:

Hrm. I guess you can do that but the reason we went the JavaScript route was
for clients who have index.html files on non-CF servers.

I may have misunderstood. Sorry about that...

-Original Message-
From: WebMaster [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 29, 2002 7:00 AM
To: CF-Talk
Subject: Re: Issue: Update a tracker database with an index.html file.


sure it will work. just map .html to cf

- Original Message -
From: Ian Lurie [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, July 29, 2002 9:47 AM
Subject: RE: Issue: Update a tracker database with an index.html file.


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



RE: Issue: Update a tracker database with an index.html file.

2002-07-29 Thread Ian Lurie

Hi James,

The script below parses the page query string and builds a list of
field:value pairs. It then builds an IMG
SRC=http://addressofcftemplateonanotherserverhere; tag that calls the CFM
template, which is hosted on ANOTHER server that supports CF.

Here's the gist - let's say www.portentinteractive.com is not on a CF
server. Our measurement software is on another server which DOES support
CF - the script that records each click is called clickerrecorder.cfm. So,
we include the script below in the index.html page.

Then, if you go to http://www.portentinteractive.com/index.html?ID=4, the
script writes img src=http://www.servername.com/clickrecorder.cfm?ID=4;
into the page, which then calls the .cfm template on .

If you need to record the referrer, I'm pretty sure you can grab the
referrer using Javascript and then use the script below to build img
src=http://www.servername.com/yourcfmpage.cfm?referrer=thepageyoucamefrom;
.

Does that make sense? I hope this helps...

Ian

-Original Message-
From: James Blaha [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 29, 2002 7:45 AM
To: CF-Talk
Subject: Re: Issue: Update a tracker database with an index.html file.


Ian, My case is also the the index.html file is on a non CF box.  How do
you do what you do? You capture the same information I'm looking for?

James Blaha

Ian Lurie wrote:

Hrm. I guess you can do that but the reason we went the JavaScript route
was
for clients who have index.html files on non-CF servers.

I may have misunderstood. Sorry about that...

-Original Message-
From: WebMaster [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 29, 2002 7:00 AM
To: CF-Talk
Subject: Re: Issue: Update a tracker database with an index.html file.


sure it will work. just map .html to cf

- Original Message -
From: Ian Lurie [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, July 29, 2002 9:47 AM
Subject: RE: Issue: Update a tracker database with an index.html file.


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

Re: Issue: Update a tracker database with an index.html file.

2002-07-29 Thread WebMaster

Hi Ian, James,
Seems we are getting more info now.
OK, so you can't map html to cf.  So your choices are PERL,PHP or whatever
cgi your provider allows.  If they don't allow cgi you could still use the
image route and do it using JavaScript as suggested by Ian.  You can gather
all the info you need from JavaScript and put this into  new image() and set
the src to the coldFusion page you want.  Ian's code below actually shows
you how to do this.  Nice work Ian.  Here is another example:
NOTE: I have not tested this so there may be syntax errors. Also note the
spelling of referrer.  In cgi it is incorrectly spelt with one r.
script language=javascript
newImg = new image(1,1)  // Creates a new image
var infoNeeded = ?referrer= + document.referer // Sets infoNeeded to
?referrer=theReferringDocument
infoNeeded = infoNeeded + port= + document.port // appends any other
needed info to infoNeeded
// This code will make the src for the new image call a CF page.  This page
should return an image.
// the code on this page can do whatever you want with the info passed.
newImage.src=http://yourdomain.com/yourColdFusionPage.cfm; + infoNeeded
//This code will run when the page is loaded, or you can put it in a
function and call it with onLoad in the body tag.
/script



- Original Message -
From: James Blaha [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, July 29, 2002 10:45 AM
Subject: Re: Issue: Update a tracker database with an index.html file.


 Ian, My case is also the the index.html file is on a non CF box.  How do
 you do what you do? You capture the same information I'm looking for?

 James Blaha

 Ian Lurie wrote:

 Hrm. I guess you can do that but the reason we went the JavaScript route
was
 for clients who have index.html files on non-CF servers.
 
 I may have misunderstood. Sorry about that...
 
 -Original Message-
 From: WebMaster [mailto:[EMAIL PROTECTED]]
 Sent: Monday, July 29, 2002 7:00 AM
 To: CF-Talk
 Subject: Re: Issue: Update a tracker database with an index.html file.
 
 
 sure it will work. just map .html to cf
 
 - Original Message -
 From: Ian Lurie [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Monday, July 29, 2002 9:47 AM
 Subject: RE: Issue: Update a tracker database with an index.html file.
 
 
 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

Re: Issue: Update a tracker database with an index.html file.

2002-07-29 Thread S . Isaac Dealey

 Assumptions can make an ass out of u and me... :)

 ~Todd

Often. :)

Isaac Dealey
Certified Advanced ColdFusion Developer

www.turnkey.to
954-776-0046

 On Mon, 29 Jul 2002, S. Isaac Dealey wrote:

  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?

 No, it's an assumption. I know that it works with PERL
 and ASP files ...
 It's actually the only way that ASP can process included
 files, which sucks
 ( for them ) because it means that includes are always
 processed prior to
 any logical operators, etc. so dynamic inclusion isn't
 actually dynamic.
 But because PERL files given the .pl ( or I'm guessing
 also .cgi ) extension
 are ( or can be ) run through the PERL interpreter when
 they're included
 this way, I would imagine there's got to be a way to do
 this with cfm's ...
 I don't know all the specifics tho, 'cause I've never
 personally had cause
 to or been asked to set it up.

 Isaac Dealey
 Certified Advanced ColdFusion Developer
 www.turnkey.to
 954-776-0046


__
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



Re: Issue: Update a tracker database with an index.html file.

2002-07-29 Thread Todd

Ok, so, are you saying I'm an ass often ..? =)

~Todd

At 06:15 PM 7/29/2002 -0400, you wrote:
  Assumptions can make an ass out of u and me... :)
 
  ~Todd

Often. :)

Isaac Dealey
Certified Advanced ColdFusion Developer

__
Get the mailserver that powers this list at http://www.coolfusion.com
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



Re: Issue: Update a tracker database with an index.html file.

2002-07-29 Thread S . Isaac Dealey

 Ok, so, are you saying I'm an ass often ..? =)

 ~Todd

Occasionally. :)

Isaac Dealey
Certified Advanced ColdFusion Developer

www.turnkey.to
954-776-0046

 At 06:15 PM 7/29/2002 -0400, you wrote:
  Assumptions can make an ass out of u and me... :)
 
  ~Todd

Often. :)

Isaac Dealey
Certified Advanced ColdFusion Developer

 __
 
 Get the mailserver that powers this list at
 http://www.coolfusion.com
 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


__
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



Re: Issue: Update a tracker database with an index.html file.

2002-07-29 Thread DDB Lists

Use cfcontent to serve up an image (even a 1x1 pixel) like this

im src=/yourserver/image.cfm/

you have access to all info from there.

You could do the same thing with a style sheet or whatever using link 

- Original Message - 
From: James Blaha [EMAIL PROTECTED]
 I have a user that needs to track hits for there site and he has to use 
 an index.html file. Normally I use basic CF code that get the users 


__
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