Solved

How to have Firefox convert %20 back to spaces for a plugin?

Posted on 2008-06-13
2
375 Views
Last Modified: 2013-12-07
I have an internal webpage that was setup with links to many pdf files by someone a while back. The file names of the pdfs have spaces between the names. Example: http://mysite.com/pdfs/big car.pdf

If these links are opened in IE, they resolve just fine with %20 in the spaces, the pdf opens fine: http://mysite.com/pdfs/big%20car.pdf

But if I use Firefox it resolves the name the same way but can't open the pdf in Adobe, I get 'page cannot be displayed'. I've been told that this is because Firefox can't convert the %20 back to a space when it goes to the adobe plug-in.

Anyone know how to fix Firefox so it can concert 420 back to spaces when sending to a plugin?
0
Comment
Question by:yuhs
  • 2
2 Comments
 
LVL 54

Accepted Solution

by:
b0lsc0tt earned 500 total points
ID: 21783033
yuhs,

I am not sure I understand you correctly or you got good info on the problem and Firefox.  Can you do a test.  Have the URL in the href of the link use the encoding (i.e. %20) instead of a space.  So if you current link that works in IE looks like the following in the html source:

<a href="http://mysite.com/pdfs/big car.pdf">PDF</a>

Then make it:

<a href="http://mysite.com/pdfs/big%20car.pdf">PDF</a>

What is the result of that link in Firefox?  I believe it will work.  The problem isn't really converting %20 to space for the plug in but a valid URL in the link.  Spaces aren't valid for a URL and will cause validation issues if used like example 1 above.

If I am right then do you have the option of fixing the links and their html?

Let me know if you have any questions or need more information.

b0lsc0tt
0
 
LVL 54

Expert Comment

by:b0lsc0tt
ID: 22080484
Please explain the B grade.  Since you accepted this and made no comment at all it would seem you got your answer and all the info you need.  If so an A grade is the appropriate grade (http://www.experts-exchange.com/help.jsp#hi97).  If a mistake was made or you have a question about grading here then please let me know.  If you still have a question and need help then let me know.  Otherwise please justify the grade.
Thanks for the fun question.
bol
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question