At 01:20 PM 04/28/2001 -0400, you wrote:
>I am writing a custom tag and I need to get the url of the page calling 
>the tag to complete the scripting in the custom tag.

   Depends how much of the URL you want.  You could pass the template name 
as a parameter, hard coded.
   If you want the full URL, you could append together these two CGI variables:

     #cgi.HTTP_HOST# & "/" & #cgi.SCRIPT_NAME#

     http_host will give you just the domain name, and script_name will 
give you the name/directory of the current template.


>Can anyone provide a simple way of achiving this? CF server 4.5. Thank you.
>
>Jeff Davis
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to