Showing posts with label mockjax. Show all posts
Showing posts with label mockjax. Show all posts

Wednesday, November 13, 2013

Mockjax and jQuery UI Progressbars

The Mockjax jQuery plugin let's us mock Ajax requests. It's really simply to use too. For example, I can use regular expressions to define URL paths for individual API requests, or I can define a catchall that returns a static response for every Ajax call made. What'ts also really interesting about Mockjax is that I have the freedom to dynamically generate my own responses for a given request. Writing jQuery UI applications usually means interacting with an API — and so this is an ideal too given it's simplicity. If your experiments go well, we need only replace the mock requests with a real back-end API.