NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: Alan Cochran on July 05, 2007, 07:35:15 PM
-
I am wanting to have a hyperlink on a Browse to launch a PDF file. I noticed there is an checkbox option "Field contains File Name" but it is disabled. If this feature not available in version 4.26 yet? If not, is there a workaround to allow for this?
Thanks...
Alan
-
Hi Alan,
That prompt was there to link to "local" files. However it turns out this is behavior not allowed by modern browsers. (ie it won't link to a file:// from inside a http:// ). So I've removed the prompt in 4.27.
However as long as your files are on the server, this isn't a problem.
Remembering that static files can _only_ be served from below the "web" folder, simply set the URL.
For example (and I'm not sure what you have in your file) but let's say you have a field, and it contains a web-relative filename.
cus:logo = 'images\frank.png'
then you can just tick on "Field contains URL".
What if the field contains more than that...
cus:logo = 'c:\server\web\images\frank.png'
then you'd need version 4.27 which simplifies this to
'images\frank.png'
for you.
What if the file is _outside_ the web folder?
In that case you have 2 options.
a) move the file _inside_ the web folder or
b) tweak the server to allow it to serve static files _outside_ the web folder. I really, really, don't recommend this though.
Cheers
Bruce
-
Hi Bruce.
Is 4.27 available yet?
Alan
-
or c) copy the file from its original location to below web and put $$$ in front of it and serve it up. This is actually very quick and effective and $$$ files are cleaned up automatically...
-
Alan,
>> Is 4.27 available yet ?
Probably <g>...
Last thing I did before leaving the office was set the build in motion. If it all went through smoothly, then the update should be on the web site.
Cheers
Bruce
-
Kevin,
Are you copying the files to the $$$ prefix from within your web app? Some additional details would be appreciated.