Unobtrusive, nested JavaScript-Tabs with server-side PHP-fallback
21. Oktober 2008 von SebastianA 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:
Hinterlasse eine Antwort
Du musst angemeldet sein, um einen Kommentar zu erstellen.