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.

repeat


Ajax Real Time Extension

This plugin extend ajax functionality of your web page. It brings the possibility to execute custom and repetitive actions in background of the page, so you can dialog with the server in real time.
It manages a continuous connection with the server. It create a customizable loop with an action queue to add some actions and parse automatically the XML/Text response of the server to execute your appropriate/custom actions.

Some interesting examples/ideas which can now be made easily:

  • - Refresh an html field in real time
  • - sessions management (warn when session will expire, auto reload it)
  • - add a simple chat
  • - display message when a user receives a new mp

And all of this in real time

Doing a extended website with Ajax has never been such easier.

Repeat a string in a jQuery object

I discovered that I needed a way to repeat a string and then insert it into a jQuery/DOM object. So I created this little bit of code to do just that.

if you have a table and need to fill in all the rows or columns you can write something like this:

$("table > tr").repeat( times, "<td></td>" ); 

TemplateDisplay

The idea here is based off of Spry's repeat regions to produce dynamic forms from JSON data through a HTML template.

Download:

http://code.google.com/p/templatedisplay/

Example:

<table class="template">
<tr>
<td>!VariableName!</td>
</tr>
</table>
<table class="create">
</table>

<script>
$(".template").templateDisplay({query:d.RESULTS,target:".create"});
</script>

Options

Required

Remember the following sets are mutually exclusive with each other:
ajax or columns/data or query

  • query(object of COLUMNS and DATA array)

    ColdFusion query returned with returnformat="json"

    {"COLUMNS":["ColumnName 1","ColumnName 2"],"DATA":[[Column1Value1,column2Value2]]}
  • data(array of arrays)

    Data to display, this refers to the rows based of the columns argument

DD_belatedPNG

The jQuery DD_belatedPNG plugin is a direct port of DD_belatedPNG, which allows you to use 24-bit alpha-translucent PNG images in image tags as well as for the background-image CSS property in Internet Explorer 6, supporting background positioning and background repeating. There is no usage of AlphaImageLoader, so this doesn't have the buggy z-indexing associated with that filter, and it responds to Javascript element.style assignments and the :hover pseudo-class.