NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page help needed - linking to pdf file

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search
5 members in live chat ~  


Reply
 
LinkBack Thread Tools
Old 07-30-2009, 09:47 AM THREAD STARTER               #1 (permalink)
Senior Member
Join Date: Dec 2007
Location: Toledo, Ohio
Posts: 1,810
Debt.tv is a splendid one to beholdDebt.tv is a splendid one to beholdDebt.tv is a splendid one to beholdDebt.tv is a splendid one to beholdDebt.tv is a splendid one to beholdDebt.tv is a splendid one to beholdDebt.tv is a splendid one to beholdDebt.tv is a splendid one to behold
 




help needed - linking to pdf file


Hi,

I am currently trying to link to a pdf file that is in the same directory as my .htm file but the pdf won't open.
????: NamePros.com http://www.namepros.com/programming/600003-help-needed-linking-to-pdf-file.html

current code:

<a href="bier_stube.pdf" target="_blank"><span class="menu">menu</span></a>

I preview the .htm and I click but nothing happens. I linked to websites without a problem but I can't bring up an internal .pdf file????

EDIT
One other thing, I am new to programming and did not ad "!DOCTYPE....." to the top of my page right away and now after I add it, it shifts my boxes, it changes the size of my boxes and menus? why is that?

thanks

eric
__________________
Domains for Sale
CompareTV.com | MyOnlineBiz.com | BeautifulBabyContest.com | 5050RaffleTickets.com | My-Mortgage.com | ChicagoSuburbs.org | Pop-up-blocker.com | MyMortgagePayment.com | VirginiaBeachRentalCars.com | BookingByOwner.com | SBKC.com | IUYS.com |
Last edited by Debt.tv; 07-30-2009 at 01:07 PM.
Debt.tv is online now   Reply With Quote
Old 07-30-2009, 02:05 PM   #2 (permalink)
Senior Member
 
nasaboy007's Avatar
Join Date: Jul 2005
Location: NJ
Posts: 1,219
nasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud of
 



if you just try to go to your pdf's link directly (without clicking the link, like www.yoursite.com/bier_stube.pdf), does it load?

also, try removing the span tags to verify that it realyl is the a tag that isn't working. do you have a popup blocker that could somehow be blocking a the link? (since target="_blank" will make it open in a new window)
nasaboy007 is offline   Reply With Quote
Old 07-30-2009, 05:06 PM THREAD STARTER               #3 (permalink)
Senior Member
Join Date: Dec 2007
Location: Toledo, Ohio
Posts: 1,810
Debt.tv is a splendid one to beholdDebt.tv is a splendid one to beholdDebt.tv is a splendid one to beholdDebt.tv is a splendid one to beholdDebt.tv is a splendid one to beholdDebt.tv is a splendid one to beholdDebt.tv is a splendid one to beholdDebt.tv is a splendid one to behold
 




Originally Posted by nasaboy007 View Post
if you just try to go to your pdf's link directly (without clicking the link, like www.yoursite.com/bier_stube.pdf), does it load?
????: NamePros.com http://www.namepros.com/showthread.php?t=600003

also, try removing the span tags to verify that it realyl is the a tag that isn't working. do you have a popup blocker that could somehow be blocking a the link? (since target="_blank" will make it open in a new window)
I think it was because I copy the .htm file to a different computer. The file had all the same pdf's but it just didn't get the connection. But how about the other? Doctype??? it mess up all my css?

THIS IS THE CODE I PASTED IN BEFORE my <html>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
__________________
Domains for Sale
CompareTV.com | MyOnlineBiz.com | BeautifulBabyContest.com | 5050RaffleTickets.com | My-Mortgage.com | ChicagoSuburbs.org | Pop-up-blocker.com | MyMortgagePayment.com | VirginiaBeachRentalCars.com | BookingByOwner.com | SBKC.com | IUYS.com |
Last edited by Debt.tv; 07-30-2009 at 05:27 PM.
Debt.tv is online now   Reply With Quote
Old 07-31-2009, 03:09 AM   #4 (permalink)
Forum Moderator
 
enlytend's Avatar
Join Date: Aug 2006
Location: USA
Posts: 2,152
enlytend has a reputation beyond reputeenlytend has a reputation beyond reputeenlytend has a reputation beyond reputeenlytend has a reputation beyond reputeenlytend has a reputation beyond reputeenlytend has a reputation beyond reputeenlytend has a reputation beyond reputeenlytend has a reputation beyond reputeenlytend has a reputation beyond reputeenlytend has a reputation beyond reputeenlytend has a reputation beyond repute
 



Cancer Survivorship
Not having a doctype throws most current browsers into "quirks mode", also known as "compatibility mode", meaning they emulate how certain older browsers interpreted pages. One common issue with older browesrs was a buggy implementation of css that rendered the box model incorrectly.

Also, if your code is not proper xhtml, declaring a xhtml doctype on the page can cause errors which may affect browsers ability to interpret your page properly.
__________________
Enlytend Solutions - Internet marketing and web development
Was my advice helpful? Please consider a small donation to the National Canine Cancer Foundation - a tax deductible 501(c)(3)that directly funds cancer research
Last edited by enlytend; 07-31-2009 at 03:13 AM.
enlytend is offline   Reply With Quote
Old 07-31-2009, 05:02 AM   #5 (permalink)
Senior Member
 
nasaboy007's Avatar
Join Date: Jul 2005
Location: NJ
Posts: 1,219
nasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud of
 



use The W3C Markup Validation Service to validate your html to make sure that it's not some validation error that's causing your layout to change.

if you haven't solved the pdf problem, try making the links absolute (using http://www.site.com/file.pdf rather than just file.pdf in the a href)
nasaboy007 is offline   Reply With Quote
Old 07-31-2009, 07:42 AM THREAD STARTER               #6 (permalink)
Senior Member
Join Date: Dec 2007
Location: Toledo, Ohio
Posts: 1,810
Debt.tv is a splendid one to beholdDebt.tv is a splendid one to beholdDebt.tv is a splendid one to beholdDebt.tv is a splendid one to beholdDebt.tv is a splendid one to beholdDebt.tv is a splendid one to beholdDebt.tv is a splendid one to beholdDebt.tv is a splendid one to behold
 




Originally Posted by nasaboy007 View Post
use The W3C Markup Validation Service to validate your html to make sure that it's not some validation error that's causing your layout to change.

if you haven't solved the pdf problem, try making the links absolute (using http://www.site.com/file.pdf rather than just file.pdf in the a href)

Thanks everyone. Well I was just on the index (default.htm) page when this happened so the doctype isn't a problem anymore. I am currently learning to code using html.net (not a bad site for learning the basics) and W3Schools Online Web Tutorials (really nice site too).

I have been using notepad like it is going out of style but where I teach part-time gave me the entire adobe suite and I accidently opened my css doc using dreamweaver. I think it is easier to code using notepad because dreamweaver wants to write the code for you and if you not carefull you might think your writing something and dreamweaver puts something totally different. I have found the "Validator" feature on the program pretty useful but I don't understand some of the errors it is thowing out at me. Some of the errors include things like by closing </div> I don't need to </p> because </div> does it for me (something along those lines)????? Another one is I should </span> before </p>??? I don't know...I learn the best from my mistakes so I will continue make them and my site should be pretty good when it is done...hopefully.

I have also found that html.net and w3schools.com taught me from the start to code using xhtml so there was no switch for me to make.

Like I said this is my first website so I have a lot to learn but I really believe I understand the basics of html and my css style sheets. (next up .php and .js) I might be able to learn it using w3schools.com????
__________________
Domains for Sale
CompareTV.com | MyOnlineBiz.com | BeautifulBabyContest.com | 5050RaffleTickets.com | My-Mortgage.com | ChicagoSuburbs.org | Pop-up-blocker.com | MyMortgagePayment.com | VirginiaBeachRentalCars.com | BookingByOwner.com | SBKC.com | IUYS.com |
Debt.tv is online now   Reply With Quote
Old 07-31-2009, 09:21 PM   #7 (permalink)
Senior Member
 
nasaboy007's Avatar
Join Date: Jul 2005
Location: NJ
Posts: 1,219
nasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud of
 



i strongly suggest using w3schools, i learned EVERYTHING back when i was self teaching from there.

if you dont seem to like dreamweaver (i love it, btw - once you get used to it the code colors make the code come to life lol), try notepad++. it's a lightweight programming versatile text editor that has helped me in more than one instance (not to mention it's free).
nasaboy007 is offline   Reply With Quote
Old 08-02-2009, 07:39 AM THREAD STARTER               #8 (permalink)
Senior Member
Join Date: Dec 2007
Location: Toledo, Ohio
Posts: 1,810
Debt.tv is a splendid one to beholdDebt.tv is a splendid one to beholdDebt.tv is a splendid one to beholdDebt.tv is a splendid one to beholdDebt.tv is a splendid one to beholdDebt.tv is a splendid one to beholdDebt.tv is a splendid one to beholdDebt.tv is a splendid one to behold
 




Thanks, I have started using it and it is pretty awesome! It makes switching between css and html easy. The validator is cool!
__________________
Domains for Sale
CompareTV.com | MyOnlineBiz.com | BeautifulBabyContest.com | 5050RaffleTickets.com | My-Mortgage.com | ChicagoSuburbs.org | Pop-up-blocker.com | MyMortgagePayment.com | VirginiaBeachRentalCars.com | BookingByOwner.com | SBKC.com | IUYS.com |
Debt.tv is online now   Reply With Quote
Old 08-02-2009, 11:09 AM   #9 (permalink)
Account Suspended
Join Date: Aug 2009
Location: Qatar
Posts: 25
khalids19 is an unknown quantity at this point
 



i wish i could be able to understand you properply but its just that its hard following steps correctly!
khalids19 is offline   Reply With Quote
Old 08-03-2009, 04:28 AM THREAD STARTER               #10 (permalink)
Senior Member
Join Date: Dec 2007
Location: Toledo, Ohio
Posts: 1,810
Debt.tv is a splendid one to beholdDebt.tv is a splendid one to beholdDebt.tv is a splendid one to beholdDebt.tv is a splendid one to beholdDebt.tv is a splendid one to beholdDebt.tv is a splendid one to beholdDebt.tv is a splendid one to beholdDebt.tv is a splendid one to behold
 




Originally Posted by khalids19 View Post
i wish i could be able to understand you properply but its just that its hard following steps correctly!

????: NamePros.com http://www.namepros.com/showthread.php?t=600003
For html and css? W3schools.com is pretty good but I seriously started with html.net. I found the w3schools.com later.
__________________
Domains for Sale
CompareTV.com | MyOnlineBiz.com | BeautifulBabyContest.com | 5050RaffleTickets.com | My-Mortgage.com | ChicagoSuburbs.org | Pop-up-blocker.com | MyMortgagePayment.com | VirginiaBeachRentalCars.com | BookingByOwner.com | SBKC.com | IUYS.com |
Debt.tv is online now   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 02:30 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger