(function() {

// MAXB.NET LABS

})();

javascript, jquery, plugins, ycodaslider

YCodaSlider 3.0

Posted on by Massimiliano Balestrieri | Comments (6)

DEMO SITE.

Slider scripts are one of the common objects of newspaper & portal websites.
They are very useful as they help us present more content in a limited space.
This script helps you present your content with a tabbed menu + previous-next buttons to switch between tabs.
YCodaSlider 2.0 requires jQuery to run and you can use any type of content inside the slider like HTML, Flash, webpages etc.
It can be configured easily to use different effects while changing the content.
from :
www.webresourcesdepot.com

Based on Gian Carlo Mingati’s slideViewer
http://www.gcmingati.net/wordpress/wp-content/lab/jquery/imagestrip/imageslide-plugin.html

Based on Niall Doherty’s coda-slider
http://www.ndoherty.com/coda-slider

Inspired by the clever folks at http://www.panic.com/coda

dokuwiki, javascript, jquery, plugins

Dokuwiki + jQuery + UI + Autocomplete

Posted on by Massimiliano Balestrieri | Comments Off

[[DOWNLOAD]]

UPDATE 2009-02-27: patch /inc/plugincontroller.class.php

function Doku_Plugin_Controller() {
   $this->_populateMasterList();
   sort($this->list_enabled);//ADD THIS LINE
}

____

To use it, extract the tarball inside DokuWiki plugins directory

/lib/plugins/

  • jQuery (1.3.1)
  • jQuery Metadata
  • jQuery Autocomplete
  • jQuery UI (Core + Dialog)
  • jQuery Tags*
  • jQuery Discussion*
  • jQuery Dialog Link*

Requires:

  • discussion
  • tag
  • pagelist

*Alpha versions

IMPORTANT:

$conf['compress']    = 0;                //Strip whitespaces and comments from Styles and JavaScript? 1|0

===== Discussion & Tag (autocomplete) =====

tags2

===== Internal Link Dialog (autocomplete) =====

link2

dokuwiki, javascript, jquery

Dokuwiki jQuery Tags

Posted on by Massimiliano Balestrieri | Comments Off

[[DOWNLOAD]]

To use it, extract the tarball inside DokuWiki plugins directory

/lib/plugins/

Requires: pagelist, tag, jquery

This is the first plugin that uses jQuery within DokuWiki.
It’s raw but it has a great potential.
Its goal is not to create a rich text editor for DokuWiki… there are plugins that try to bypass wiki syntax.
Its goal is to help the user with some given syntax plugin (tag, discussion etc).

Original syntax is

{{tag>tag1, tag2, tag3}}

My plugin helps the user with an input textfield that adds tags (comma separated).

On loading, the js detects the tags block (I suppose there is just one
block) and it places the block inside the input field (without {{tag>}}).

On saving, the js reads the value from the input and it places the
value at the end of the source as

{{tag>TAG1, TAG2, TAG3}}

… and now? UI?

javascript

Trovare le variabili globali

Posted on by Massimiliano Balestrieri | Comments Off

Mi sono trovato una libreria che spargeva un po di globali qua e la!

Ho creato uno script che stampa le globali in “più” rispetto a un dato momento.

Ecco qui.

I risultati sono da leggere su firebug. Se non viene trovato vengono sparati due alert.

Al posto di quello snippet potete inserire varie librerie.
Qui c’è un secondo esempio con jQuery incluso.

Risultato: jQuery crea due “globali”:

  • jQuery
  • $

Può essere utile soprattutto per correggere eventuali script “scritti male”.

<script type="text/javascript" charset="utf-8">
    var _global = {};
    for (var x in window) {
        _global[x] = x;
    };
    var _mydebug = function(arg) {
        //window.console ? console.log(arg) : alert(arg);
        alert(arg);
    };
</script>
<script type="text/javascript" charset="utf-8">
    //some scripts?
    //some external js?
    var MYGLOBAL = true;

    //closure
    (function() {
        var _private = true;
        BADSTYLE = 1;

        function foo() {
            BADSTYLE2 = 1;
        };

    })();
</script>
<script type="text/javascript" charset="utf-8">
    var _global2 = {};
    for (var x in window) {
        _global2[x] = x;
        if (!_global[x] &amp;&amp; _global2[x] !== '_global2') _mydebug(_global2[x]);
    };
</script>