Forum Moderators: open
Then recently I started using a new website host, Phenominet, for their low cost unlimited data transfer package for not-for-profit sites. They didn't offer a text editor, so I continued to edit at another site and learned how to FTP from the website host with the text editor to my PC and then to Phenominet.
So I now have a copy of everything on my PC.
Well, today the website host with the text editor upgraded their file manager and did away with the text editor. So now I need to learn how to edit on my PC.
I have two problems/questions:
1. When I attempt to edit the html files on my PC with Notepad (Is this the best editor to use?), it doesn't find them because it expects .txt files and they all end in .html.
2. With Internet Explorer I can access my pages right off my PC with c:\... but the pages don't find the graphics in the subdirectories. I reference them with, for example:
graphics/picture.gif
I have seen coding with:
/graphics/picture.gif
but have left the second / out because it never seemed to be needed. Is this the problem? (I can't try it easily until I resolve problem 1.)
Thanks, and feel free just to point me to a tutorial if you know of one.
Thank God for forums!
My personal favorite is Homesite [macromedia.com]. But everyone around here has their own favorite.
The answer to your second question is:
If the URL is local reference not the full URL starting with http:/ then a slash in the beginning means the root of your domain name. So "/something" means domain.com/something, but "something.gif" means local directory. So if your page was at domain.com/faq/ then the URl for something.gif would be domain.com/faq/something.gif
On your image problem - did you download the images into a subdirectory with the proper name on your local machine? Relative URLs should work locally IF the subdirectory and image files are in place.
[edited by: tedster at 8:35 pm (utc) on June 2, 2002]
The page displays under:
C:\Websites\cph\index.html
The graphic is there and it is:
C:\Websites\cph\graphics\new_h21w32.gif
though my browser won't display it with the above URL. It seems to be trying to display it with Paint.
Does it matter that in my HTML I use / but my PC seems to be expecting \?
Thanks!
Site-Aid:
[amiasoft.com...]
I don't believe in a lot of bells and whistles for a beginner, it's enough to pick up code without having to learn complicated software. imho the simpler the better until more is absolutely needed for frequent use.
You can just type the code, exactly like in Notepad, but there are user-friendly buttons to click to insert code which saves the wrists, very important if someone has Carpal Tunnel Syndrome or tendinitis from an injury like I did.
For that location you will need to do this.
<img src=graphics/new_h21w32.gif>
Editing it locally is tricky, because when you move it to the web you may have different local references. I try to edit all my HTML locally, but review the changes after I upload them.
I tried Key_Master's idea and it works. Putting <base href="http://www.yourdomain.com/"> in the <head> tags. Though I'd still like the graphics to display from my PC rather than a webhost site.
Good enough for now. Thanks everyone.
This is assuming that the page you are editing resides in the folder gph and the graphics folder is directly below it.
You must save the edit before you will be able to see the changes. Base url is a good idea, but not required for viewing locally. Try it and see if that works (it does for me!) ;)
[edited by: papabaer at 11:34 pm (utc) on June 2, 2002]