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/