Re: [WSG] Idiot's guide to JavaScript

2007-11-14 Thread Olly Hodgson
On Nov 14, 2007 9:44 PM, Chris Knowles [EMAIL PROTECTED] wrote:
 Rob Mason wrote:

  I am looking for a really basic, plain English guide to JavaScript.

 I highly rate this book - easy to read and understand:
 http://www.quirksmode.org/book/

http://domscripting.com/book/ is very good too.


-- 
Olly
http://thinkdrastic.net/


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] How to send two values to javascript

2007-11-14 Thread Olly Hodgson
On Nov 14, 2007 10:37 PM, Michael Horowitz
[EMAIL PROTECTED] wrote:
 I have examples using one value

 onchange=showSubcategory(this.value)

 from a form to a script.

 What if I need to send two values one from the current element in the
 form and one from another element

onchange=showSubcategory(this.value,
document.getElementById(anotherElement).value);


-- 
Olly
http://thinkdrastic.net/


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] How to send two values to javascript

2007-11-14 Thread Olly Hodgson
On Nov 14, 2007 11:11 PM, Olly Hodgson [EMAIL PROTECTED] wrote:

 onchange=showSubcategory(this.value,
 document.getElementById(anotherElement).value);

While I'm here, two points:

Doing anything major using the onchange event isn't a great idea. The
reason being it can scupper keyboard users -- some browsers will fire
the event when the user's moving through items in the select using
the cursor keys.

Secondly, using inline event handlers is right up there with inline
styling. Ideally, you should be keeping everything in a separate
script file, in the same way you'd keep your CSS out of the HTML.

http://www.onlinetools.org/articles/unobtrusivejavascript/

Cheers,


-- 
Olly Hodgson
http://thinkdrastic.net/


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] multilingual website advice

2007-11-02 Thread Olly Hodgson
On 11/1/07, Andrew Harris [EMAIL PROTECTED] wrote:

 I'm asking for any gems of wisdom - links or first hand advice, mostly
 technical, but anything that deals with the pitfalls in building
 arabic websites would be great.

I found Richard Ishida's @media07 presentation, Designing for
International Users: Practical Tips rather enlightening. The audio
and slides are available from
http://www.vivabit.com/atmedia2007/europe/schedule/

Cheers,


-- 
Olly Hodgson
http://thinkdrastic.net/


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] Re: worst site I've seen lately

2007-10-29 Thread Olly Hodgson
On 10/29/07, Rob Mason [EMAIL PROTECTED] wrote:
 My eyes, my beautiful eyes...it burns.

whisperI actually quite like it./whisper

It's nice to see someone trying something slightly away from the norm.
OK, so they don't quite pull it off -- the mad scrolling stuff could
do with being toned down a little (perhaps a bit of motion blurring?)
and some of the UI design is just plain silly, but generally, not a
bad effort. I've certainly seen a lot worse.

Besides, what's not to like about a site that employs lines like
Value-added red noses maximize a plan to vigorously deliver
multilevel hairdryers. in place of lipsum? ;)


-- 
Olly
http://thinkdrastic.net/


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] Accessibility awareness vs site's cleanliness

2007-10-27 Thread Olly Hodgson
On 10/27/07, Simon Cockayne [EMAIL PROTECTED] wrote:

 So...how can I spread the good word of valid CSS, XHTML and
 WCAG...without spoiling the site with verbose text or logos?

To be honest, I wouldn't bother. If the client doesn't want it, and
it's not adding anything to the site, why are you doing it?



-- 
Olly
http://thinkdrastic.net/


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] Jquery and/or Yahoo UI

2007-10-13 Thread Olly Hodgson
On 10/13/07, Christian Montoya [EMAIL PROTECTED] wrote:

 In a way, it's kind of like embed vs. object.

In a way, but...

 Of course, if you really want to use innerHTML, you could probably go
 right ahead. But if you are already using a very DOM-friendly
 framework like jQuery, you may as well take advantage of the face that
 it makes all the proper DOM methods very easy to use.

(I might well be talking out of my backside here in which case, feel
free to shoot me down in flames...)

IIRC the innerHTML methods are significantly faster than W3C DOM
methods in current mainstream browsers. In most cases it won't make a
lot of difference, but if you're pushing a large amount of data around
the page, it can be very helpful.

I'm not saying you should use innerHTML exclusively -- In most cases I
still turn to W3C DOM methods. Sometimes though, IE will slow right
down, and innerHTML can be a good way of extracting a bit more speed
from it.


-- 
Olly
http://thinkdrastic.net/


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] site check - almost ready for prime time

2007-03-19 Thread Olly Hodgson

On 3/19/07, Kenny Graham [EMAIL PROTECTED] wrote:


Some may also say that having a splash screen page (a page with no
other navigation other than enter) is a bad practice, but I think
that's more a matter of personal preference.


Personally, I'd have links to the major sections of the site, rather
that one small insignificant link at the bottom of the page. A
screen-reader user would have to trawl through the whole screen before
they could get into the meat of the site, which doesn't seem ideal.

On a non-accessibility tip, the header graphic appears to have quite
significant JPEG artifacts on my screen (they show up more on the
Macbook for some reason).  Also, the sub-menus on the left-hand
navigation appear, then grow slightly in size (in both Safari and
Camino on MacOSX). I'm not sure if that's intentional or not, but it's
a bit distracting.

Cheers,


--
Olly Hodgson
http://thinkdrastic.net/


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] .NET generate horrible html, i need some lights

2007-03-12 Thread Olly Hodgson

On 3/12/07, Gaspar [EMAIL PROTECTED] wrote:


Iam working with the interface/html team and maybe the team that build
the aplications wouldn be so open to that changes, they say that is
easiest and quicky putting the native elements of .net tham building,


They're absolutely right, it is easier. That doesn't make it the right
thing to do though.

Now, I'm no server-side programmer, but I get to work with .net quite
a lot. It's got a lot of features that make me want to stove
someone's head in with a shovel (the enourmous viewstate, smartnav,
one form per page, table controls that strip out summary attributes
and th elements, etc), but when a programmer knows what they're
doing, it's perfectly possible to get it to output nicer code. There's
all sorts of tricks, such as rewriting the HTML by overriding the
render method.

By the sounds of it, your biggest hurdle is going to be the
programmers. They need educating in the ways of the web. Once you've
won them over, you're halfway there. It may be that you have to bite
the bullet and make the best of what you've got though.

--
Olly
http://thinkdrastic.net/


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***