Thane, I don't believe that you will be able to run the javascript from the test2.cfm, probably a security issue. Also, you have your cfquery on the test2.cfm wrapped in a comment, so it won't be run
----- Original Message ----- From: "Thane Sherrington" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Wednesday, August 21, 2002 1:25 PM Subject: More on building a site tracker > After a fair bit of reading and a lot of hair pulling, I have three files > like this: > > Index.htm looks like this: > <html> > <body> > Test page. > <script language="Javascript" > src="http://www.stuffbythane.com/SiteTracker/UpdatePageInfo.js"></script> > > </body> > </html> > > UpdatePageInfo.js looks like this: > function Get_Referrer() { > document.write("<img > src='http://www.stuffbythane.com/SiteTracker/test2.cfm?in=" + > document.referrer + "&out=" + document.location + " '>"); > document.write("</"); > document.write("script>"); > alert("Get Referrer Running."); > } > Get_Referrer(); > > Test2.cfm looks like this: > <!--- <CFQUERY name="test" datasource="SiteTracker"> > INSERT INTO Test(In, Out) > VALUES ('#URL.In#', '#URL.Out#') > </CFQUERY> ---> > <script language="javascript"> > alert("Test2 running."); > </script> > <cfcontent type="image/GIF" file="test.gif"> > > So far as I can tell, test2.cfm doesn't get called. Or if it does, it > doesn't run. The Get Referrer Running alert appears, and the gif > placeholder appears (with the proper properties) but no gif appears, and > the Test2 Running alert doesn't come up, and nothing goes into the database. > > What am I doing wrong? > > T > > ______________________________________________________________________ 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