title: How to add twitter tweet functionality on my website?
body: <p>I'm following this <a href="http://thomasbillenstein.com/jTweetsAnywhere/demo/A-customized-Tweet-Box/" rel="nofollow">Site</a> which is a easy way to add a customised tweet box and button on my site and will help in update of post.</p>
  
  <p>As per its functionality, once we write any messages in the textbox and click on tweet button we will get the twitter login pop up window, once we are authenticated our message will be posted on our twitter account wall.</p>
  
  <p>But when i run this code, i'm getting the pop up window and once i provide my credentials the window closes but no message is posted in the twitter account. When i checked on my javascript console im getting error:</p>
  
  <blockquote>
    <p>Unsafe JavaScript attempt to access frame with <a href="https://api.twitter.com/xd_receiver.html" rel="nofollow">https://api.twitter.com/xd_receiver.html</a> from frame with URL about:blank. The frame requesting access has a protocol of 'http', the frame being accessed has a protocol of 'https'. Protocols must match.</p>
  </blockquote>
  
  <p>I dont know what this error means as my site through which im running the form is clorderdev2.uvacha.com</p>
  
  <p>Below is my code :</p>
  
  <pre><code> &lt;script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"&gt;&lt;/script&gt; 
  &lt;script type="text/javascript" src="http://platform.twitter.com/anywhere.js?id=YOURCONSUMERKEY&amp;v=1"&gt;&lt;/script&gt;
     &lt;script type="text/javascript" src="Scripts/jquery.jtweetsanywhere-1.3.1.min.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="Scripts/jtweetsanywhere-de-1.3.1.min.js"&gt;&lt;/script&gt;
  
  &lt;div id="jTweetsAnywhereSample"&gt;&lt;/div&gt;
  &lt;script type="text/javascript"&gt;
  $('#jTweetsAnywhereSample').jTweetsAnywhere({
  showTweetBox:{
      counter: true,
      width: 380,
      height: 65,
      label: '&lt;span style="color: #A4A4A4"&gt;What\'s happening?&lt;/span&gt;',
      defaultContent: '#jTweetsAnywhere',
      onTweet: function(textTweet, htmlTweet){
          alert('You tweeted: ' + textTweet);
      }
  }
  });&lt;/script&gt;
  </code></pre>