Click to See Complete Forum and Search --> : Html
Punkin
August 14th, 2001, 06:35 AM
Hi all. I am making a webpage and I can't get Internet explorer to open my html as an html document. I saved it as regular text with .html at the end. Whenever I open it IE just open the text document. If you think I messed up me code here it is. Note: the images are in the same directory as the code.
<html>
<head>
<Title>Stoncrete Ltd. Stamped And Colored Concrete</title>
</head>
<body>
<Table>
<tr>
<td>blackfiller.gif</td>
<td>Stoncreteltd</td>
</tr>
<tr>
<td><img src="Home.gif></td>
<td>drive_grass.jpg</td>
</tr>
<tr>
<td>gallery.gif</td>
</tr>
<tr>
<td>Products.gif</td>
</tr>
<tr>
<td>Faqs.gif</td>
</tr>
<tr>
<td>Aboutus.gif</td>
</tr>
<tr>
<td>ContactUs.gif</td>
</tr>
</table>
</body>
</html>
Any Idea what my problem is?
Thanks
FlashOveride
August 14th, 2001, 03:09 PM
What did you create the file in?? Did you save it as somename.html?? Make sure the file is not somename.html.txt!!
The code you have is correct and you should not have a problem with it. You must either have it named incorrectly or something in your brower is not set correctly. Good luck!! If you need more help drop me a line.
Bill
Get your site Flashed Over!!! www.webflashover.com the only place where a flashover can occur and you still live through it.
Punkin
August 14th, 2001, 07:06 PM
its saved as index.html.txt How do I get rid of the .txt?
FlashOveride
August 14th, 2001, 08:55 PM
Well you can open it in note pad and when you choose to
save as:
Under the File name box is "Save File as" change this from text to All Files *.*
Then type the name whatever.html and save.
Or you can just as easy right click the image and rename it to whatever.html You can a message saying that it might be unstable but the file will still work.
Let me know if you have any other problems
Quad
August 14th, 2001, 10:33 PM
Hey Punk....Go to a command prompt and type:
rename [path to file]\document.html.txt document.htm
that will do the trick...
FlashOveride
August 14th, 2001, 10:43 PM
The main program that does this is notepad meaning that the person is working in a windows environment. I am 98% sure of that.
Experience is what tells me this and knowledge is what tells me this person is better off right clicking and renaming. Then again I could be totally wrong.
Lev-Arris
August 15th, 2001, 04:53 PM
Your issue is as mentioned above, notepad will append .txt to any document created in notepad. When you look at the file it may or may not display the .txt extension. Open your my computer, select view menu, folder options, view tab, under Hidden files click Show all files radio button, deselect Hide file extensions for known file types.
This should allow you to see the "real" extension of your files, then just right click the file and rename, remove the .txt from your .html.txt web files.
Chris
August 15th, 2001, 09:52 PM
They solved your problem, but looking at that html hurt my eyes, format it differently like this...
<table>
<tr>
<td></td>
<td></td></tr>
<tr>
<td colspan=2></td></tr>
</table>
or like this....
<table>
<tr><td></td>
<td></td></tr>
</table>
or some other way that you find easy to read.
..:Edit:..
Oh, I'm a moron, this forum doesn't let you indent stuff, well that sucks..... I'm sure you get my point though
Quad
August 15th, 2001, 11:50 PM
Originally posted by FlashOveride
The main program that does this is notepad meaning that the person is working in a windows environment. I am 98% sure of that.
Experience is what tells me this and knowledge is what tells me this person is better off right clicking and renaming. Then again I could be totally wrong.
Experience.......would tell you that what I posted [IS] a [WINDOWS ] command. Not only would it do the trick, it would also help him to understand the command shell a little better.
Knowlege..........is learning the WHOLE environment not just "right clicking" and renaming.
P.S. Chris.....Your HTML standards for syntax are no better than what punkis posted. heh. Kind of like the blind leading the blind.
-Quad
Chris
August 16th, 2001, 12:10 AM
Originally posted by NoNeckJoe
P.S. Chris.....Your HTML standards for syntax are no better than what punkis posted. heh. Kind of like the blind leading the blind.
They look very nice when indented properly and I find them very easy to read, but like I said, try it a couple different ways and see what you find easiest (and don't forget to put the width and height in the img and table tags, they'll load better)
FlashOveride
August 16th, 2001, 08:34 PM
Yes I know what you are using is windows a windows command however. If the file name is a long file name you end up with this
Myhtml f~1.html
I cannot remember the length restriction number however in dos. You are right about needing to know about commands to use in the dos prompt. However for what this guy needs my example is perfect.....not the only way but the quickest and easiest.
Quad
August 16th, 2001, 09:56 PM
This would be true *if* he was using a web server running on Win98 or lower. Being a "web designer" you should know that NT and ALL flavors of Unix support long file names.
hell it could be supercalifragilistexpiallydoshous.htm and would work fine. Not to mention if it is the "home page" then 9 out of 10 time it will be named either index.htm, or default.htm making the long filename issue moot!
Chris
August 16th, 2001, 11:20 PM
www.webflashover.com
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
:D
Sorry, I didn't mean to discredit you. :cool:
Quad
August 16th, 2001, 11:58 PM
heh....Never would have guessed that. :)
Flash...Don't take any of this personally. Were not singling you out. But one of the dangerous things of computer security, programming, networking, OS's, etc. is mis-information. I am sure you can appreciate this being a firefighter.
If someone is posting incorrect or inaccurate information then it is the responsibility of the forum members to collectively dispell the "myths". That is the nice thing about these forums, it is not my word against yours but rather everyones opinions.
Using this model in most cases the majority of like answers are most likely the correct ones. (not always though)
hogfly
August 17th, 2001, 12:24 AM
Flash: you are talking about DOS file names not windows. DOS follows a 8.3 file naming scheme. myhtmlf~1.html is too long. If the filename is longer than 8 it uses only the first six characters of the name(then add ~1). windows has a max file name of 255 characters.
Just wanted to clear that up for other people if they didnt know.
FlashOveride
August 17th, 2001, 02:45 PM
First Reply :
What did you create the file in?? Did you save it as somename.html?? Make sure the file is not somename.html.txt!!
The code you have is correct and you should not have a problem with it. You must either have it named incorrectly or something in your brower is not set correctly. Good luck!! If you need more help drop me a line.
######THE ABOVE IS ALL CORRECT#####
Second Reply:
Well you can open it in note pad and when you choose to
save as:
Under the File name box is "Save File as" change this from text to All Files *.*
Then type the name whatever.html and save.
Or you can just as easy right click the image and rename it to whatever.html You can a message saying that it might be unstable but the file will still work.
Let me know if you have any other problems
######Once Again This is a true statement######
3rd
The main program that does this is notepad meaning that the person is working in a windows environment. I am 98% sure of that. Experience is what tells me this and knowledge is what tells me this person is better off right clicking and renaming. Then again I could be totally wrong.
######Once Again all true#######
4th
Yes I know what you are using is windows a windows command however. <--This was a response to NoNeck Even though this is about the only thing not clear. I was referring to rename which is not actually windows command per say even though you can use it in dos which runs with windows.
If the file name is a long file name you end up with this
Myhtml f~1.html
I cannot remember the length restriction number however in dos. You are right about needing to know about commands to use in the dos prompt. However for what this guy needs my example is perfect.....not the only way but the quickest and easiest.
#######All True just not Clear on one part######
First off he never said what he was running! You said to use rename which is no better than me telling him to right click.
Second I was assuming that he was using Win9x because he was using notepad and yes I know that notepad is available in 2000.
Third ABSOUTELY NOTHING on here is myth or false information!!! I did not mention one thing that cannot be done or give out false information. It was not the same way that you did it and it was the easier most efficient way. Sure there are other ways but he asked a simple question and got a simple answer.
I am still trying to figure out what several people on here are arguing about or should I say debating. Most of the replys on here are due to someone not reading and fully comprehending the post.
HogFly your last post said that the character limit was in dos. Well I said that I was not sure on the limit but I said it rather clear that this was in dos.
Chris : YES I know Front Page BAD!!! My dreamweaver crashed on me so I had to throw things together with front page. However I only use front page to throw the table together and then move it to CodeWright. I used to code in straight HTML...LOL LOL I can put together 10 pages in the time it takes to hard code one by using Dreamweaver or FrontPage.
I agree that you should dispell of any incorrect information or myths but make sure they are myths or incorrect. Make sure that you understand what the person has wrote.
Louie
August 17th, 2001, 03:12 PM
Grow up
FlashOveride
August 17th, 2001, 03:18 PM
:argue: :argue: :argue:
LOL
I love a good heated discussion.
Common Louie Join in....
hogfly
August 17th, 2001, 04:20 PM
Originally posted by FlashOveride
HogFly your last post said that the character limit was in dos. Well I said that I was not sure on the limit but I said it rather clear that this was in dos.
Right.....I was clearing up the fact that you said you didnt know the limit. CHill the **** out already! Read that again....it makes no sense to me.
FlashOveride
August 17th, 2001, 05:07 PM
:drink: Sorry guess I have had a little too much coffee and it makes me overly aggressive.
I also got a little frustrated because I was getting flamed for helping someone out.
Chris
August 17th, 2001, 08:34 PM
Chris : YES I know Front Page BAD!!! My dreamweaver crashed on me so I had to throw things together with front page. However I only use front page to throw the table together and then move it to CodeWright. I used to code in straight HTML...LOL LOL I can put together 10 pages in the time it takes to hard code one by using Dreamweaver or FrontPage.
First of all, that's no excuse for using frontpage. Second of all, If you actually know html (it's not like it's that tough, take 5 minutes to learn it), can type over 60 words a minute, and know how to cut and paste, Notepad is just as fast (if not faster) and gives you far more flexibility (if you suck, this could be a bad thing).
So in conclusion, if you know html, use a simple text editor (with no margins). If you don't know html, learn it. If you have some sort of disability that prevents you from learning simple things such as html, use dreamweaver. If you like to sniff glue, use frontpage.
FlashOveride
August 17th, 2001, 08:40 PM
Well I could sit and argue till I am blue in the face. I have been doing this for 6 years and started off straight coding and still do when creating pages with php or perl. Otherwise I can build a full page with tables and embedded tables in minutes and spend more time with graphic design. Since I do everything in web design I have to cut my time down where I can. Besides I have some people that believe the same way you do and can code in html really well. However when they have problems they send them to me because I can do it both ways.
:bigpimp:
Chris
August 19th, 2001, 01:06 AM
Hey, check it out, using frontpage can be a federal crime....
http://www.linuxfreak.org/post.php/08/17/2001/134.html
:cool:
FlashOveride
August 20th, 2001, 02:40 PM
Ok I think the link you have there needs to have a thread all by itself. I think it needs to be something more people are aware of.
Chris
August 20th, 2001, 05:30 PM
yes it is worthy of its own thread, but you see, people here barely seem to be able to discuss pickled crabfish or html without having a flame war so I'd give them 3-4 years before this topic can be rationally discussed.
:cool:
Quad
August 20th, 2001, 06:02 PM
Chris your so mature. Way to go bud. :rolleyes:
Negative
August 20th, 2001, 06:35 PM
Let's just try to make it a new thread right here and now!
A couple of considerations:
- Is recording a call/conversation legal in the US of A? Is it valid in US law? Seems like it. Am I glad not to live there.
- The fact that he didn't deface the site, is of no matter IMHO. It's like trespassing without vandalizing anything. It still is trespassing. Of course, websites don't usually have those 'no trespassing' signs on them. They're still private property, though, so no 'trespassing'.
- About the part that says: 'On February 2, after testing the hole to make sure there really was a problem, Brian West contacted the editor-in-chief of the Poteau Daily News, Wally Burchett, to tell him about the problem with his company's web site. He did this even though the site was hosted by Cyberlink, a company in direct competition with his own employer. '
After testing the hole? What did he test? To see if he could use the password file to gain access to the site? Not very wise, if you'd ask me. But of course, it's exactly the same thing I would do...
I like Brian K. West's comment on this: 'its like seeing an open door.. with keys laying there in the floor.. you put the key in the lock to see if those keys belong to that door but the door was already unlocked and wide open when you walked up!'.
Any opinions?
Chris
August 20th, 2001, 07:56 PM
Yes, I have an opinion (surprise, surprise)
The guy was a moron for reporting this, if you phone up someone who doesn't know a thing about computer security, especially with all the media hype surrounding "hackers" and tell them their website is insecure, what are they going to think? If you really feel like a nice guy and want to help out your competition (or help your chances of getting a job, right hogfly?) you can alert the hosting company. They still might get pissed and get you in trouble, but are probably less likely to do so. The best policy would just to ignore such security holes.
Negative
August 20th, 2001, 08:18 PM
The best policy would just to ignore such security holes.
Just ignore them? Sounds to me like ostrich-policy. Why are you reading those pages anyway? To ignore them? Or do you mean that this guy in particular should have ignored the hole because he lives in that Mr. Facing-both-ways country, known as the US of A?
Chris
August 20th, 2001, 08:57 PM
Sorry, maybe 'ignore' isn't the best word. I was saying that the guy shouldn't have reported to security hole in the first place, it's likely to be more trouble than it's worth.
thesmileyone
August 27th, 2001, 06:49 PM
Chris the only excuse i can see for that attitude is that you are pissed that you didn't find it first or that the guy didnt exploit the problem as he could have done.
Maybe he just had a bit of integrity and thought he'd be nice and help these people instead of seeing their website (with his ad) go down the pan *shrugs* there really are people out there like that...
Chris
August 27th, 2001, 08:15 PM
Chris the only excuse i can see for that attitude is that you are pissed that you didn't find it first or that the guy didnt exploit the problem as he could have done.
Well, I may be a bit cynical, but I don't get pissed off at people discovering exploits before me, or Not committing felonies....
Maybe he just had a bit of integrity and thought he'd be nice and help these people instead of seeing their website (with his ad) go down the pan *shrugs* there really are people out there like that...
Situation #1 - you phone up the company tell them about the vulnerability. They would have to contact their hosting provider, tell them about the hole, and then possibly the host would fix it. So if the whole process goes through, it might get patched against that one vulnerability. You also risk criminal charges against yourself for this.
Situation #2 - you say nothing. you don't risk sharing a cell and becoming good friends with 300 pound bubba from new jersey. there's an off chance their site would be defaced, and an even smaller chance it would be by that exact hole.
I know which one I have chosen and will continue to choose....
And as for the integrity bit, why didn't the guy contact the hosting company? gee, I wonder....
Negative
August 27th, 2001, 08:29 PM
Situation #3: you deface the site, just for fun.
Situation #4. you deface the site, making a statement.
PS: what's integrity? ;-)
Quad
August 27th, 2001, 08:34 PM
Since neither of you have the knowlege or ability to deface any sites anyway, I think the latter half of this topic is MOOT! Get over it.
Azhrarn
August 31st, 2001, 11:44 PM
Hmm, I'm a bit late, but I do know of one way to save files from notepad/wordpad with the corect extension.
You don't need to select "all files" or anything (I believe wordpad doesn't even give the option) All you need to do is put the filename in quotes.
Save it as "blah.html" with the "" and it will force Winblows to save it correctly. ;)
pwaring
September 7th, 2001, 08:58 PM
The easiest way to do is like so:
In the save dialogue box, type the filename as "something.html" (including the quotes!) The quotes overide the default extension and save the file exactly as you specify.
BTW, this will work in ALL windows text editors, but don't try it in office because it adds code that make everything FUBAR.
pwaring.
pwaring
September 7th, 2001, 08:59 PM
The easiest way to do is like so:
In the save dialogue box, type the filename as "something.html" (including the quotes!) The quotes overide the default extension and save the file exactly as you specify.
BTW, this will work in ALL windows text editors, but don't try it in office because it adds code that make everything FUBAR.
pwaring.
Oh, and try to keep on topic as opposed to throwing personal insults ;)
Negative
September 7th, 2001, 09:09 PM
The easiest way to do is like so:
In the save dialogue box, type the filename as "something.html" (including the quotes!) The quotes overide the default extension and save the file exactly as you specify.
Thanks for stating the obvious...twice....saying the same things Azhrarn did...that's three times...lol
BTW: overide? :p
Oh, and try to keep on topic as opposed to throwing personal insults
Que? :p
PhirePhreak
September 21st, 2001, 07:31 AM
I'm incredibly amazed at how quickly and suddenly the topic can change in this one thread. Way to go Negative!
jiffyprogasm
October 2nd, 2001, 02:08 PM
Punmpkin: Here ya go. Cleaning up the HTML would really help the ledgability.:)
If your'e using notepad do this: Save as "umptysctatch.txt" to the folder you need it in.
then open the save "all" funtion in the save as window. Here you will save the page as "umptyscratch.html" in both cases without the quotes. You now have two files #1 the text file and #2 the HTML file. I find this technique very functional. Being a webmaster of my own .com.
After you get the page working as you want. Go to a html validator such as the one at world web consortium, and find that you need to clean up your code.