I know is a very general question (I've never before developped a plugin in wordpress), but I ask for some help to point in the right direction. I want to do something I think is quite simple: I've developped a widget for web that asks some information from a server. Basically the code the developper inserts in the web is something like this:
<div id="widget_wrapper"></div>
<script type="text/javascript" src="server/js/widget.js"></script>
<script type="text/javascript">
var config = {
item_id: 1,
width: 500,
heigth: 200
};
init_widget(document.getElementById("widget_wrapper"), config);
</script>
I want to replicate this functionality with a plugin for wordpress. I want the user inserts some custom tag on his post (something like ), so the user can specify which element he want to access inside the tag. But I want the user can insert in posts, not like a widget on a side of his page. Someone could give me some tips to start developping it?
EDIT 1
I want it to work in Wordpress.com hosted blogs too, so the user can't simply paste javascript code to the post.
EDIT 2
For clarification: basically I want to do with the plugin is that the user can insert a tag in your post to do something similar to my widget for web: the user specifies a item_id you want to print the information in your post, and the server will returns the information in a iframe, which inserts into the div id="widget_wrapper". What would the plugin is that, once inserted a given (and that refers to a item_id) label, paint information in that space.
