Results 1 to 6 of 6
I have used NVU for a little while now (a few days), and decided to create my first web page.
It all went well (as I have set it all ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-27-2006 #1
nvu: no images?
I have used NVU for a little while now (a few days), and decided to create my first web page.
It all went well (as I have set it all up locally for the moment), the page previews fine in firefox, but no images show up. It only shows the alternative text. I have tried this with another image, with the same thing happening again.
I feel like a real Noob now, cause I bet that it is something simple. Or could it be apache's fault, and not a problem with nvu?
~weed"Time has more than one meaning, and is more than one dimension" - /.unknown
--Registered Linux user #396583--
- 03-27-2006 #2
It could be a problem with the image names, or how you're specifying the path to them. Can you post a snippet of your page's code that includes references to one or two images?
Stand up and be counted as a Linux user!
- 03-27-2006 #3Linux Engineer
- Join Date
- Oct 2004
- Location
- Vancouver
- Posts
- 1,366
A similar problem happened to me occaisionally back when I used apache so itcould be an apache problem with the permissions of the folder the images are in, you could possibly try lighttpd, or any httpd similar to apache, and see if the problem persists, if not then apache is not the problem.
Operating System: GNU Emacs
- 03-29-2006 #4
Funny, I link to a local file, and it doesn't work. But when I link it to an online file, it works.
this is the updated version, the original version had file:///<path_to_file> instead of the online site.Code:<h2><img style="width: 287px; height: 426px; float: left;" alt="Ozzy Osbourne" title="Um,,, Ecky!" src="http://chrisj[dot]atspace[dot]com/sdred.jpg"></h2>
the [dot] thingys were added in for web viewing for the hell of it.
~weed"Time has more than one meaning, and is more than one dimension" - /.unknown
--Registered Linux user #396583--
- 03-29-2006 #5Are you hosting the site on your own machine? If so, using an absolute pathname is theoretically feasible; otherwise it just won't work. And even if you do serve your own pages, it's advisable to stay in the habit of using relative pathnames, so that if you ever move your web content, things like this don't break.
Originally Posted by Weedman
For example, if you specify the location of a picture as "file:///var/www/mysite/images/pic1.jpg" then it will work as long as the picture has that exact pathname. If you move the "mysite" directory and its contents somewhere else on your computer, then the link is broken. Likewise, if you upload it to another web server, they won't put it straight onto their "/var/www" (if that's what they have), so that will break it, too.
However, if your html doc is in, say, the /var/www/mysite/html directory, then you can set the pic's path as "../images/pic1.jpg" and that will work no matter where you move the mysite directory.Stand up and be counted as a Linux user!
- 03-30-2006 #6
Yeah, I am hosting the site locally (or I was). The pathname to the image was perfect, but the image was in a diferent directory to the html files.
I like the idea of having the images in the htdocs folder. Except maybe thu a subfolder.
Cool.
~weed"Time has more than one meaning, and is more than one dimension" - /.unknown
--Registered Linux user #396583--


Reply With Quote
