Resolving '#' when displaying documents

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

Simon
Ebase User
Posts: 25
Joined: Thu Aug 27, 2009 9:43 am
Location: Hampshire County Council
Contact:

Resolving '#' when displaying documents

#1

Postby Simon » Mon Jun 14, 2010 8:39 am

Hi all

A strange problem has surfaced during test. I am using the display command to allow a user to access a Windows document by resolving the file path as a URL, like so:

Code: Select all

display 'C:\Simon\Test.doc';
This works fine in most cases, unless the filepath contains a '#' character, for example:

Code: Select all

display 'C:\#Simon\Test.doc';
In this case, the user gets the following Windows error:

"Windows cannot find '(null)' Make sure you typed the name correctly, and then try again. To search for a file, click the Start button, and then click Search."

I have tried numerous workarounds, including replacing the '#' symbol with the ASCII code and the HTML code, but nothing seems to do the job. Is it because the browser is trying to render the '#' as a fragment identifier? If anyone can drop me a hint, it will be greatly appreciated.

Cheers
Simon
0 x

Who is online

Users browsing this forum: No registered users and 107 guests