> This is interesting.  How do you usually use this JS value?  I 
> thought about setting it as a hidden input field, but ColdFusion 
> can't access a variable that was created on the page until /after/ 
> the page has been submitted.

<cfoutput>
<script language="javascript">
   <!--//
   document.write('<img src="/tracking/insert.cfm?tagname=#URLEncodedFormat(a
ttributes.tagname)#&amp;pageurl='+escape(document.location)+'&amp;pagere
f='+escape(document.referrer)+'">');
   -->
</script>

part of a custom tag that embeds an image in the page dynamically - the source 
of the image is a cfm page so i can access the url.pageref variable. Since the 
whole block is javascript, people with no js don't get an image, so there's no 
call to the cfm page. I use this as part of a hit tracking solution 
(coincidentally the subject of another thread right now).

 
> I guess you could send it to a CF function with Ajax.
The only problem is that you can't get that value back to the process that 
created the "host" page, since we have to assume that it has finished by the 
time the call to the image comes in.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:235814
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to