Note that there are some explanatory texts on larger screens.

plurals
  1. POjQuery Mobile Scrollview
    text
    copied!<p>So I'm trying to make a scrollable list:</p> <pre><code>&lt;div data-role="content-primary" class="list" style="height:100%; overflow:scroll" data-scroll="y"&gt; &lt;ul data-role="listview" id="mainList" &gt; &lt;asp:Repeater ID="expList" runat="server" OnItemDataBound="expList_ItemDataBound" ClientIDMode="Static"&gt; &lt;ItemTemplate&gt; &lt;li class="opener" runat="server" id="lItem" style="border-top: 1px solid rgb(200,200,200)"&gt; &lt;div id="divPic" runat="server" class="pic"&gt; &lt;h2&gt;&lt;asp:Literal runat="server" ID="litName"&gt;&lt;/asp:Literal&gt;&lt;/h2&gt; &lt;p&gt;&lt;asp:Literal runat="server" ID="litDesc"&gt;&lt;/asp:Literal&gt;&lt;/p&gt; &lt;input type="hidden" Id="brand" runat="server"/&gt; &lt;input type="hidden" Id="cat" runat="server"/&gt; &lt;/div&gt; &lt;/li&gt; &lt;/ItemTemplate&gt; &lt;/asp:Repeater&gt; &lt;/ul&gt; &lt;/div&gt; </code></pre> <p>enclosed in: &lt;.section class="ex_list" style="float: right; width:70%;overflow:hidden"> tag</p> <p>I use following scripts:</p> <p><a href="http://jquerymobile.com/test/experiments/scrollview/jquery.mobile.scrollview.js" rel="nofollow">http://jquerymobile.com/test/experiments/scrollview/jquery.mobile.scrollview.js</a></p> <p><a href="http://jquerymobile.com/test/experiments/scrollview/scrollview.js" rel="nofollow">http://jquerymobile.com/test/experiments/scrollview/scrollview.js</a></p> <p>In addition to jqm and jq. Problem is that on PC scrolling doesn't work (yet it's not so bad), but on iPad whole site is being scrolled in addition to listview. User can also scroll OVER the site and see gray bg, until safari stops scrolling.</p> <p>EDIT: In addition these 2 JS's make 'toggleClass()' jQuery function not work.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload