The / is the only output I get from this. It doesn't display the page name.
----- Original Message -----
From: "Peter Froh" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Saturday, April 28, 2001 2:14 PM
Subject: RE: Getting current page name.
> cgi.script_name starts with a "/" so all you need to do is take the
trailing
> "/" from your URL.
>
> Like this:
> "http://www.prolookink.com"<cfoutput>#cgi.SCRIPT_NAME#</cfoutput>""
>
> -----Original Message-----
> From: J Davis [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, April 28, 2001 11:04 AM
> To: CF-Talk
> Subject: Re: Getting current page name.
>
>
> Here is the snippet of code.
>
> "http://www.prolookink.com/"<cfoutput>#cgi.SCRIPT_NAME#</cfoutput>""
>
> what I need is the calling page name, but for some reason it does not seem
> to be working. Do I need to use single quotes around the CFOUTPUT tags?
> ----- Original Message -----
> From: "Jeffry Houser" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Saturday, April 28, 2001 4:33 PM
> Subject: Re: Getting current page name.
>
>
> > 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