Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-11-2008, 06:49 AM
Contributing Member
 
Join Date: 11-09-07
Posts: 71
iTrader: 0 / 0%
Rushtrack is liked by many
DOCTYPE Issues

Hello.


Built a site using Dreamweaver simply as a text editor. The Doctype on the page is

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
When building I tested it through several different hosts and on many different browsers. It worked fine on all. The client wanted it set up through their Yahoo! store which has a built in editor (really really terribly annoying to work with) that automatically writes its own Doctype which is this

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
The fact that Yahoo!s auto doctype business does not specify the transitional.dtd is really ruining my day as it serves to basically have browsers interpret my code in an entirely new manner.

So I called yahoo!.And they said no we will not change that for you...to fix the problem just rebuild your site using tables rather than css!!

I dont want to do that.

Any thoughts as to how I might be able to call the .dtd document without doing so in the doctype declaration? or something?

Thanks
Digg this Post!Add Post to del.icio.us
Reply With Quote
  #2 (permalink)  
Old 02-11-2008, 01:30 PM
htmlbasictutor's Avatar
Super Moderator
 
Join Date: 10-29-07
Location: British Columbia, Canada
Posts: 5,680
iTrader: 2 / 100%
htmlbasictutor is a web professional of the highest orderhtmlbasictutor is a web professional of the highest orderhtmlbasictutor is a web professional of the highest orderhtmlbasictutor is a web professional of the highest orderhtmlbasictutor is a web professional of the highest orderhtmlbasictutor is a web professional of the highest orderhtmlbasictutor is a web professional of the highest orderhtmlbasictutor is a web professional of the highest orderhtmlbasictutor is a web professional of the highest orderhtmlbasictutor is a web professional of the highest orderhtmlbasictutor is a web professional of the highest order
Did you try ftping your copy of the website to their webspace?

I had a customer who used Yahoo hosting and use to ftp everything.

It validated, other than Yahoo's javascipt for their stats.
__________________

HTML Basic Tutor - Learn to code your web pages/blogs
Basic Computer Information - Computer Basics for website owners


Trouble getting indexed? Maybe it's something technical - Pm me.
Digg this Post!Add Post to del.icio.us
Reply With Quote
  #3 (permalink)  
Old 02-11-2008, 02:43 PM
Contributing Member
 
Join Date: 11-09-07
Posts: 71
iTrader: 0 / 0%
Rushtrack is liked by many
Quote:
Originally Posted by htmlbasictutor View Post
Did you try ftping your copy of the website to their webspace?

I had a customer who used Yahoo hosting and use to ftp everything.

It validated, other than Yahoo's javascipt for their stats.
I wish.


The store editor they use is a legacy and thus does not (for some reason) have the ability to ftp. Its a really brutal old system....

No big deal though as I have gotten them to change hosts and migrate into the new millenium a few years late..
Digg this Post!Add Post to del.icio.us
Reply With Quote
  #4 (permalink)  
Old 02-12-2008, 12:19 AM
Boogle's Avatar
Contributing Member
Latest Blog:
None

 
Join Date: 09-03-07
Location: England
Posts: 646
iTrader: 0 / 0%
Boogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really nice
Couldn't you have appended the DOCTYPE on load using javascript?
__________________
Great new 'June' Javascript Framework
June Forums - Innovative JScripting

Price is what you pay... Value is what you get.
Digg this Post!Add Post to del.icio.us
Reply With Quote
  #5 (permalink)  
Old 02-12-2008, 06:08 AM
Contributing Member
 
Join Date: 11-09-07
Posts: 71
iTrader: 0 / 0%
Rushtrack is liked by many
Quote:
Originally Posted by Boogle View Post
Couldn't you have appended the DOCTYPE on load using javascript?

Thats kind of what I was long windedly asking in the OP.


Is this possible?

Does anyone know how to do is?



Though I got away with switching hosts with this particular site...there are others tucked away in their yahoo legacy that may need attention in the future..

(Although I guess I could just build with the correct Doctype in the future )
Digg this Post!Add Post to del.icio.us
Reply With Quote
  #6 (permalink)  
Old 02-12-2008, 06:09 AM
Boogle's Avatar
Contributing Member
Latest Blog:
None

 
Join Date: 09-03-07
Location: England
Posts: 646
iTrader: 0 / 0%
Boogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really nice
Well strictly speaking we all should be building in XHTML anyway so it'd be good to fix around this!

i'm not sure about the code for this though. i will look into however because i'm slowly (very slowly!) building my JS knowledge and this sounds like something fun!

Boog's
__________________
Great new 'June' Javascript Framework
June Forums - Innovative JScripting

Price is what you pay... Value is what you get.
Digg this Post!Add Post to del.icio.us
Reply With Quote
  #7 (permalink)  
Old 02-12-2008, 01:44 PM
Contributing Member
 
Join Date: 11-09-07
Posts: 71
iTrader: 0 / 0%
Rushtrack is liked by many
Quote:
Originally Posted by Boogle View Post
Well strictly speaking we all should be building in XHTML anyway so it'd be good to fix around this!

i'm not sure about the code for this though. i will look into however because i'm slowly (very slowly!) building my JS knowledge and this sounds like something fun!

Boog's
Apparently Yahoo realized it was rather narrow minded of them to force people into using outdated doctypes so in their newer stores they allow you to change it to your pleasing...

I would appreciate any help you can offer around this.

Rush
Digg this Post!Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
no Doctype found Cabaya SEO Forum 1 01-30-2008 10:56 PM
CSS issues Hugenerd Coding Forum 2 02-21-2006 06:46 PM
<!DOCTYPE HTML 4.01 Transitional//E GoldDust Coding Forum 6 02-10-2004 09:29 PM
Doctype problems jallard Coding Forum 14 11-06-2003 04:02 PM


Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 09:28 PM.
© Copyright 2010 V7 Inc
Powered by vBulletin
Copyright © 2000-2010 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.