That is your easiest option probably. Less processing.

> -----Original Message-----
> From: Damian Watson [mailto:[EMAIL PROTECTED]
> Sent: 04 November 2003 11:05
> To: [EMAIL PROTECTED]
> Subject: Re: [ cf-dev ] Get the Current Sites address... : brain fuzz
>
>
> Yeah... I've been using HTTP_REFERER and then a listDeleteAt to get rid of
> unwanted pieces of string but only when i know the referer is the site I
> need the URL for...
>
> ...and if JS is turned off at client side... the other option is to have a
> static application-type var with the domain's URL in it but that
> don't seem
> too elegant, surely there's another way?
>
>
> ----- Original Message -----
> From: "Paul Johnston" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, November 04, 2003 10:57 AM
> Subject: RE: [ cf-dev ] Get the Current Sites address... : brain fuzz
>
>
> > > Won't necessarily work if there's proxies and stuff... I'd like to
> > > know the answer to this also...
>
> Very very true.  Don't just use cgi.server_name!
>
> > > > I am having a brain fuzzola..
> > > >
> > > > Whats the CF to get the current sites URL?  i.e. I need
> > to get the
> > > > www.foo.com from http://www.foo.com/index.cfm?foo=1&fubar=2
>
> AFAIK this isn't actually very easy to achieve.  One way around this is to
> use the HTTP_REFERER (spelling is awful in the US) so long as you
> KNOW that
> the link to the page came from the same site.  However, I suspect
> that this
> is not the case as you almost certainly wouldn't need this otherwise.
>
> If it's possible to use client side info, then get the info with
> Javascript.
> The reason being that if you need the user to click on something, or send
> them to another page, then it's a client-side interaction.  If
> (and this is
> possible) you want to send the user an email with a clickable link in it,
> then you can send them any link you want that will refer them to
> where they
> expect to go (as opposed to the site you think it should go to).  Long way
> round and may not be too useful!
>
> Paul
>
>
>
> --
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
>
>
>
>
> --
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
>
>




-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to