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.

conversion


JSON object to XML convertion

Simple plugin to create XML string basing on JSON object.

var json = {person: {name: 'John', age: 29}, pet: ['Roxy', 'Elmo']};
var output = $.json2xml(json, {formatOutput: true});

...will result in XML markup

<root>
  <person name="John" age="29"/>
  <pet>Roxy</pet>
  <pet>Elmo</pet>
</root>

Plugin is configurable by various options, for example you can nicely format output or exclude/alter generated nodes just to name few.

Playing some with plugin's settings, you can generate perfectly fine XHTML tags directly from JSON object.

Currency

Currency: an unobstrusive automatic and real time currency conversion

This is a small tool that may prove to be usefull. It permits automatically converting any currency to any other currency on a website, with real time quotes. It is

implemented using an ajax PHP script backend (for cross-domain issue).

How to install:

Simply copy the currency-ajax.php file to the website (for example in the root folder), the jquery.currency.js and currency.css files. In addition, you can use the set

of icons provided in the package, or your own.

How it works:

Currency reads automatically traverses the DOM and processes every element tag with class currency. Each automatically converted currency value uses the

rel= tag for the options.

Here is an example: