0900 3 123410 – Ralf Sommer schlägt wieder zu (MXCall GmbH)

28. Oktober 2009 00:20 von tXptr

Aufgrund der gehäuften Kommentare zum Ralf Sommer Artikel vom 9. Juli 2009 habe ich mich entschlossen, die aktuelle Nummer von Ralf Sommer und seinem Gewinnclub in einem extra Artikel zu posten.

0900 3 123410

Wie immer gilt, NICHT achtlos zurückrufen, sonst wird es unter Umständen teuer!!!

Geschrieben in Allgemein | Keine Kommentare » | Twitter It »

Z-Index eines Flashmovies bzw. wie lege ich ein DIV über ein Flash-Movie?

25. Oktober 2009 15:42 von tXptr

Eigentlich ganz einfach! Man muss lediglich folgenden Parameter in den Aufruf des Flashmovies eintragen:

param name="wmode" value="transparent"

Und im <embed>-Tag:

wmode="transparent"

Geschrieben in Development | Keine Kommentare » | Twitter It »

[jQuery] Serialize List Plugin

25. Oktober 2009 01:49 von tXptr

Mike Botsko hat ein nettes Plugin für jQuery geschrieben, mit dem eine unordered list <ul> “serialisiert” werden kann, um sie dann mit PHP o.ä. weiterverarbeiten zu können.
Der Quelltext des Plugins sieht wie folgt aus:

?View Code JAVASCRIPT
(function($){
    $.fn.serializelist = function(options) {
        /**
         * jQuery Serialize List
         * Copyright (c) 2009 Mike Botsko, Botsko.net LLC
         * Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
         * Copyright notice and license must remain intact for legal use
         * Version 1
         *
         * Serialize an unordered or ordered list item. Optional ability
         * to determine which attributes are included. The serialization
         * will be read by PHP as a multidimensional array which you may
         * use for saving state.
         */
 
        // Extend the configuration options with user-provided
        var defaults = {
            prepend: 'ul',
            is_child: false,
            attributes: ['id', 'class']
        };
        var opts = $.extend(defaults, options);
        var serialStr     = '';
 
        if(!opts.is_child){ opts.prepend = '&amp;'+opts.prepend; }
 
        // Begin the core plugin
        this.each(function() {
            var ul_obj = this;
 
            var li_count     = 0;
            $(this).children().each(function(){
 
                for(att in opts.attributes){
                    serialStr += opts.prepend+'['+li_count+']['+opts.attributes[att]+']='+$(this).attr(opts.attributes[att]);
                }
 
                // append any children elements
                var child_base = opts.prepend+'['+li_count+'][children]';
                $(this).children().each(function(){
                    if(this.tagName == 'UL' || this.tagName == 'OL'){
                        serialStr += $(this).serializelist({'prepend': child_base, 'is_child': true});
                    }
                });
                li_count++;
            });
        });
        return(serialStr);
    };
})(jQuery);

Der Aufruf erfolgt über folgenden Befehl:

?View Code JAVASCRIPT
$(document).ready(function(){
    $('ul').serializelist();
});

Geschrieben in Development | Keine Kommentare » | Twitter It »