Archiv für die Kategorie ‘Proggen’

Im Moment durchsuchst du das Archiv für die Kategorie Proggen.

nerdco.de ist online

08. August 2009 von Sebastian

Als “kleine Spielerei für Zwischendurch” und mit dem Anlass der Registrierung meiner neuen Domain

nerdco.de

habe ich dort eine auf JavaScript basierende, im Style einer Shell programmierte, Website online gestellt.

Viel Spaß damit!

Unobtrusive, nested JavaScript-Tabs with server-side PHP-fallback

21. Oktober 2008 von Sebastian

A few month ago I published the YAAADI-”library” which was build on the knowledge of my first steps with JavaScript.

Meanwhile for some time I studied further details of object orientation in JS and JS in general.
Mainly by reading books and web articles of great programmers like Douglas Crockford, Dustin Diaz, Ross Harmes, Dean Edwards, Sam Stephenson, Jeremy Keith, Christian Heilmann… Thanx a lot to you guys!!!

And again this led me to begin programming my own lib or lib extension in JS.
The lib I am working on I call “jsbase”. Up to now it still depends on the Prototype-JS-Framework.
The jsbase lib is not yet finished and so cannot be found here yet.

But I extracted one nice part of it: It´s a widget for implementing unobtrusive and nested JavaScript-Tabs with a server-side PHP-fallback.

In its current version v0.3.0 it preloads all contents and puts a “display:none;”-CSS-style on the non-active div elements.
later on I´m going to add an AJAX-based “on-the-fly” content loading.

[UPDATE] Fixed minor bug (-> v0.3.1): now also works properly in IE. [/UPDATE]

The jsbase-tabs-v0.3.1 is published under the MIT-license.

DOWNLOAD jsbase-tabs-v0.3.1.zip

DEMO:



contentString0lv0
contentString1lv0
contentString0lv1
contentString0lv2a
contentString1lv2a
contentString2lv2a

contentString2lv1