• Facebook Rocks

    Go to Blogger edit html and replace these slide 1 description with your own words. ...

  • Facebook vs Twitter

    Go to Blogger edit html and replace these slide 2 description with your own words. ...

  • Facebook Marketing

    Go to Blogger edit html and replace these slide 3 description with your own words. ...

  • Facebook and Google

    Go to Blogger edit html and replace these slide 4 description with your own words. ...

  • Facebook Tips

    Go to Blogger edit html and replace these slide 5 description with your own words. ...

Followers gadget disappeared because of Prototype?



As you know, Scriptaculous library support is useful when creating spectacular effects in web design. During the application process Scriptaculous on Blogger, I found an unexpected incident utility Followers (Followers) "suddenly disappear" when put on blogspot Scriptaculous library. What a shame. This is because there is incompatibility between the utility script Followers in Scriptaculous with Prototype library. solution is to add a small script to take into Blogger Prototype library. We normally put the following code before the 
</ head> in the template.


<script src='http://www.google.com/jsapi'/>
< script>
google.load(&quot;prototype&quot;, &quot;1.6.1.0&quot;);
google.load(&quot;scriptaculous&quot;, &quot;1.8.3&quot;);
< /script>

To overcome the problem does not show the utility Followers, need to use code like this.

<script src='http://www.google.com/jsapi'/>
< script>
google.load(&quot;prototype&quot;, &quot;1.6.1.0&quot;);
window.JSON = {
parse: function (st) { return st.evalJSON(); },
stringify: function(obj) { return Object.toJSON(obj); }
};
google.load(&quot;scriptaculous&quot;, &quot;1.8.3&quot;);
< /script>

The marked red is added to handle the incompatibility between Prototype and script in the Followers gadget.

0 comments:

Post a Comment