Hey guys
I'm very new to the whole programming - so far I only have experience with building websites, database etc.
I currently have a website where users can share their online purchases.
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.
My website is built on PHP using Zend Framework and uses Mysql backend.
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.
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.
Example of Google Adsense Code
<script type='text/javascript'> --></script><script type="text/javascript"><!-- 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"; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
Is this a form of widget as well - How is Javascript being used here? Thanks