Plugins

The plugins site is currently in development.

We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.

embedding


jQuery Embed Data

jQuery Embed Data

Version 0.1

In a nutshell:

<div id="my-div">
    <script type="jquery/data">
    {"some":"metadata"}
    </scrip>
</div>
<script type="text/javascript">
    $(document).ready(function(){

        // getting data:
        $("#my-div").edata("get").some == "metadata";

        // setting/updating data:
        $("#my-div").edata("set", "other", "new data");

        // getting raw json (even updated)
        $("#my-div").edata("raw") == '{"some":"metadata","other":"new data"}';

        // counting
        $("#my-div").edata("total") == 1;

    });
</script>

What is it ?

A jQuery plugin that stores JSON data within HTML elements.

What is this for ?

To save/retrieve JSON data from server.
If you need to get JSON data from server without making AJAX requests.

Why ?

Because I needed something:

jquery.flash

jquery.flash is a very lightweight jquery plugin that allows you to easily embed all sorts of flash content in a cross-browser compatible way without requiring a bulky dedicated library like swfobject. Weighing in at just 1.91 KB it is MUCH smaller than swfobject and offers all the same functionality. All you need to do is run flash() on a jquery object and optionally pass in some settings.

These are the default settings, but you can change them to whatever you want and even add attributes or parameters that aren't present using the availattrs and availparams arrays. When src is left out, jquery.flash will use the href value of the current element to replace as the path to the swf file. ID, class and dimensions are also inherited when left blank.

// All settings are entirely optional.
$(this).flash({
id: $(this).attr('id')
, class: $(this).attr('class')
, width: $(this).attr('width')

jQuery Tools / Flashembed

The future of Flash embedding

This plugin is now hosted under the jQuery Tools UI library..

Flashembed is a JavaScript tool that you can use to embed Flash objects to you website. There are other tools for embedding flash objects but none of them offers the same flexibility and ease of use as this one. Here are the highlights: