Marelalib is a simple to use library for an asychronous communication with Marela API. It supports multiple simultaneous calls (number limited by browser) and pipelining of calls as supported by Marela API.

Demonstration

This very page. If you have javascript turned on and browser supports it, then you should see an image fetched from Marela on the right side of this page.

Usage

Example: Javascript used on this page.

Requirements

Obviously a Javascript capable browser with this feature turned on. Since there are so many of them, each with their own personal quirks, I tested this code and it works in:

  • Internet Explorer 5.0+
  • Firefox 1.0+
  • Safari 1.3+
  • Opera 8.0+

It doesn't seem to work in:

  • Konqueror 3.4

Downloads

You can download either normal version or compact one. There are no functional differences between the two.

Bugs & limitations

  • I haven't tested it yet, but I can imagine it won't work on IE after 10 thousandth call. A reload of your page would certainly fix this.

Questions

If you have any questions not answered here, please contact me or leave a comment on my blog.

License

MIT license. I'd love to hear from anyone using my code, but you're not obliged to do so.

Marko Samastur, 4.3.2006

My random Marela picture
Random image from my collection on Marela