This article will give a simple example of how to write a web app with Google Apps Script, and then make a call to this from a page posted on your blog at Blogger. Since you can't host web apps on the same domain as your Blogger blog, you would normally be restricted from doing this by the
same origin policy enforced by javascript. That is, javascript in a page on one domain cannot make remote calls to services running on another domain. This policy is enforced to prevent vulnerabilities called
cross-site scripting.
[Technorati Claim Code E37UMY4BPKYS] But if you control both the content in your Blogger page, as well as the code of the web service, then there is a way to get around this using an approach called
JSON with padding or
JSONP. In this article I'll share a simple example which you can modify to solve more complex problems where you want to execute some server side function in Google Apps Script without the user leaving the page of your blog.