Javascript - JQuery simulate ajax call (mock)

Oscar Brito


<script src="jquery.ajax.fake.js"></script>
<script src="webservices.fake.js"></script>

Simulate a web service return value:

$.ajax.fake.registerWebservice('', function(data) {
return [{
"text": "hey this is fake #tweet, retweet please :) #retweet"

Visit for more informations, contacts and news about Web Development.
See other blog posts at

Divhide purpose is to follow the HTML5 movement and contribute with applications which prove the quality of technology.

Feel free to contact divhide.