473,503 Members | 1,646 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

reference in html page

Hi,

I have a little problem and I was hoping that someone could help
me.

I have installed on my PC, the server web apache. Eveything works
fine and I have started to create some pages.

In the main directory of apache, I have my main page.

In the c:/siteweb, I have an html page to display some pictures.

By themselves, those 2 pages are displayed correctly. It is when
I want to link them together I have some problems.

On the main page (index.html), I have placed a gif file that
when clicked should load the the page inside the siteweb.

The first version of the index.html was a link to the photos.html

hfref="file:///c:/siteweb/photos.html"
but when I click the gif file, I can see the url displayed on the
status bar of mozilla, but when I click, nothing happens.

I changed to href="c:/siteweb/photos.html", then I am getting
an error saying the c is not a registered protocol.

Then href="/siteweb/photos.html", but then mozilla displays
an error saying that url siteweb/photos.html is not on the server.

I precise that everything is local, to access my home page,
I type in mozilla http://10.0.0.1
where 10.0.0.1 is my local IP adress given by my router.

Thanks in advance.

--
Jean-Yves SIMON E-mail : jy*****@tif.ti.com
Jul 20 '05 #1
12 2255
jy*****@rdss388.tif.ti.com (Jean-Yves Simon) wrote:
The first version of the index.html was a link to the photos.html

hfref="file:///c:/siteweb/photos.html"
Why? Apart from the misspelled attribute name, there's the problem that
you are referring to a file with a file: URL which is by definition
strongly machine-dependent. When moving pages onto the Web, or even
inside your own disk, such URLs need to be fixed. Use relative URLs like
href="photos.html" instead.
I changed to href="c:/siteweb/photos.html", then I am getting
an error saying the c is not a registered protocol.
Not surprisingly.
Then href="/siteweb/photos.html", but then mozilla displays
an error saying that url siteweb/photos.html is not on the server.
Well, is it there? The URL used is relative to a server root, with the
server defined by the base URL, which had better be defined.
I precise that everything is local, to access my home page,


Well, then it's not authoring for the WWW, is it?

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 20 '05 #2
I believe that you have not configured your server properly.
The reason why the pages are working separately is that
you are loading them as files from your local disc and bypassing
apache. You should use localhost/index.html or
http://127.0.0.1/index.html to make sure that you've gotten
your server properly running.
Also, I suggest moving any web pages outside your apache
directory as safer practise. Have them all be under your
c:/siteweb directory.

Good luck,
Csaba Gabor

"Jean-Yves Simon" <jy*****@rdss388.tif.ti.com> wrote in message
news:cg**********@home.itg.ti.com...
Hi,

I have a little problem and I was hoping that someone could help
me.

I have installed on my PC, the server web apache. Eveything works
fine and I have started to create some pages.

In the main directory of apache, I have my main page.

In the c:/siteweb, I have an html page to display some pictures.

By themselves, those 2 pages are displayed correctly. It is when
I want to link them together I have some problems.

On the main page (index.html), I have placed a gif file that
when clicked should load the the page inside the siteweb.

The first version of the index.html was a link to the photos.html

hfref="file:///c:/siteweb/photos.html"
but when I click the gif file, I can see the url displayed on the
status bar of mozilla, but when I click, nothing happens.

I changed to href="c:/siteweb/photos.html", then I am getting
an error saying the c is not a registered protocol.

Then href="/siteweb/photos.html", but then mozilla displays
an error saying that url siteweb/photos.html is not on the server.

I precise that everything is local, to access my home page,
I type in mozilla http://10.0.0.1
where 10.0.0.1 is my local IP adress given by my router.

Thanks in advance.

--
Jean-Yves SIMON E-mail : jy*****@tif.ti.com

Jul 20 '05 #3
Hi,

Thanks for your reply.
Jukka K. Korpela (jk******@cs.tut.fi) wrote:
jy*****@rdss388.tif.ti.com (Jean-Yves Simon) wrote:
The first version of the index.html was a link to the photos.html

hfref="file:///c:/siteweb/photos.html" Why? Apart from the misspelled attribute name, there's the problem that
you are referring to a file with a file: URL which is by definition
strongly machine-dependent. When moving pages onto the Web, or even
inside your own disk, such URLs need to be fixed. Use relative URLs like
href="photos.html" instead.
This is what I liked to do. So now, I have to find where to reference
the c:/siteweb path so that photos.html can be appended after this
path (if I understand correctly).

I changed to href="c:/siteweb/photos.html", then I am getting
an error saying the c is not a registered protocol. Not surprisingly. Then href="/siteweb/photos.html", but then mozilla displays
an error saying that url siteweb/photos.html is not on the server. Well, is it there? The URL used is relative to a server root, with the
server defined by the base URL, which had better be defined.
Yes, I am sure it is there.
I precise that everything is local, to access my home page,

Well, then it's not authoring for the WWW, is it?


I want to test it locally, before going to dyndns and "register"
a domain name. Is that not a good idea to test it locally ?
because from inside my nework, when I registered simon.myphotos.cc
I could not access my web site.

Thanks and regards
Jean-Yves.
Jul 20 '05 #4
Csaba Gabor (Cs***@z6.com) wrote:
I believe that you have not configured your server properly.
The reason why the pages are working separately is that
you are loading them as files from your local disc and bypassing
apache. You should use localhost/index.html or
http://127.0.0.1/index.html to make sure that you've gotten
your server properly running.
Also, I suggest moving any web pages outside your apache
directory as safer practise. Have them all be under your
c:/siteweb directory.


Thanks, I will try that.

Regards
Jean-Yves,

Jul 20 '05 #5
Csaba Gabor wrote:
I believe that you have not configured your server properly.
The reason why the pages are working separately is that
you are loading them as files from your local disc and bypassing
apache. You should use localhost/index.html or
http://127.0.0.1/index.html to make sure that you've gotten
your server properly running.
Also, I suggest moving any web pages outside your apache
directory as safer practise. Have them all be under your
c:/siteweb directory.

Good luck,
Csaba Gabor

"Jean-Yves Simon" <jy*****@rdss388.tif.ti.com> wrote in message
news:cg**********@home.itg.ti.com...
Hi,

I have a little problem and I was hoping that someone could help
me.

I have installed on my PC, the server web apache. Eveything works
fine and I have started to create some pages.

In the main directory of apache, I have my main page.

In the c:/siteweb, I have an html page to display some pictures.

By themselves, those 2 pages are displayed correctly. It is when
I want to link them together I have some problems.

On the main page (index.html), I have placed a gif file that
when clicked should load the the page inside the siteweb.

The first version of the index.html was a link to the photos.html

hfref="file:///c:/siteweb/photos.html"
but when I click the gif file, I can see the url displayed on the
status bar of mozilla, but when I click, nothing happens.

I changed to href="c:/siteweb/photos.html", then I am getting
an error saying the c is not a registered protocol.

Then href="/siteweb/photos.html", but then mozilla displays
an error saying that url siteweb/photos.html is not on the server.

I precise that everything is local, to access my home page,
I type in mozilla http://10.0.0.1
where 10.0.0.1 is my local IP adress given by my router.

Thanks in advance.

--
Jean-Yves SIMON E-mail : jy*****@tif.ti.com


A: Because it messes up the order in which people normally read text.

Q: Why is top-posting such a bad thing?

A: Top-posting.

Q: What is the most annoying thing on usenet?

--
/Arne
Jul 20 '05 #6
Csaba Gabor wrote:
I believe that you have not configured your server properly.
The reason why the pages are working separately is that
you are loading them as files from your local disc and bypassing
apache. You should use localhost/index.html or
http://127.0.0.1/index.html to make sure that you've gotten
your server properly running.
Also, I suggest moving any web pages outside your apache
directory as safer practise. Have them all be under your
c:/siteweb directory.

Good luck,
Csaba Gabor

"Jean-Yves Simon" <jy*****@rdss388.tif.ti.com> wrote in message
news:cg**********@home.itg.ti.com...
Hi,

I have a little problem and I was hoping that someone could help
me.

I have installed on my PC, the server web apache. Eveything works
fine and I have started to create some pages.

In the main directory of apache, I have my main page.

In the c:/siteweb, I have an html page to display some pictures.

By themselves, those 2 pages are displayed correctly. It is when
I want to link them together I have some problems.

On the main page (index.html), I have placed a gif file that
when clicked should load the the page inside the siteweb.

The first version of the index.html was a link to the photos.html

hfref="file:///c:/siteweb/photos.html"
but when I click the gif file, I can see the url displayed on the
status bar of mozilla, but when I click, nothing happens.

I changed to href="c:/siteweb/photos.html", then I am getting
an error saying the c is not a registered protocol.

Then href="/siteweb/photos.html", but then mozilla displays
an error saying that url siteweb/photos.html is not on the server.

I precise that everything is local, to access my home page,
I type in mozilla http://10.0.0.1
where 10.0.0.1 is my local IP adress given by my router.

Thanks in advance.

--
Jean-Yves SIMON E-mail : jy*****@tif.ti.com


A: Because it messes up the order in which people normally read text.

Q: Why is top-posting such a bad thing?

A: Top-posting.

Q: What is the most annoying thing on usenet?

--
/Arne
Jul 23 '05 #7
Jean-Yves Simon wrote:

In the c:/siteweb, I have an html page to display some pictures.
Is "c:/siteweb" the DocumentRoot configured in Apache?
hfref="file:///c:/siteweb/photos.html"
but when I click the gif file, I can see the url displayed on the
status bar of mozilla, but when I click, nothing happens.
Try href="file://c:/siteweb/photos.html"
BTW photos.html is probably not a GIF file.
Then href="/siteweb/photos.html", but then mozilla displays
an error saying that url siteweb/photos.html is not on the server.

Try href="/photos.html" since /siteweb is your DocumentRoot.

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jul 23 '05 #8
Jean-Yves Simon wrote:
I want to test it locally, before going to dyndns and "register" a
domain name. Is that not a good idea to test it locally ?


It is a good idea. And the best way to do it is to set up a web server
on your machine. Apache is free and available for Unix and Windows, at
least. Be sure to take some security measures to prevent outside access.

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 23 '05 #9
Jean-Yves Simon said the following on 20/08/2004 14:37:
I want to test it locally, before going to dyndns and "register"
a domain name. Is that not a good idea to test it locally ?
because from inside my nework, when I registered simon.myphotos.cc
I could not access my web site.


Not really HTML related, but you could add:

127.0.0.1 simon.myphoyos.cc

... to C:\WINNT\system32\drivers\etc\hosts (this path is for Win2k and
probably for WinXP, don't know for other Windows versions) so that it
does resolve to your PC.

--
Regards
Harrie
Jul 23 '05 #10
"Arne" <ar**@luras.nu> wrote in comp.infosystems.www.authoring.html:
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

A: Top-posting.
Q: What is the most annoying thing on usenet?


All true -- but you could have made your point without quoting the
entirety of the previous article.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Jul 23 '05 #11
Stan Brown wrote:
"Arne" <ar**@luras.nu> wrote in comp.infosystems.www.authoring.html:
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

A: Top-posting.
Q: What is the most annoying thing on usenet?

All true -- but you could have made your point without quoting the
entirety of the previous article.


It was part of my point to leave it all there, this time. <g>

--
/Arne
Jul 23 '05 #12
jmm-list-gn (jm***************@sohnen-moe.com) wrote:
Jean-Yves Simon wrote:

In the c:/siteweb, I have an html page to display some pictures.
Is "c:/siteweb" the DocumentRoot configured in Apache?

hfref="file:///c:/siteweb/photos.html"
but when I click the gif file, I can see the url displayed on the
status bar of mozilla, but when I click, nothing happens.

Try href="file://c:/siteweb/photos.html"
BTW photos.html is probably not a GIF file.


Hi,

You are right, photos.html is the html code to display my photos.
Most of the html have been generated by a jalbum. photos.html
is my "own creation" to display a USA map (it was a USA trip)
before the main code to show the photos. As suggested by another
poster, I am first reinstalling the apache web server.
Thanks for the suggestion also. Once the install finished, I
will update the documentroot variable in the Apache conf file.

Thanks and regards.

Then href="/siteweb/photos.html", but then mozilla displays
an error saying that url siteweb/photos.html is not on the server.

Try href="/photos.html" since /siteweb is your DocumentRoot.

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)


--
Jean-Yves SIMON E-mail : jy*****@tif.ti.com
Jul 23 '05 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1614
by: learner | last post by:
Hi, In a page, i have many links. I have some functions in a global file which is included in all linked pages. I want to have a reference to a window which is to be opened on clicking one link...
12
5386
by: marcadonis | last post by:
Hi! Does anybody know of a way that I can keep a reference to an object that I can then reuse? I tried various approaches using navigator, but these all fail in an iframe due to premission...
9
2155
by: Moe Sizlak | last post by:
Hi There, I am trying to write the selected value of a listcontrol when a button is clicked and I keep getting the error "object not set to a reference of an object". The libox itself is in a...
7
1889
by: Steve Bugden | last post by:
Hi, I am trying to reference an html page from an aspx file. The intention is that the html file will contain the content for my web site and the aspx will contain the navigation, logo etc. Then...
0
1282
by: Abraham Andres Luna | last post by:
i have a master page: <%@ Master Language="C#" %> <html> <head> <title>CRM - RDK Truck Sales & Service</title> </head> <body> <form runat="server"> <asp:contentplaceholder...
2
3033
by: Jake Barnes | last post by:
Using javascript closures to create singletons to ensure the survival of a reference to an HTML block when removeChild() may remove the last reference to the block and thus destory the block is...
8
1968
by: Charlie J | last post by:
I have a real stumper. I added a server side table to a home page that has two other server side tables on it that have been working great. In Visual Studio everything works great. When I put...
1
4658
by: Michel Couche | last post by:
Hello, I am starting the development of a newsletter The use of the class MailMessage of System.Net.Mail is quite straightforward for usual contact forms but my question here is "How can I...
3
2556
by: SAL | last post by:
I am getting the following ERROR in my WebApp on line 30: Server Error in '/TestWebApp' Application. -------------------------------------------------------------------------------- Object...
2
2585
by: Simon Rigby | last post by:
Hi folks, A bizarre problem I am having. I have a treeview which is bound to an XmlDataSource. The XMLDataSource.Data property is set to the result of a function that generates an XML...
0
7198
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7072
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7271
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6979
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5570
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1498
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.