android - Why the data start scrolling horizontally when data is coming from server? -


i working on jquery , jquery mobile .i facing 1 simple complicated issue .i have 1 div in append server data. in div insert style (width example 40%).when inserted static data working fine in other word data come in new line when width complete. when data coming server start scrolling horizontally. take example if have data static. data this

hi demo
no come
next morning

but when data come server show thsi

hi demo(see upto here , can scroll data) no come next morning facing problem in android .

here code.

<div id="test" style="width:40%"></div> 
$('#test').append(result) 

i getting result server this

     console.log("result"+result); 08-15 21:32:20.898: i/web console(5635): result&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{mrr}&nbsp;distanced&nbsp;himself&nbsp;in&nbsp;may&nbsp;of&nbsp;2010&nbsp;following&nbsp;the&nbsp;prohibited&nbsp;practice. 08-15 21:32:20.898: i/web console(5635): :876 08-15 21:32:20.906: d/cordovalog(5635):      var data  = result.replace("&nbsp;", " ");      console.log("after result"+result);    after result&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{mrr}&nbsp;distanced&nbsp;himself&nbsp;in&nbsp;may&nbsp;of&nbsp;2010&nbsp;following&nbsp;the&nbsp;prohibited&nbsp;practice. 08-15 21:32:20.906: i/web console(5635): after result&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{mrr}&nbsp;distanced&nbsp;himself&nbsp;in&nbsp;may&nbsp;of&nbsp;2010&nbsp;following&nbsp;the&nbsp;prohibited&nbsp;practice. 


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -