title: How to build a widget for my website
body: <p>I'm very new to the whole programming - so far I only have experience with building websites, database etc.</p>
  
  <p>I currently have a website where users can share their online purchases.</p>
  
  <p>I want to build a widget that other websites can integrate on their site. The widget will show the recent purchases entered on my website and Users should be able to insert their purchases directly through this widget without having to come to my website.</p>
  
  <p>My website is built on PHP using Zend Framework and uses Mysql backend.</p>
  
  <p>Some of the websites I'm speaking to have agreed to add the widget if its non-obtrusive and if all they have to do is insert 4 lines of javascript code in their pages. I'm assuming this should work something like Google adsense code where you enter the googles javascript code and the ads start showing.</p>
  
  <p>Thats the idea but I have no idea how to go about it - can anyone point me in the right direction. Any examples or tutorials on how to do this.</p>
  
  <p>Example of Google Adsense Code</p>
  
  <pre>
  &lt;script type='text/javascript'> -->&lt;/script>&lt;script type="text/javascript">&lt;!--
  google_ad_client = "pub-06xxxx453614";
  google_ad_width = 728;
  google_ad_height = 90;
  google_ad_format = "728x90_as";
  google_ad_type = "text";
  google_ad_channel = "3407467430";
  google_color_border = "38B63C";
  google_color_bg = "FFFFFF";
  google_color_link = "0066CC";
  google_color_text = "000000";
  google_color_url = "0066CC";
  google_ui_features = "rc:0";
  //-->
  &lt;/script>
  &lt;script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
  &lt;/script>
  </pre>
  
  <p>Is this a form of widget as well - How is Javascript being used here?
  Thanks</p>