Possible Duplicate:
Show modal JS dialog on any site using button
I need some kind of advise, how to use technologies to achieve following functionality:
So, some web-developer place piece of code on his site, like this:
<script src="http://mydomain/Scripts/LoadDialog"
type="text/javascript"></script>
<img src="http://mydomain.com/image"
onclick="window.ShowModalDialog(someArgs, **UserID**);" />
When user pressing on image button, there is server call occurs, and depending
on userID server will return content. As a server side technology is planed to use ASP.NET MVC. On front-end side will be JavaScript and jQuery.
Please let me know please if you know how it can be achived or where I can start from.
NOTE: Generally, these code should be placed on a site what user wants.
Check out the following blog entry, it helped me a great deal while developing something similar
http://alexmarandon.com/articles/web_widget_jquery/
In general, keywords for you are dynamic javascript and css loading and JSON-P that enables getting around browser’s same origin policy while sending AJAX requests.