All-in-one location/hashchange history management library

I believe Sammy.js ( http://sammyjs.org) (MIT-licenced) has the best focus on what you want to do, with its 2 main pillars being: Routes Events I could quote from the docs but it’s pretty straightforward: setup clientside routes that relate to stuff to be done, e.g: update the view through ajax link events to call routes, … Read more

Effective maximum mailto: body lengths

The standard doesn’t define a maximum length, leaving implementation up to browsers and mail clients (See IETF RFC 2368). Microsoft products do have set limits: IE GET limit is 2,083 http://support.microsoft.com/kb/208427 Outlook express: 456 characters http://support.microsoft.com/kb/q182985/ Other browsers are likely to work up to lengths beyond that of a reasonable email body. The iPhone doesn’t … Read more

Which graphic file formats are supported by browsers?

There’s an excellent chart on wikipedia that lists common image types and their support by browser. The file types you listed (jpg, gif and png) seem to be the main formats supported by nearly every browser, albeit with certain caveats: Internet Explorer supports PNG images but is unable to correctly display images with gamma correction … Read more

Architectures to access Smart Card from a generic browser? Or: How to bridge the gap from browser to PC/SC stack? [closed]

The fact is that browsers can’t talk to (cryptographic) smart cards for other purposes than establishing SSL. You shall need additional code, executed by the browser, to access smart cards. There are tens of custom and proprietary plugins (using all three options you mentioned) for various purposes (signing being the most popular, I guess) built … Read more

How to bring back “Browser mode” in IE11?

[UPDATE] The original question, and the answer below applied specifically to the IE11 preview releases. The final release version of IE11 does in fact provide the ability to switch browser modes from the Emulation tab in the dev tools: Having said that, the advice I’ve given here (and elsewhere) to avoid using compatibility modes for … Read more

Creating rounded corners using CSS [closed]

Since CSS3 was introduced, the best way to add rounded corners using CSS is by using the border-radius property. You can read the spec on the property, or get some useful implementation information on MDN: If you are using a browser that doesn’t implement border-radius (Chrome pre-v4, Firefox pre-v4, IE8, Opera pre-v10.5, Safari pre-v5), then … Read more

tech