2012-09-03 9:50, dorayme wrote:
>>> importantly, it has been undeprecated and resurrected formally or
>>> kosherly for HTML5
>>
>> Halal now for HTML5?
>
> I overheard a conversation between a local halal butcher and a
> customer once in which the butcher was saying that halal meat is
> similar in various important religious respects to kosher meat.
Maybe similar, but not the same. The rules on supervision of the process
require supervisors of different religious affiliation. I suppose,
however, that many people living by kosher rules can still use halal,
and vice versa.
This has no direct relationship with HTML, though it reminds me of two
cults, or pseudo-religions, around "HTML5", called "W3C HTML5" and
"WHATWG The Living Standard". And both of them seem to have missed the
meaning of "HTML5" that has become popular and dominant among
developers: HTML5 is HTML + CSS + JavaScript used to develop
_applications_. But I digress (even from the digression).
> The way that still gets you into heaven is to use js but not to
> *require* it and not to make it so your visitors *has* to have it or
> else.
This used to be a good design principle, and it seems to have become
more popular, perhaps especially thanks to the kind person(s) who coined
a cool term for it: Unobtrusive JavaScript.
> In the case of a link that opens a js popup window when js is
> on, and there are no other blockers, you have to fashion your links or
> otherwise provide for the link to appear in a normal window or tab
> when js is off.
That part is simple. You simply set up a normal link, possibly with
target="_blank", and then you start adding features without breaking
anything. There's a useful slogan term for this, too: progressive
enhancement. (My attempt at a cool term, "augmentative authoring", just
didn't work. Luckily some people were better practical terminologists.)
The tricky part is to check all the features of opening a window in
JavaScript, paying attention to browser differences in parameters and
default values. But that's off-topic here. The following illustrates
just the basic idea (of one possible approach) as fas as HTML is considered:
<a href="
http://icant.co.uk/articles/seven-rules-of-unobtrusive-javascript/"
target="_blank" onclick=
"if(window.open) { window.open(this.href, '',
'width=680,height=700,resizable=1,scrollbars=1'); return false}"
>The seven rules of Unobtrusive JavaScript</a>
(The statement 'return false' aborts normal link processing, so that the
external page won't be opened twice.)
--
Yucca,
http://www.cs.tut.fi/~jkorpela/