Note that there are some explanatory texts on larger screens.

plurals
  1. POJQueryMobile: stopPropagation() makes blank page flash on href click
    primarykey
    data
    text
    <p>I'm developing a RhoMobile appand I've been having lot of trouble with page transitions.</p> <p>At the end, I just decided to turn them off for a better user experience. Every button click works perfectly, except for one where I have a button inside a Collapsible element. For the click event on the button not to get interpreted as a click on the collapsible, I use this js code, which I suspect is causing trouble:</p> <pre><code> $(document).on('pagebeforeshow', '#index',function(e){ $('.details').bind('click', function (e) { e.stopPropagation(); e.stopImmediatePropagation(); }); }); </code></pre> <p>And in the HTML:</p> <pre><code>&lt;div data-role="page" id="index"&gt; Here go headers &amp; navbar and other stuff &lt;/div&gt; &lt;div data-role="content"&gt; &lt;div data-role="collapsible-set" class="uurbon-block"&gt; &lt;div data-role="collapsible" data-collapsed="false"&gt; &lt;h3 data-position="inline"&gt;&lt;p class='alignleft'&gt;Collapsible title&lt;/p&gt;&lt;div style="clear: both;"&gt;&lt;/div&gt; &lt;span style="float:right;" class="button-span"&gt; &lt;a href="some_url.html" data-role="button" data-mini="true" data-inline='true' data-icon="star" data-iconpos="left" class="details" data-transition="none"&gt; Button &lt;/a&gt; &lt;/span&gt; &lt;/h3&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>This will cause a blank page to be shown for 1-2 secs before transitioning. I'd be looking for a fix, but if not, i'd be happy with that page just beeing black (my app background is black also, so this blink wouldnt be so noticeable). Note: I have alredy tried setting body background color in css, won't work. Thanks for your ideas!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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