On 14 Jul 2005 13:15:58 -0700, Stan McCann <> wrote:
>CyberDroog <> wrote in
>news: :
>
>> At least I think it is... I have been playing with HttpFileServer
>> v2.0beta23 (http://www.rejetto.com/sw/) along with some user created
>> templates.
>> The part: onclick="location.href='%item-url%' seems to be the
>> problem since it is surrounded by single quotes. When it comes
>> across a folder name such as: CD's, that seems to translate in the
>> code to 'CD's', and the code chokes. Clicking the link does
>> nothing, and reloading the file list can produce an "Error expecting
>> ;" for every file or folder name that contains a single quote.
>>
>> Is there a simple way to fix this?
>>
>
>This is off topic for this group as it is not an HTML issue.
>
>With that said, your fix is to rename the directories. Although some
>OSes will let you get away with it, ' is not a valid character for file
>names on some OSes. There are many symbols that are valid, but a good
>rule of thumb to go by is to use letters, numbers, -, _ and . only.
>Stick to those and you will rarely, if ever, have file name problems.
On what OSes would a single quote be an illegal character in a file name?
These directories are on a Win2k3 Server, but I haven't had any problems
accessing them with any other version of Windows, or DOS, or Mandriva
Linux. Though with Linux I am using KDE. I can't recall if I've tried
playing with such a file on the command line.
Doesn't matter though. I like them the way they are.
The whole matter is academic really. I was just fiddling with a template
to see how it works and to figure out what to tweak to change features,
appearance, etc. As you pointed out, I know so little about it that I
wasn't aware that that portion of the code wasn't HTML. What is it,
javascript?
I suppose I can just dig in and rearrange the code such that the
%item-name% is no longer nested in quotes. That works fine in other
templates, though maybe because they are pure HTML.
--
"'Stupid' means one thing: threatening to the interests of the Democratic
Party. The more Conservative the Republican, the more vicious and
hysterical the attacks on his intelligence will be."
- Ann Coulter