Since this question can’t be closed because there is a bounty on it, I’ll add an answer to it:
What you are looking for is called an “embeddable widget”.
The idea is that you provide your end user (developer/webmaster) with a piece of javascript that will:
- If needed pull in more javascript from your server.
- Append a bunch of HTML that contains your widget into the place where it was droppeded in.
- Speak with your server through either ajax or other ways.
Here are a couple of resources for you to read:
1
solved How to intergate web application like Google Calendar?