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>
Well what do you know, I was doing everything correctly.
Firefox does not allow local file links from a web page.
http://kb.mozillazine.org/Firefox_:_Issues_:_Links_to_Local_Pages_Don%27t_Work