FP2002 - Hyperlinks are misdirected erroneously coded

K

kcn

FP2002 is misdirecting hyperlinks that I (think) I'm entering accurately.
I'd appreciate any insight as to what might be mis-firing here. The
problem is that I'm directing the link to a file in another directory and
the hyperlink (or picture properties) is retaining the current directory
name in its path ... and just adding the other directory onto the end.

SAMPLE CONFIGURATION:
For instance ...imagine this set-up:
WEB-2
.........index.htm
.........\EXAMPLES
...................\Gary_help.htm
.........\PICTURES
...................\baby.jpg
.........\MOVIES
...................\shortmovie.wmv

EXAMPLE:
On WEB-2 / EXAMPLES / Gary_help.htm I link to the picture baby.jpg, which is
located in another directory (PICTURES).

The link is called from............WEB-2 / EXAMPLES / Gary_help.htm
and should go to....................WEB-2 / PICTURES / baby.jpg
but instead it points to...........WEB-2 / EXAMPLES / PICTURES / baby.jpg

Of course the target can't be found ... there IS NO subdirectory PICTURES
under EXAMPLES!

This happens whether it's a hyperlink (to a .wmv, for example) or to an
inserted picture (linking nowhere).

ATTEMPT TO CORRECT:
In one attempt at correcting this, I moved all links out of a sub-directory
and put them on the same level as the file calling the links. But it still
doesn't work. In this instance, it doesn't tack another directory onto the
end of its path, but I get the "page cannot be displayed" or "server cannot
be found" for .wmv's, etc.

WHAT'S DIFFERENT NOW:
I've never had this problem before, and the only thing that's different is:
This problem occurs on WEB-2, which is mapped to a subdirectory of WEB-1.
Thus, the two domains are:
WEB-1.com = /usr/www/users/johndoe/WEB-1
WEB-2.com = /usr/www/users/johndoe/WEB-2

SET-UP ON COMPUTER:
Here's how the web is set up on my computer:
C:\Documents and Settings\johndoe\My Documents\My Webs\WEB-2
.............................................................................
....................\WEB-2\index.htm
.............................................................................
....................\WEB-2\shortmovie.wmv
.............................................................................
....................\WEB-2\baby.jpg

SET UP ON HOST:
/usr/www/users/johndoe/WEB-2
...................................../WEB-2/index.htm
..................................../WEB-2/shortmovie.wmv
.................................../WEB-2/baby.jpg

WHAT I DO TO CREATE THIS HYPERFINK:
· Highlight the text I want to become a hyperlink
· Right click
· Hyperlink. [Insert Hyperlink screen appears]
· The selections on the Insert Hyperlink screen are:
· Link to: Existing File or WebPage
· Text to display: ShortMovie..................... which appears
on the webpage as the title

of the movie.
· Look in: Current Folder................. which makes
the "Look in:" box appear:
· Look in: WEB-2...........................
Subdirectory under C:\Documents and

Settings\johndoe\My Documents\My

Webs
· Address: shortmovie.wmv...............which is the
name of the .wmv file on my

Computer
· I save the file
· Preview in browser = perfect. (Although, granted, the URL shown
is C:\Documents.. rather than an actual www URL).
· I publish the files with FrontPage, sending both index.htm and
shortmovie.wmv (and everything else in between).
· I delete all cookies, all temporary files, all history. I open a
new browser, refresh my screen, and . the link is dead, leading to a "Cannot
connect to server" message.
· I right click on the link, and choose "Copy shortcut."
SHORTCUT READS:
· I paste the shortcut in Notebook, and it reads:
http://www.WEB-2.com/shortmovie.wmv (if it's on the
same directory) - or -

http://www.WEB-2.com/examples/pictures/shortmovie.wmv (if it's in another
directory)
SOURCE FILE READS:
· I view the source on-line, and it reads: <a
href="shortmovie.wmv"> (same directory) -and/or-
src="examples/co_Jenn_holds_AJ.gif" (which is
actually where it is, but it won't show up!) -or-
http://www.WEB-2.com/examples/pictures/baby.jpg
(when called from 'examples' directory and should point to
WEB-2.com/pictures/baby.jpg


THANKS!
Thanks so much. Sorry for the length. I type rapidisimo..
 
J

Jim Buyens

Huh?

If the link is to a file in the same folder, just specify
the file name.

If the link is to a file in a subfolder, specify the
subfolder name, a slash, and the file name. For example:
from /myweb/myfolder/mypage.htm
to /myweb/myfolder/tomatos/plants.htm
the relative URL is tomatos/plants.htm.

If the link is to a file in a peer folder, enter ../ for
each folder level you need to get on track. For example:
from /myweb/myfolder/mypage.htm
to /myweb/minerals/rocks/hardplaces.htm
the relative URL is ../minerals/rocks/hardplaces.htm.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------



-----Original Message-----
FP2002 is misdirecting hyperlinks that I (think) I'm entering accurately.
I'd appreciate any insight as to what might be mis- firing here. The
problem is that I'm directing the link to a file in another directory and
the hyperlink (or picture properties) is retaining the current directory
name in its path ... and just adding the other directory onto the end.

SAMPLE CONFIGURATION:
For instance ...imagine this set-up:
WEB-2
.........index.htm
.........\EXAMPLES
...................\Gary_help.htm
.........\PICTURES
...................\baby.jpg
.........\MOVIES
...................\shortmovie.wmv

EXAMPLE:
On WEB-2 / EXAMPLES / Gary_help.htm I link to the picture baby.jpg, which is
located in another directory (PICTURES).

The link is called from............WEB-2 / EXAMPLES / Gary_help.htm
and should go to....................WEB-2 / PICTURES / baby.jpg
but instead it points to...........WEB-2 / EXAMPLES / PICTURES / baby.jpg

Of course the target can't be found ... there IS NO subdirectory PICTURES
under EXAMPLES!

This happens whether it's a hyperlink (to a .wmv, for example) or to an
inserted picture (linking nowhere).

ATTEMPT TO CORRECT:
In one attempt at correcting this, I moved all links out of a sub-directory
and put them on the same level as the file calling the links. But it still
doesn't work. In this instance, it doesn't tack another directory onto the
end of its path, but I get the "page cannot be displayed" or "server cannot
be found" for .wmv's, etc.

WHAT'S DIFFERENT NOW:
I've never had this problem before, and the only thing that's different is:
This problem occurs on WEB-2, which is mapped to a subdirectory of WEB-1.
Thus, the two domains are:
WEB-1.com
= /usr/www/users/johndoe/WEB-1
WEB-2.com
= /usr/www/users/johndoe/WEB-2
SET-UP ON COMPUTER:
Here's how the web is set up on my computer:
C:\Documents and Settings\johndoe\My Documents\My Webs\WEB-2
......................................................... .....................
....................\WEB-2\index.htm
......................................................... .....................
....................\WEB-2\shortmovie.wmv
.........................................................
.....................
....................\WEB-2\baby.jpg

SET UP ON HOST:
/usr/www/users/johndoe/WEB-2
...................................../WEB-2/index.htm
..................................../WEB-2/shortmovie.wmv
.................................../WEB-2/baby.jpg

WHAT I DO TO CREATE THIS HYPERFINK:
· Highlight the text I want to become a hyperlink
· Right click
· Hyperlink. [Insert Hyperlink screen appears]
· The selections on the Insert Hyperlink screen are:
· Link to: Existing File or WebPage
· Text to display:
ShortMovie..................... which appears
on the webpage as the title

of the movie.
· Look in: Current
Folder................. which makes
the "Look in:" box appear:
· Look in: WEB- 2...........................
Subdirectory under C:\Documents and

Settings\johndoe\My Documents\My

Webs
· Address:
shortmovie.wmv...............which is the
name of the .wmv file on my

Computer
· I save the file
· Preview in browser = perfect. (Although, granted, the URL shown
is C:\Documents.. rather than an actual www URL).
· I publish the files with FrontPage, sending both index.htm and
shortmovie.wmv (and everything else in between).
· I delete all cookies, all temporary files, all history. I open a
new browser, refresh my screen, and . the link is dead, leading to a "Cannot
connect to server" message.
· I right click on the link, and choose "Copy shortcut."
SHORTCUT READS:
· I paste the shortcut in Notebook, and it reads:
http://www.WEB-
2.com/shortmovie.wmv (if it's on the
same directory) - or -

http://www.WEB-2.com/examples/pictures/shortmovie.wmv (if it's in another
directory)
SOURCE FILE READS:
· I view the source on-line, and it reads: <a
href="shortmovie.wmv"> (same directory) -and/or-
src="examples/co_Jenn_holds_AJ.gif" (which is
 
K

kcn

Sorry if this is somewhat of a repeat. SEND happened before my fingers
wanted it to. Jim - apologies but no way can I make this short. As a
courtesy, I've started just giving you an example, quoting what my FrontPage
HTML reads and quoting what Internet Explorer SOURCE reads. Maybe that's
enough for you and you'll see right off what's happening, and why. By no
means are these examples 'always' ... sometimes you'll see that it's clear
that what's being sent to the WWW is different than what my FrontPage HTML
says. In other instances, it's the same, and should be correctly coded, but
it is NOT finding the object.

NOTE that 'PREVIIEW IN BROWSER' views each problem PERFECTLY, if that makes
any difference.
=========================

Our website is www.mediator-dude.com (all references to it on my machine
and the host are simplyt DUDE)
Go to www.mediator-dude.com/xabbex (a sub-folder so friends can see it w/o
everyone being able to link to it)
You are looking at /dude/xabbex/index.htm.(hope this index.htm and the one
for dude isn't confusing)
See a link to benab.wmv.
This movie is located at the top level - simply at /dude/ - the same level
as the index.htm of the MAIN PAGE (mediator-dude.com)
The HTML on my FrontPage reads:
<a href="../Abbe_and_Ben.wmv">
The SOURCE from the internet references
<a href="Abbe_and_Ben.wmv">
RIGHT CLICK / COPY SHORTCUT references
http://www.mediator-dude.com/xabbex/Abbe_and_Ben.wmv

How on earth did this get on the internet if Front Page references it as I
wrote ... simply as <a href="Abbe_and_Ben.wmv"> ??? The movie isn't in the
XABBEX folder! It's in the DUDE folder!!

NOW LOOK AT THIS, TOO:
On that same page, see the red "x" at the top? That's a picture located at
/dude/photogallery/ and is named co_Jenn_holds_AJ.gif"
So to view it, the link must jump to a peer folder, correct?
We're at
/dude/xabbex
and need something from
/dude/photogallery/

My FrontPage HTML references
src="../photogallery/co_Jenn_holds_AJ.gif"
The SOURCE from the internet references
src="photogallery/co_Jenn_holds_AJ.gif"

So why isn't it showing? It's there?


MORE INFO IF THAT'S NOT ENOUGH:

Go to www.mediator-dude.com
You're looking at index.htm.
The first .gif you see - a gift box - displays correctly. It is at
/dude/images/ and is named gift.gif.
SOURCE shows it as <src="images/gift.gif">
This works, so I don't see it as a problem, but per your instructions to
"enter ../ for each folder level you need to get on track" well, there's no
.../ in this SOURCE. Obviously, I don't know hand-coding so I have to rely on
FrontPage.

Now, look at benab just below it.
The link to this movie is on the same page as the gift box -they're both
called from /dude/index.htm
The movie, however, is even CLOSER than the gift.gif. It's on the same
level and doesn't need to navigate backwards through ANY folders.
But click on it, and it won't display.
SOURCE reads: <a href="Abbe_and_Ben.wmv"> which I guess it should, since
it's at the first level (with index.htm).
Right click and COPY SHORTCUT, and it reads
http://www.mediator-dude.com/Abbe_and_Ben.wmv
So why doesn't it show? It's there! Likewise for the remaining three .wmv
links on that page which won't play.

Thanks - sorry if this is confusing. I've written it and shortened it and
added to it until I'm so sick of it I can't stand it. None of it makes any
sense to me.

Thanks so much.
K.C.
Tampa
================


Huh?

If the link is to a file in the same folder, just specify
the file name.

If the link is to a file in a subfolder, specify the
subfolder name, a slash, and the file name. For example:
from /myweb/myfolder/mypage.htm
to /myweb/myfolder/tomatos/plants.htm
the relative URL is tomatos/plants.htm.

If the link is to a file in a peer folder, enter ../ for
each folder level you need to get on track. For example:
from /myweb/myfolder/mypage.htm
to /myweb/minerals/rocks/hardplaces.htm
the relative URL is ../minerals/rocks/hardplaces.htm.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------



-----Original Message-----
FP2002 is misdirecting hyperlinks that I (think) I'm entering accurately.
I'd appreciate any insight as to what might be mis- firing here. The
problem is that I'm directing the link to a file in another directory and
the hyperlink (or picture properties) is retaining the current directory
name in its path ... and just adding the other directory onto the end.

SAMPLE CONFIGURATION:
For instance ...imagine this set-up:
WEB-2
.........index.htm
.........\EXAMPLES
...................\Gary_help.htm
.........\PICTURES
...................\baby.jpg
.........\MOVIES
...................\shortmovie.wmv

EXAMPLE:
On WEB-2 / EXAMPLES / Gary_help.htm I link to the picture baby.jpg, which is
located in another directory (PICTURES).

The link is called from............WEB-2 / EXAMPLES / Gary_help.htm
and should go to....................WEB-2 / PICTURES / baby.jpg
but instead it points to...........WEB-2 / EXAMPLES / PICTURES / baby.jpg

Of course the target can't be found ... there IS NO subdirectory PICTURES
under EXAMPLES!

This happens whether it's a hyperlink (to a .wmv, for example) or to an
inserted picture (linking nowhere).

ATTEMPT TO CORRECT:
In one attempt at correcting this, I moved all links out of a sub-directory
and put them on the same level as the file calling the links. But it still
doesn't work. In this instance, it doesn't tack another directory onto the
end of its path, but I get the "page cannot be displayed" or "server cannot
be found" for .wmv's, etc.

WHAT'S DIFFERENT NOW:
I've never had this problem before, and the only thing that's different is:
This problem occurs on WEB-2, which is mapped to a subdirectory of WEB-1.
Thus, the two domains are:
WEB-1.com
= /usr/www/users/johndoe/WEB-1
WEB-2.com
= /usr/www/users/johndoe/WEB-2
SET-UP ON COMPUTER:
Here's how the web is set up on my computer:
C:\Documents and Settings\johndoe\My Documents\My Webs\WEB-2
......................................................... .....................
....................\WEB-2\index.htm
......................................................... .....................
....................\WEB-2\shortmovie.wmv
.........................................................
.....................
....................\WEB-2\baby.jpg

SET UP ON HOST:
/usr/www/users/johndoe/WEB-2
...................................../WEB-2/index.htm
..................................../WEB-2/shortmovie.wmv
.................................../WEB-2/baby.jpg

WHAT I DO TO CREATE THIS HYPERFINK:
· Highlight the text I want to become a hyperlink
· Right click
· Hyperlink. [Insert Hyperlink screen appears]
· The selections on the Insert Hyperlink screen are:
· Link to: Existing File or WebPage
· Text to display:
ShortMovie..................... which appears
on the webpage as the title

of the movie.
· Look in: Current
Folder................. which makes
the "Look in:" box appear:
· Look in: WEB- 2...........................
Subdirectory under C:\Documents and

Settings\johndoe\My Documents\My

Webs
· Address:
shortmovie.wmv...............which is the
name of the .wmv file on my

Computer
· I save the file
· Preview in browser = perfect. (Although, granted, the URL shown
is C:\Documents.. rather than an actual www URL).
· I publish the files with FrontPage, sending both index.htm and
shortmovie.wmv (and everything else in between).
· I delete all cookies, all temporary files, all history. I open a
new browser, refresh my screen, and . the link is dead, leading to a "Cannot
connect to server" message.
· I right click on the link, and choose "Copy shortcut."
SHORTCUT READS:
· I paste the shortcut in Notebook, and it reads:
http://www.WEB-
2.com/shortmovie.wmv (if it's on the
same directory) - or -

http://www.WEB-2.com/examples/pictures/shortmovie.wmv (if it's in another
directory)
SOURCE FILE READS:
· I view the source on-line, and it reads: <a
href="shortmovie.wmv"> (same directory) -and/or-
src="examples/co_Jenn_holds_AJ.gif" (which is
 
J

Jim Buyens

kcn said:
Sorry if this is somewhat of a repeat. SEND happened before my fingers
wanted it to. Jim - apologies but no way can I make this short. As a
courtesy, I've started just giving you an example, quoting what my FrontPage
HTML reads and quoting what Internet Explorer SOURCE reads. Maybe that's
enough for you and you'll see right off what's happening, and why. By no
means are these examples 'always' ... sometimes you'll see that it's clear
that what's being sent to the WWW is different than what my FrontPage HTML
says. In other instances, it's the same, and should be correctly coded, but
it is NOT finding the object.

I'm still lost in verbiage but on the page
http://www.mediator-dude.com/xabbex/
the link to the co_Jenn_holds_AJ.gif file should be
<img src="../photogallery/co_Jenn_holds_AJ.gif">
and not
<img src="photogallery/co_Jenn_holds_AJ.gif">

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 
K

kcn

Jim: Apols 4 2 many wds.

..gif was bad example - total pilot error. TYVM.

Problem w/ all .wmv's remains [mediator-dude.com, tampamediator.com]. Must
be ST special re: uploading wmv's?

www.mediator-dude.com as example:
Abbe_and_Ben.wmv is at
/dude/
& is called from
/dude/xabbex/

FP's HTML code shows:
<a href="../Abbe_and_Ben.wmv">

IE's SOURCE shows
<a href="../Abbe_and_Ben.wmv">

IE's COPY SHORTCUT shows:
http:/www.mediator-dude.com/Ab be_and_Ben.wmv"

All appears correct ... so why no movie?

Thank you very much! Oops.....TYVM.
K.C.-Tpa
Good 2 know that, 2 help another, SO will plow thru 4,500 wds when SO
smarter could say it clearer in 45.

=======================
I'm still lost in berbiage but on the page
http://www.mediagtor-dude.com/xabbex/
the link to the co_Jenn_holds_AJ.gif file should be
<img scr="../photogallery/co_Jenn_holds_AJ..gif>
 
J

Jim Buyens

kcn said:
Jim: Apols 4 2 many wds.

.gif was bad example - total pilot error. TYVM.

Problem w/ all .wmv's remains [mediator-dude.com, tampamediator.com]. Must
be ST special re: uploading wmv's?

www.mediator-dude.com as example:
Abbe_and_Ben.wmv is at
/dude/
& is called from
/dude/xabbex/

No page at http://www.mediator-dude.com/dude/xabbex/

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 

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