1 Reply Latest reply: Sep 22, 2009 11:04 AM by ilssac RSS

    HTML anchor tag to a UNC path.

    ilssac Community Member

      This may be more of an HTML question rather then a CFML question.  I am not sure if my problem is that I am not using the <a>nchor tag correctly, or thet ColdFusion is escaping the slash caracters so that this link does not work.

       

      I'm building a page that is going to often end in one more more paths to
      a location on our internal file server.  It would be a nice plus if this
      could be an active anchor link so that users could just click on the
      link rather then any copying and pasting.

       

      Just to be clear this is not a normal link to a HTTP web url.  But
      rather a UNC path to a file server that has no relationship to the web
      server.

       

      I thought this would work if you put 'file://" into the anchor tag, but
      this does not seem to cut it.

       

      Example of the HTML

      <a href="file://%5C%5Cdprhq01%5CPURCurrent$%5Cpur2008%5Cload_logs%5Cload_log_22-Sep-2009_10h11m37s.txt <view-source:file:///>">\\dprhq01\PURCurrent$\pur2008\load_logs\load_log_22-Sep-2009_10h11m37s.txt</a>

       

      Cutting and pasting an example here, I note the escaping of the slash characters.  Could that be a problem?  How to not have that escaped in the HTML?

       

      Here is the CFML for that line.

      <a href="file://#remoteDir#\#datayear.name#">#remoteDir#\#datayear.name#</a>