Note that there are some explanatory texts on larger screens.

plurals
  1. POjavascript execution exceeded timeout error in android tablet
    primarykey
    data
    text
    <p>I have an application in which i need to parse and display data from webservice. Here i have 2 different services, in one service i have 24 items and in another service i have 200 items. For service with 24 items i am able to display it properly but the service with 200 items showing <strong>javascript execution exceeded timeout</strong> error and displaying blank page.The code is same for both services. Can anyone please help me how to get rid of this error and display data properly?</p> <p>I am adding piece of code here</p> <pre><code> &lt;script type="text/javascript"&gt; function showMessage(data, index) { var obj = jQuery.parseJSON(data.d); if (index == "TrackDeals") { trackDeals(obj); } } function OnError(request, status, error) { alert(request.statusText); } function trackDeals(trackdeals) { var items = []; var count = 0; $.each(trackdeals, function(key, value) { count++; pid = value.ApplicationId; var str = localStorage.getItem("appidlist"); if (str == null){ var html = '&lt;tr&gt; my html code &lt;/tr&gt;'; } else { var mySplitResult = str.split(","); for(var i = 0; i &lt; mySplitResult.length; i++) { if(mySplitResult[i] == pid) { var html = '&lt;tr&gt; my html code &lt;/tr&gt;'; } else { var html = '&lt;tr&gt; my html code &lt;/tr&gt;'; } } } items.push(html); }); $('#trackdeals').html(items.join('')).trigger('create'); $("table tr").slice(0, 5).show(); $("#load").click(function(e) { e.preventDefault(); $("table tr:hidden").slice(0, 5).show(); if ($("table tr:hidden").length == 0) { alert("No more data"); } }); } $(document).ready(function() { document.getElementById('username').innerHTML = "name"; var trackparam = username + ',' + userid; CallWebServiceFromJquery('TrackDeals', trackparam); }); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div class="deals-content"&gt; &lt;div class="deals-table-header"&gt; &lt;table width="100%" class="table"&gt; &lt;tr&gt; &lt;td width="18%"&gt;Reference Id&lt;/td&gt; &lt;td width="22%"&gt;Account&lt;/td&gt; &lt;td width="24%"&gt;Agency Name&lt;/td&gt; &lt;td width="27%"&gt;Product&lt;/td&gt; &lt;td width="8%"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/div&gt; &lt;div class="deals-table-content"&gt; &lt;table width="100%" class="deals-table-header-table" id ="trackdeals"&gt;&lt;/table&gt; &lt;button id="load" style="width: 98%; font-weight: bold"&gt;Load More&lt;/button&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; </code></pre> <p></p> <p><em><strong>Edit: I am able to get output for same code in gingerbread emulator but i am facing this error with honeycomb emulator.</em></strong></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