FYI:

I recently downloaded the tag (FormURL2Attributes.cfm) from fusebox.org so
that I might start to play around with the fusebox methodology. I
encountered something and was wondering if someone might comment...

The Enviornment:
    IIS 4.0
    NT 4.0
    Cold Fusion v4.5.1
    I'm on a secondary site (not default) at port 84.
    (i.e. http://xxx.xxx.xxx.xxx:84/)

The Problem:
    Using the tag  <cf_FormURL2Attributes> in my app_globals.cfm, all links
in my apps were getting resolved to the default web site at port 80 even
though there was no absolute reference to it in the links. fyi: <a
href="index.cfm">xxx</a>

The <Temporary> Solution???:
    Setting the tag call to <cf_FormURL2Attributes displaybase="no"> seemed
to resolve links within the site back to the proper port.

Comments:
    I'm not really clear what the parameter "displaybase" is for and why it
would do that. Have you seen this happen before? It seems like maybe the
following snippet of code isn't taking into acount the port number ...

<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>

======================================

!!UPDATE!!

I found that the following code didn't also include the #cgi.Server_Port#
variable.

<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>

Just thought you might like to know ... perhaps someone could rewrite that
piece if it really needs modification.

-Russ Jones ([EMAIL PROTECTED])

------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to