Note that there are some explanatory texts on larger screens.

plurals
  1. POKendo UI Mobile - Refreshing page on local view displays blank white screen
    primarykey
    data
    text
    <p>Let's say I have a website at example.com</p> <p>It contains two local views, "Database" and "Year"</p> <p>Initially, the Database view is loaded.</p> <p>The user navigates to the "Year" view.</p> <p>The address bar (at least in android 2.3) now reads example.com#Year</p> <p>The user then decides to refresh the page for whatever reason.</p> <p>The address example.com#Year is refreshed and the user is greeted with a blank white screen.</p> <p>Anyone have any suggestions on how to handle this situation? Obviously, whichever view the user is at, if refreshed, I would like for it to display..</p> <p>Thanks!</p> <p><strong>Update:</strong></p> <p>Here is some code to help with describing my problem:</p> <p>html:</p> <pre><code>&lt;div data-role="view" id="Database"&gt; &lt;div data-role="content"&gt; &lt;p&gt;&lt;strong&gt;This is the Database view&lt;/strong&gt;&lt;/p&gt; &lt;a data-role="button" id="databaseButton" href="#Year"&gt;Go to Year View&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;div data-role="view" id="Year"&gt; &lt;div data-role="content"&gt; &lt;p&gt;&lt;strong&gt;This is the Year view&lt;/strong&gt;&lt;/p&gt; &lt;a data-role="button" id="yearButton"&gt;Refresh Page&lt;/a&gt; &lt;/div&gt; &lt;/div&gt;​ </code></pre> <p>script:</p> <pre><code>var app = new kendo.mobile.Application($(document).body, { initial: "Database" }); $("#yearButton").click(function() { // location.reaload(); // cannot simulate page refresh by the user in jsfiddle // the current browser address is example.com/index.html#Year // reloading this address produces a blank white screen // because of the #Year parameter }); </code></pre> <p><a href="http://jsfiddle.net/VUN3g/16/" rel="nofollow">http://jsfiddle.net/VUN3g/16/</a></p>
    singulars
    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