This is a discussion on "javascript and xhtml validation" within the JavaScript Forum section. This forum, and the thread "javascript and xhtml validation are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
javascript and xhtml validation
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
javascript and xhtml validation
I have a page that has some Javascript in it. It all works fine in IE, but falls apart in Firefox and Netscape, UNLESS I remove the Doctype declaration(in which case IE has trouble..)
Obviously this page dosen't validate to XHTML 1.1 standards. Is it possible to store the javascript in a seperate file and call it from the xhtml? And will this mean that yes, the page may now validate, but will most likely still fall apart in browsers other than IE?? The pages are http://www3.webng.com/tcnls/av2.html with the doctype dec, and http://www3.webng.com/tcnls/av3.html without Thanks for your help, Nathan. |
|
|
|
||||
|
Re: javascript and xhtml validation
Hmmm ... actually ... your site falls apart in IE6. What does the JS do? I don't see anything on there that can't be achieve with CSS/HTML only!?
Oh and yes you "should" be putting your JS in a separate file. Just link to it with
|
|
|||
|
Re: javascript and xhtml validation
Sorry, I should have explained that better. The "creation" link on the bottom is the one that activates the javascript. What exactly does it do in IE6?? I've tested it on IE7 and IE5 and it seems ok, so long as the doctype is declared..
Thanks, Nathan. |
|
|||
|
Re: javascript and xhtml validation
Well this is what happened to me. (I'm usuing IE6)
the first one, with the doctype, worked fine except that when you click the "creation" link brown smudges appear everywhere. When you visit the other page the table drops down below the main content and the red highlight doesn't expand. Looking bad, except when the "creation" link is clicked lots of fireworks appear, which I guess means its working. Also while i'm at it can I say the navagation links in the footer are really hard to read. You should give them more colour. Hope this helped -Blake- www.theloop.org.uk |
|
||||
|
Re: javascript and xhtml validation
|
|
||||
|
Re: javascript and xhtml validation
Lol. Tis all too true.
|
|
||||
|
Re: javascript and xhtml validation
Quote:
I know you didn't ask for a critique but I can't help this one: - Sound on a webpage is bad - Background sound is bad - Sound on mouse over is bad - A page that requires the Apple Quicktime plugin is bad - Using Javascript to play sound is non-sense. Validation is the LAST of your worries. I hate flash, but in your case I think I'll open an exception. Use flash to do it properly and put yourself out of your misery.
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
|
|
|||
|
Re: javascript and xhtml validation
Thanks for your replies.
Constructive criticism is always welcome! This page site is basically just a test page that I use for testing and playing before I post anything to the real site. I'll take your advice and can the sound entirely, and I think the whole fireworks thing looks kind of corny anyway. For the falling apart in safari, could I get you to check www.tcnls.com/services.html and see if that does the same thing? Thanks, Nathan. |
![]() |
| Tags |
| doctype declaration, xhtml validate |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| xhtml and validation | robb | Web Page Design | 27 | Aug 15th, 2006 08:41 |
| W3C Xhtml Validation... | Pheonix | Implemented Suggestions | 13 | Oct 7th, 2005 12:44 |
| XHTML Validation Help | socalledlove | Web Page Design | 7 | May 3rd, 2005 21:06 |
| XHTML validation | keeps21 | Web Page Design | 4 | Mar 21st, 2005 08:27 |
| XHTML validation problems | Webforumz Staff | Web Page Design | 6 | Jan 4th, 2004 15:45 |