I am trying to do something similar to what google AdSense does. Basically I want to provide users with script that they can plug-in to their website. So they can have a protal with information from my website. I am not sure how this is done. I tried looking up information on how to pass in variables to my javascript file from users page (on different domain).
Here is an example of google adsese..
<script type=”text/javascript”><!–
google_ad_width = 160;
google_ad_height = 600;
…..
//–></script>
<script type=”text/javascript”
src=”
</script>
They have something like above, from my understanding show_ads.js uses varibles like google_ad_witdh and stuff, which is set in clients html code. I tried to look for how this works on google but didnt find much. Any link or any example on how to invoke js from one domain to another and passing paramenter will be very helpful. Thanks in Advance.