Using bAjax for retrieving the returned data (JSON format) from the server:
Please click on button to display Google's services.
Result:
Source Code
JavaScript:
HTML:
Please click on button to display Google's services.
Result:
JSON Data:
{
items: [
{
title: "Google Search Engine",
link: "http://www.google.com",
description: "Top search engine in the world!"
},
{
title: "Google Gmail",
link: "http://mail.google.com",
description: "New kind of webmail, built on the idea that email can be more intuitive, efficient, and useful."
},
{
title: "Google Adsense",
link: "https://www.google.com/adsense/login/en_US/",
description: "A free program that enables website publishers of all sizes to display relevant Google ads and earn."
},
{
title: "Google Docs",
link: "http://docs.google.com",
description: "Free web-based word processor and spreadsheet, which allow you share and collaborate online."
}
]
}