Well, it turns out I had an incomplete understanding of the problem, the
includes were working, it was HTML paths (images, form actions) that weren't
resolving correctly with the port. We got it working by grabbing the
CGI.HOST_NAME (includes port) and using it to build an absolute path.
But late Friday night he figured out the root cause of the problem,
FormURL2Attibutes can set a base href:
<cfif attributes.displaybase>
<CFSET caller.Base = REReplace(CGI.SCRIPT_NAME, "[^/]+\.cfm.*", "")>
<CFSET caller.Base= "http://" & CGI.SERVER_NAME & caller.Base>
<cfoutput><base href="#caller.Base#"></cfoutput>
</cfif>
The problem is CGI.SERVER_NAME, it is CGI.HOST_NAME with the port stripped
off.
-Alan
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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