Connexion
One Laptop per Child Logo
Google Search
Google

LabsSphère Catégories
Css (9)
Php (8)
Javascript (11)
Xoops (5)
Divers (1)
Design (10)

Blog : Tobie Langel Blog

Tobie Langel feed URL Flux
Dernière mise à jour : 22/5/2012 16:33:15 Mettre à jour

2007-05-17T04:13:00+02:00 | 153 lectures

Just a hilarious Escher/Oscar Reutersvärd (yet another swede!) inspired snapshot stolen from Christian Heilmann's slides for his Seven Reasons for Code Bloat presentation for the WSG London Meet-up.Couldn't resist. Hope he doesn't mind.


2007-05-22T16:21:00+02:00 | 34 lectures

Living on the edge and using Prototype's latest DOM Builder ? Feeling a bit dirty doing the following:new Element('div').update('some text...');// --> <div>some text...</div>Here's a quick solution (using Element.addMethods) to fully dwell in complete web-standardness:Element.addMethods({ appendText: function(element, text) { element = $(element); text = String.interpret(text); element.appendChild(document.createTextNode(text)); return element; }});Best part is that it lets you append anything, as long as the text argument has a toString method (thanks to Ash Searle for suggesting a better handling of null and undefined):new Element('div').appendText('Some more...


2007-04-19T22:57:00+02:00 | 26 lectures

Following my last post on a critical Safari's regexp bug (it actually crashes the browser), Andy Armstrong suggested a partial solution to the problem:Here's a tentative fix to JSON's sanitize regexp based on it:/^("(\.|[^"\\n\r]*)*?"|[,:{}[]0-9.\-+Eaeflnr-u \n\r\t]*)+?$/instead of the original:/^("(\.|[^"\\n\r])*?"|[,:{}[]0-9.\-+Eaeflnr-u \n\r\t])+?$/Although it does not entirely solve the problem, it does allow longer strings to be parsed without crashing Safari.Again, your mileage may vary depending on your machine.Here's a test-case for it.Any improvements, suggestions, etc. are warmly welcomed.


2007-05-07T19:37:00+02:00 | 19 lectures

The web is a place full of surprises. And sometimes they aren't good ones. Most of you know jQuery, John Resig's excellent JavaScript library, well... the website it's hosted on has been the subject of DOS attack over the week-end, and its host kindly invited John to go look for hosting elsewhere.jQuery has now found a new host, (you might still encounter issues connecting to it while the DNS propagates), but the move was costly and Learning jQuery is still collecting funds to cover the move. Please consider chipping in a dime or two.


2007-05-15T20:15:00+02:00 | 13 lectures

This one's pretty annoying:/(.)+/.test(string);This crashes Safari when string's length is bigger than about 7000 characters (your mileage may vary, it looks like the exact size is machine dependent, but its in that area on an intel MacBook).The cause of the crash seems to be the length of the grouping results, as this works fine:/.+/.test(string);UPDATE: Non-capturing parentheses do not solve this bug. So this:/(?:.)+/.test(string);will still crash Safari.This bug has some really annoying consequences. While we managed to fix some of them in the Prototype framework, it still leaves the issue of JSON sanitizing.Currently, this is done both in Prototype and in Douglas Crockford's original ...


2007-05-14T13:47:00+02:00 | 12 lectures

Christophe Proteneuve, one of my fellow Prototype Core Team, member, just published the first Beta Book of Prototype and script.aculo.us - You never knew JavaScript could do this! over at the Pragmatic Programmers. (You can read more about the whole beta book concept on their website).Affectionately dubbed "The Bungee Book" by Sam Stephenson-the master mind behind Prototype-Christophe's upcoming title is sure to become the reference for Prototype and Script.aculo.us developers across the world.I've had the chance to read through the first beta and all I can say is that you'd be just plain stupid not to grab a copy now: It's thorough, extremely well documented (no wonder, Christophe wrote ...


2011-02-25T18:53:36+01:00 | 12 lectures

(cross-posted from the official Prototype blog)I'm very happy to announce a new addition to the Prototype bookshelf: core committer Andrew Dupont's Practical Prototype and script.aculo.us published by Apress.Obviously, Practical Prototype and script.aculo.us covers all you need to know about the latest versions of Prototype and script.aculo.us. But it goes well beyond that. Andrew does an awesome job at setting the context and giving appropriate background information, so much so that you'll end up knowing not only the how but also the why. In the ruthless world of client-side development, that's serious asset!Practical Prototype and script.aculo.us is a pleasure to read - the style is bo...


2007-04-20T06:52:00+02:00 | 10 lectures

Rising back from the dead, the UI JavaScript library Rico just released a first beta of their upcoming version 2.0, which you can download from their website.It's based on the latest release of Prototype (version 1.5.1_rc2) which is included in the download.I am really, really happy to see this project alive again, as yet another example of the striving Prototype community.It's the best reward we could get for the work we've put into Prototype 1.5 and the documentation site.Thanks Richard for pursuing your great work and making it available to the community, and welcome to your new contributor: Matt Brown.


2007-11-07T23:51:00+01:00 | 10 lectures

I'm really really happy to announce Prototype 1.6 final today. We've put huge amounts of effort and love into it. It's a great release and I'm sure you will love it.I'd like to take that opportunity to thank all the users and contributors who've filed bug reports, posted patches and generally helped with the development and testing.But there's more: Thomas Fuchs just announced script.aculo.us 1.8 final, which is of course fully based on Prototype 1.6.... and Christophe Porteneuve's book, Prototype & script.aculo.us, has just been completed and is now available for purchase from the Pragmatic Programmers. It's fully up to date with both Prototype 1.6 and script.aculo.us 1.8. Go get it ...


2007-05-15T20:16:00+02:00 | 9 lectures

Looks like Rico - a UI JavaScript lib built on top of Prototype - is getting ready for a long awaited 2.0 release.As seen on their website: Site Update and Rico 2.0. We are updating the site to support Rico 2.0. We have also suffered some server troubles. Please bear with us as we prepare the site for the new release.I'm really looking forward to find out what Richard Cowin and team have been cooking.


2007-06-04T00:30:00+02:00 | 9 lectures

2007-09-02T09:26:00+02:00 | 9 lectures

[...] Indeed, tests such as the Acid 2.0 Web Standards tests, demonstrates that the iPhone version of Safari supports more standards than Microsoft's desktop version of Internet Explorer. - Matthew David, Developing Web Applications for the iPhoneI'm not sure I consider the Acid Test as relevant enough in the above context, but that quote is just too hilarious to let pass.


2007-05-12T02:54:00+02:00 | 8 lectures

Seen on project.ioni.st today: The feeling I get when programming is at least as important as other factors when selecting a language. Chad FowlerThat's what I refer to as the gut factor. And which is what made me stick with Prototype when no documentation was available, updates were scarce, and people were migrating en masse to jQuery and YUI.Looking back, that was one of the wisest decisions I made: I learnt way more about JavaScript helping out with the documentation and joining the Core Team than I would have otherwise.What about you. What factors pushed you to adopt the language, framework, or library that your are using today ?


2008-08-11T16:36:00+02:00 | 8 lectures

(cross-posted from the official Prototype blog)I'm very happy to announce a new addition to the Prototype bookshelf: core committer Andrew Dupont's Practical Prototype and script.aculo.us published by Apress.Obviously, Practical Prototype and script.aculo.us covers all you need to know about the latest versions of Prototype and script.aculo.us. But it goes well beyond that. Andrew does an awesome job at setting the context and giving appropriate background information, so much so that you'll end up knowing not only the how but also the why. In the ruthless world of client-side development, that's serious asset!Practical Prototype and script.aculo.us is a pleasure to read - the style is bo...


2010-03-01T10:19:41+01:00 | 8 lectures

(cross-posted from the official Prototype blog)I'm very happy to announce a new addition to the Prototype bookshelf: core committer Andrew Dupont's Practical Prototype and script.aculo.us published by Apress.Obviously, Practical Prototype and script.aculo.us covers all you need to know about the latest versions of Prototype and script.aculo.us. But it goes well beyond that. Andrew does an awesome job at setting the context and giving appropriate background information, so much so that you'll end up knowing not only the how but also the why. In the ruthless world of client-side development, that's serious asset!Practical Prototype and script.aculo.us is a pleasure to read - the style is bo...