Categories
Uncategorised

Net Neutrality Threatened

Update: As reported by the BBC:

“US politicians have rejected attempts to enshrine the principle of net neutrality in legislation.”

Google themselves are asking for people to petition against a bill going through US courts:

In the next few days, the House of Representatives is going to vote on a bill that would fundamentally alter the Internet. That bill, and one that may come up for a key vote in the Senate in the next few weeks, would give the big phone and cable companies the power to pick and choose what you will be able to see and do on the Internet.

Today the Internet is an information highway where anybody – no matter how large or small, how traditional or unconventional – has equal access. But the phone and cable monopolies, who control almost all Internet access, want the power to choose who gets access to high-speed lanes and whose content gets seen first and fastest. They want to build a two-tiered system and block the on-ramps for those who can’t pay.

Hopefully, the proposal won’t go anywhere, but if it does it threatens to have wide reaching impacts including over this side of the pond.

If it does, then what sort of prices are going to be charged, and how will content be rated. Will individual sites have to lobby to be included in the high priority lanes, will they have to pay?
ISPs are already the winners on the ‘net, shouldn’t we be looking for ways to increase availability to remote users rather than limited those who are already limited?

Categories
Code

JS: Clear Default Value onFocus

Simply add the following to the the onFocus attribute of any HTML form input tag.
[code lang=”JavaScript”]if (this.value == this.defaultValue) this.value = ”;[/code]
this.defaultValue is automatically given the value in the HTML.

Categories
Code

Append to Body onLoad

I looked for a long time how I could add JavaScript functions to an HTML document’s onLoad attribute.

Eventually I found this, something so obvious that I had considered trying it but foolishly didn’t try.

[code lang=”JavaScript”]
var oldLoad = window.onload;
window.onload = function() {
oldLoad();
function2();
}
[/code]

Categories
Code

jsReq

I wanted to tell the user that they need JavaScript, but obviously only if they don’t already have it enabled.
The following is a very crude script which uses the very fact that JS is available to hide the requirement notice…

HTML:
[code lang=”html”]

Warning!
You need to have javascript enabled to use this page.

[/code]

JS:
[code lang=”JavaScript”]
function removeElementById(eleId) {
eleId = document.getElementById(eleId);
if (eleId.parentNode && eleId.parentNode.removeChild) {
eleId.parentNode.removeChild(eleId);
}
}
removeElementById(“jsRequiredDiv”);
[/code]

Categories
Uncategorised

Standards RIP

This certainly isn’t the first place I’ve seen this view expressed, but it certainly has the best reasoning.
The following is just an excerpt.

  • HTML is for documents (pages) not for applications. We are all building applications.
  • Users don”t care about validation. Validation is a tool not a goal.
  • The top priority is making features work and providing the right user experience.

Functioning Form – SxSW: Standard Deviation