text character "space" converts into "%20" which kills my link

D

debilunq

I'm trying to set up links that open a new window while staying in my
website. I used a link with spaces in it, but the spaces convert to %20. I
tried changing them by hand but they just convert back to %20. I tried to
just eliminate the spaces, but the link still won't work. Any ideas how to
overide whatever causes the spaces to change?
 
D

DavidF

Don't use spaces in you links. Don't use spaces or anything other than a
dash or an underscore in file names that you are going to use on the
internet. And I recommend that you don't use underscores, as when the link
is underlined, you can't tell if there is a space or an underscore, which
leads to more errors. Also keep in mind that Unix based servers are case
sensitive and most "experts" recommend using only lower case. So at least be
very consistent in the way you go from lower to upper case in file names. It
is easy to mess up.

If you are linking to images, rename the image file names, rewrite your
links, and chances are your problems will go away. If not, provide the links
here and we'll take a look.

DavidF
 
D

debilunq

DavidF, thanks for your help. I am trying to use a solution paper in the
"Help" section of Publisher called "Answer Box: Create a hyperlink in
Publisher that opens in a new window". I'm not sophisticated enough, yet, to
write my own codes, so I am trying to cut and paste hers. It just isn't
working. I've tried removing all of the spaces, both in the HTML code
fragment and in the hyperlinks, but that didn't resolve it. I'm out of
tricks to try to troubleshoot the code. Maybe this "Answer Box" just isn't
correct.
 
D

DavidF

In the future please be more specific. I am assuming that you are
referencing, the same code that is discussed in the next post.

Reference:
http://office.microsoft.com/en-us/publisher/HA011587451033.aspx
describes two methods.

And if you choose to use the ECMAScript code approach note that the first
javascript code snippet is incorrect on the website. Use this instead:

<script language="JavaScript" type="text/javascript">function Show(Url,
Name, Features) { window.open(Url, Name, Features); }</script>

DavidF
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top