I assume that you're probably taking a ColdFusion variable and
supplying that to HTMLHEAD in order to do dynamic page titles. If you
store that variable in the request scope, it will be available inside
of the onRequestEnd method within Application.cfc:
index.cfm
<cfset request.pageTitle = "My Page Title" />
Application.cfc
<cfcomponent>
<cffunction name="onRequestEnd" access="public" returnType="void">
<cffile action="append" file="#expandPath('hits.log')#"
output="#request.pageTitle#" />
</cffunction>
</cfcomponent>
HTH.
On 12/2/05, Brendan Ganning <[EMAIL PROTECTED]> wrote:
> I am currently developing an app in CF7 that is completely database
> dependant. Admin users have a backend functionality that allow them to
> create pages, create dynamic menus, modify data, the usual. The pages on
> the frontend all have a cfhtmlhead tag that writes the <title> tag to the
> html. In my application.cfc I was trying to have onRequestEnd
> (onRequestStart could work I suppose) track the user's movement within the
> site. Since the pages are completely dynamic, storing the url alone will
> not mean much to the end users viewing a report based on the webstats. Is
> there anyway I can set a coldFusion variable to the js equivalent of
> document.title and then use that data in an insert query?
>
> Thanks
> Brendan----------------------------------------------------------
> You are subscribed to cfcdev. To unsubscribe, send an email to
> [email protected] with the words 'unsubscribe cfcdev' as the subject of the
> email.
>
> CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
> (www.cfxhosting.com).
>
> An archive of the CFCDev list is available at
> www.mail-archive.com/[email protected]
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[email protected] with the words 'unsubscribe cfcdev' as the subject of the
email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
(www.cfxhosting.com).
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]