MENU

iScroll 4

Yesterday I had a problem, with HTML scrolling DIVs in Webapps. I thought it would be natural in iDevices but Android is allways a problem. But bigger problem ist bigger challenge for me. So I searching web for solution and found great Javascript plugin called “iScroll”. Now its version iScroll 4 released. For usage just download from
http://cubiq.org/iscroll-4.
In HTML just create div with content

 
… …

… …

 

And insert into HEAD of your document this code

<script type="application/javascript" src="iscroll.js"></script><script type="text/javascript">// <![CDATA[ var myScroll; function loaded() { myScroll = new iScroll('wrapper'); } document.addEventListener('DOMContentLoaded', loaded, false); // ]]></script>

It automaticly adjust height aned everything else. I got Top and Bottom bar on webapp and scrolling content in middle and everything just works like charm.

Thanks for this plugin.

Leave a Comment!

Your email address will not be published. Required fields are marked *