Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with a href links

Status
Not open for further replies.

PaulBricker

Programmer
Sep 25, 2002
3,554
US
The second link below does not work.

<a href="\\serverName\dbpysplant\leadcomplianceletters\91 Park Street Lead.pdf">91 Park St Lead Report</a>

<a href=" Park Street Lead.pdf">91 Park St Lead Report</a>Does not work

<a href="\\serverName\dbpysplant\tenantleadlaw\tenant_note.doc">Tenant Lead Law Document</a>

<a href=" Lead Law Document</a>

All the rest of them work. I need the absolute paths so that some other folks on the network can see the documents. I can't figure this out. I've got other .pdf files that use a similar absolute path with no problems. I thought some fresh eyes might help.

Thanks

Paul
 
Probably because URL's cannot have spaces in them so this:

[red]<a href=" Park Street Lead.pdf">91 Park St Lead Report</a>[/red]

is invalid.

You either need to take the spaces and convert them to valid URLs, or change the name of the pdf file to something without spaces.

To make it a vlid URL convert all spaces to %20 strings.

[red]<a href="[blue]%20[/blue]Park [blue]%20[/blue]Street[blue]%20[/blue]Lead.pdf">91 Park St Lead Report</a>[/red]

Or make the file name unspaced. using underscores instead.
91[red]_[/red]Park[red]_[/red]Street[red]_[/red]Lead.pdf



----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Well I wondered about the spaces and case sensitive and things, but it didn't seem to make any difference.
I have tried your suggestion changing the URL of the document so it did not contain spaces, and that made not difference. I have the exact same permissions for both documents and as I said, I have similar URL's that work.
This one works fine

<a href = " - PS 001 Travel Policies.pdf">Travel Policy Statement</a>

My main focus is database administration but have created these two intranet sites to try and bring some of the documentation for our school online (ecology and all that environmental stuff).

Thanks for the response.

Paul
 
I'm guessing that 91 Park Street Lead.pdf is not the exact name of the PDF file.

[small]"Mom........MEATLOAF!!!! DANG!!!![/small]
<.
 
One of the reasons I posted this question was because I've been staring at it for a few hours and I didn't trust that I wasn't missing something like a typo. But, alas, that is the name of the .pdf file. The first link above with the UNC path points to the same file. Same spelling on the filename..etc.
I tried adding the folder name into the URL, and that didn't help..tried adding the both folder names and no luck.
I was actually hoping it was something really stupid that I was missing so I could get on with this bloody thing.

Thanks for the response. I'll be happy to hear any other suggestions as well.

Paul
 
I tried changing the slashes, spaces, filename..and a few other things but nothing seems to make a difference. I have a feeling it will be something with permissions although my permissions on all the folders and files is exactly the same. The server guru has been out sick, so when he gets back I'll have a sitdown with him and see if we can't trash it out.
If anyone has any other suggestions, I will be happy to try them. If not, I'll post the solution when I find it.

Thanks everyone. If nothing else, it confirmed that I had tried all the appropriate solutions before bitching at someone else.

Paul
 
Well, it's fixed, but I don't understand it.
Our server guy created a Virtual folder that I have added to the http path. Seems to have taken care of the problem although just to get the data in a correct state, I will change file names to eliminate spaces(I didn't create the documents originally so I'm blameless) [2thumbsup].
If anyone would like to give me an explanation of Virtual Folders, I'd be happy to listen. I will Google it as well.
Again, thanks everyone for your input.

Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top