Note that there are some explanatory texts on larger screens.

plurals
  1. POjQuery mobile adds a space after list-entries
    primarykey
    data
    text
    <p>I retrieve data from php and add them to a listview dynamically. If I add just static data "on the fly" everything seems perfect, but when the data is retrieved from a php file jQuery Mobile adds a space after my list-entries. Is there a known problem?!</p> <p>My js-file looks like:</p> <pre><code> userda = ''; $.ajax({ type: "POST", url: "userdata.php", data: {"iduser": iduser}, dataType: 'json', cache: false, success: function(data1){ userda += '&lt;li data-role="list-divider"&gt;Name&lt;/li&gt;'; userda += '&lt;li&gt;'+data1.data.fname+' '+data1.data.lname+'&lt;/li&gt;'; userda += '&lt;li data-role="list-divider"&gt;Money&lt;/li&gt;'; userda += '&lt;li&gt;'+data1.data.money+'&lt;/li&gt;'; userda += '&lt;li data-role="list-divider"&gt;Headlines&lt;/li&gt;'; $.each(data1.headlines, function(i, currentObj) { userda += '&lt;li&gt;' + currentObj + '&lt;/li&gt;​'; }); $('ul#userdatalist').html(userda).listview('refresh'); } }); </code></pre> <p>My HTML file looks like</p> <pre><code>&lt;ul data-role="listview" data-inset="true" data-theme="c" data-divider-theme="a" id="userdatalist"&gt; &lt;/ul&gt; </code></pre> <p>And the (json) data looks like:</p> <pre><code>{"data":{"fname":"test","lname":"test","money":"47"},"headlines":["Promis","Unterhaltung","Unterwaesche"]} </code></pre> <p>And the result looks like: <a href="http://imageshack.us/photo/my-images/705/bildschirmfoto20120619uj.png/" rel="nofollow">http://imageshack.us/photo/my-images/705/bildschirmfoto20120619uj.png/</a></p> <p>I can't see any problems, but I my second listview I have the same problem.</p>
    singulars
    1. This table or related slice is empty.
    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