I just tried it and it worked perfectly. Thanks very much James!
;-)
From: cfajax@yahoogroups.com
[mailto:cfajax@yahoogroups.com] On Behalf Of James Holmes
Sent: 31 October 2007 13:36
To: cfajax@yahoogroups.com
Subject: Re: [cfajax] Javscript question - with an email this time!
Can you just use a url specified from the root (e.g.
/mxajax/core/cf/example.cfc)? This means the domain is unnecessary and
it's how I always do it.
On 10/31/07, Edward Chanter <ed@...>
wrote:
> I have a question about JavaScript, in the mxajax code it references the
URL of the CF function, eg:
>
> var urlTags = "http://#CGI.server_name#/mxajax/core/cf/example.cfc";
>
> How would I make javascript print the CGI.server_name instead of having
coldfusion do it? I need the hostname to be dynamic but can't for the life of
me figure out how to do it.
--
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/