html help [Archive] - Glock Talk

PDA

View Full Version : html help


Angel Of Death
08-20-2005, 07:13
Hey guys, I'm pretty new to html coding and am lost on this!

Maybe you can lend a helping hand?

OK I have a Word document uploaded to my site and I want you to be able to click on the words "14 Bolt Bible" and then have the option of opening up the document with Word or downloading it.

The file is here on my vsever: /var/www/html/tech2/The14BoltBible.doc

Now what do I put for code that allows you to click and download it? So confused! I set it up so that tech2 folder is the place you go to put files so people can downlaod them like an anonymous ftp I think?

Any help would be greatly appreciated guys! Thanks so much!

Semper fi

Erik

Dandapani
08-20-2005, 07:40
Something like:


LEFTANGLEBRACKET a href="tech2/The14BoltBible.doc">The 14 Bolt Bible Document LEFTANGLEBRACKET/a>


where LEFTANGLEBRACK is replaced by "<"

Assuming your DOCROOT of your web server is /var/www/html/

darth_rifle
08-20-2005, 09:12
Ditto the above, but with the following advice:

If the web server is a *nix machine, pay attention to the case (upper/lower) of the file name you are referencing.

Keep the leading '/' before tech2 to avoid problems when inside subdirectories. That is to say, your href="/tech2/The14BoltBible.doc"

HTH,

- D. Rifle

Angel Of Death
08-20-2005, 18:27
I greatly appreciate the help guys, but I'm still way confused.

I inserted the code where I think I was supposed to.

http://www.seriousiia.com/Links.htm

That's her right there.

Is there any chance one of you could look at my source code (there's not a lot of it) and see what you can do?

I really REALLY REALLY appreciate this guys!

Thanks so much and Semper fi

Erik

Angel Of Death
08-21-2005, 09:42
[BUMP]

I'm at your technological mercy here guys! ERIK

darth_rifle
08-21-2005, 10:11
AoD,

Replace what you have for a link to the The14BoltBible to this:

&lt;a href="/tech2/The14BoltBible.doc"&gt;The 14 Bolt Bible&lt;/a&gt;

Part of the problem is using entities (&amp;gt;) instead of the actual characters (&gt;).

The Glock Talk thread software certainly doesn't lend itself well to explaining HTML! Also, some web page editing software (depending on the input mode [raw HTML or "Word Processor" style input]) chokes on these characters.

- D. Rifle

Angel Of Death
08-21-2005, 11:49
Originally posted by darth_rifle
AoD,

Replace what you have for a link to the The14BoltBible to this:

&lt;a href="/tech2/The14BoltBible.doc"&gt;The 14 Bolt Bible&lt;/a&gt;

Part of the problem is using entities (&amp;gt;) instead of the actual characters (&gt;).

The Glock Talk thread software certainly doesn't lend itself well to explaining HTML! Also, some web page editing software (depending on the input mode [raw HTML or "Word Processor" style input]) chokes on these characters.

- D. Rifle

Thank you thank you thank you thank you!

If you EVER need anything, you know where to come!!!

Thank you thank you thank you thank you!

Erik!

Angel Of Death
08-21-2005, 12:30
Just wanted to say that I'm still soooo happy! Check it out!

http://www.seriousiia.com/Links.htm

darth_rifle
08-21-2005, 13:00
Lookin' good! Now all you have to do is convert those .doc files to PDF! :)

- D. Rifle

mfackler
08-21-2005, 13:50
Hay AD! You got mail! I just converted you *.docs to PDF zipped them up and sent them to your gmail. Hope they work for you.

Mike

Angel Of Death
08-21-2005, 14:07
Originally posted by mfackler
Hay AD! You got mail! I just converted you *.docs to PDF zipped them up and sent them to your gmail. Hope they work for you.

Mike

WHOAH! I was wondering who sent those to me! Thanks man! You rule!

Erik