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-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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to