Websites: Does & Don'ts
Websites: Does & Don'ts
Ok, another website-related question... are there any does and don'ts on which coding languages to use, and to which extend? For example, is it ok to use a bit of Javascript, or should it be avoided at all cost? And if it's ok, what's it ok for, and what not (Well, for Javascript, I know it's nonsense to write an entire site in it, but that's a bit blatant and obvious)
I try to use as little languages as possibly, otherwise it becomes a big furry mess; although somethings you can only do in javascript.
01000101 01000100 01000111 01000101
http://www.redbubble.com/people/fotofill/ buy my photos!
- Dungeon-Dave
- Baaaaaa!

- Posts: 3925
- Joined: Thu Aug 04, 2005 12:01 pm 0
- Location: UK
- Contact:
- JohnyZuper
- Baa!

- Posts: 33
- Joined: Fri Oct 28, 2005 9:51 am 0
- Location: Gent, Belgium
- Contact:
I hate to be a Puritan (although I like the hats) but I'd agree. I'm not a fan of byzantine over-complex pretty pretty sites that try and act like an application or an AV demo. If you can't do it in HTML and CSS (via XML / XSLT if you're clever) then you're probably trying to do something the web isn't designed for.Surfr wrote:XML and XSLT or XHTML and CSS
Nothing else.
Feel free to use PHP, Python, Ruby, C#, Java or whatever to generate the above.
SO LONG AS IT IS VALID CODE.
Use the w3c validator to check.
Spot on.Surfr wrote:XML and XSLT or XHTML and CSS
Nothing else.
Feel free to use PHP, Python, Ruby, C#, Java or whatever to generate the above.
SO LONG AS IT IS VALID CODE.
Use the w3c validator to check.
Been round this road so many times
Feel like it's skin is part of mine
This taste of milk is almost gone
Still got my shame, but not for long
Been wrong so many times before
But never quite like this
Heard all, in the rain
But the rain all turned to piss
Feel like it's skin is part of mine
This taste of milk is almost gone
Still got my shame, but not for long
Been wrong so many times before
But never quite like this
Heard all, in the rain
But the rain all turned to piss
- Ratsoap
- Baaaaaaa!

- Posts: 6344
- Joined: Fri Dec 19, 2003 1:46 pm 0
- Location: Back in Edinburgh
- Contact:
Just because a site doesn't validate doesn't make it bad.Surfr wrote:XML and XSLT or XHTML and CSS
Nothing else.
Feel free to use PHP, Python, Ruby, C#, Java or whatever to generate the above.
SO LONG AS IT IS VALID CODE.
Use the w3c validator to check.
I can think of loads of sites that use invalid code. Flickr, amazon, just about everything microsoft have published on the web, google, the list goes on and on.
And there is such thing as accessible flash.
And with the advent of AJAX I think we will be seeing a lot of really cool websites that don't even come close to using valid w3c code.
Although everything we produce these days in just (x)html and CSS.
Because fucking marketing cunts would never call a spade anything other than a Deluxe Easi-Shift Earth Movement Solution.
Yep, that's pretty much the approach I take. If you _must_ use javascript, please make sure it degrades gracefully (i.e. make sure that the non-javascript enabled users can still use the site).skweek wrote:Spot on. :DSurfr wrote:XML and XSLT or XHTML and CSS
Nothing else.
If you want to do drop-down menus, it can be done in pure XHTML/CSS. http://www.meyerweb.com/ is a reasonable starting point
Simon
"massive retard™", "full of shit™", "tiny bitch™", "retarted™", "a bit of a one trick pony™", "petty™", "simple minded idealistic twat™", "miserable humourless fucker™"
- starshipcommand
- Baaaaa!

- Posts: 1726
- Joined: Thu Jun 24, 2004 7:27 pm 0
- Location: UK
- Wibble
- Baaaaaa!

- Posts: 3317
- Joined: Fri May 02, 2003 10:13 pm 0
- XBL Gamertag: misterwibble
- Location: The Hague - The Netherlands
- Contact:
Pretty much.Kon-Tiki wrote:So things like drop-down menus in Javascript's a big nono, cause they make navigating the site a pain if there's no Javascript available?
I'd suggest a simple check, using lynx (a text-based browser). If you can't navigate a site using lynx, it needs work.
Similarly to "interactive" flash sites. Imagine being blind and trying to get any kind of response from such a site. Obviously, certain types of site revolve around the use of flash - but that's to do with the target audience.
My creed: unless your site needs a technology, don't use it
-W
Aye caramba! Thanks for the link, mate! Now to figure out how to make it pop up other links you can click without them disappearing (not that I need that, but it's good to knowtufty wrote:Yep, that's pretty much the approach I take. If you _must_ use javascript, please make sure it degrades gracefully (i.e. make sure that the non-javascript enabled users can still use the site).
If you want to do drop-down menus, it can be done in pure XHTML/CSS. http://www.meyerweb.com/ is a reasonable starting point
Simon
As for the rest, it's pretty much the way I've been seeing it, then. XHTML, PHP, SQL and CSS, and if I'd use anything aside from that, like JScript, it shouldn't be necessary, and should have other ways to get 'round it (pretty much for stuff like smilies'n such then)
Another question... what's the difference between XHTML and DHTML?
Edit: Checking that site further, it solved my question for the menu things
Edit2:That doesn't work in IE. IE always seems to have trouble with :hover on anything else than a hrefs



