I got it to work using #caller.SCRIPT_NAME#. Works perfect now. HTnaks for
all the help guys.
----- Original Message -----
From: "Jeffry Houser" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Saturday, April 28, 2001 6:17 PM
Subject: Re: Getting current page name.


>
>    I don't think you need any quotes at all.
>
> "http://www.prolookink.com/";<cfoutput>#cgi.SCRIPT_NAME#</cfoutput>""
>
>   If this is in an HREF, then it'll ignore everything after the first
> second quote.  Just try this (no quotes):
>
> http://www.prolookink.com/<cfoutput>#cgi.SCRIPT_NAME#</cfoutput>
>
>    Of, if this is in a CFSET, try something like this:
>
> <CFSET myvariable = "http://www.prolookink.com/"; & #cgi.SCRIPT_NAME#>
> <CFOUTPUT>#myvariable#</CFOUTPUT>
>
>    (Is this helping?)
>
>
>
> At 02:03 PM 04/28/2001 -0400, you wrote:
> >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

Reply via email to