0.4.0 • Published 9 years ago

poodle v0.4.0

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

Poodle

Transport framework

Provides an API for managing service calls and static image loading that is a) evented (based on evan) and b) is consistent with the OOP principles laid down in troop.

Wiki

Reference

Examples

jsFiddle

POSTing to an endpoint:

'/endpoint/path'.toEndpoint().toRequest()
    .setHttpMethod('POST')
    .setParam('param', 'value')
    .toService()
        .callService();

Capturing the service's successful return:

'/endpoint/path'.toEndpoint()
    .subscribeTo(poodle.Service.EVENT_SERVICE_SUCCESS, function (event) {
        console.log("service returned with response", event.responseNode);
    })

Loading a static image:

'/images/foo.jpg'.toImageUrl()
    .loadImage();

Capturing the successful loading of the image into an image element:

'/images/foo.jpg'.toImageUrl()
    .subscribeTo(poodle.Image.EVENT_IMAGE_LOAD_SUCCESS, function (event) {
        console.log("image loaded into", event.imageElement);
    });
0.4.0

9 years ago

0.3.17

9 years ago

0.3.16

9 years ago

0.3.15

9 years ago

0.3.14

9 years ago

0.3.13

9 years ago

0.3.12

9 years ago

0.3.11

9 years ago

0.3.10

9 years ago

0.3.9

9 years ago

0.3.7

9 years ago

0.3.6

9 years ago

0.3.5

9 years ago

0.3.4

9 years ago

0.3.3

9 years ago

0.3.2

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.0

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago