still having error , iv got a code like this:
- function onLoad()
- {
- $.post("http://localhost/teste/dataloaded.php",function(data){
- $(data).appendTo( "#paizao" ).trigger( "create" );
- });
-
- $('#paizao').trigger("refresh");
- }
then in the html i have
- <div id="conteudolista">
- <ul data-role="listview" data-inset="true" id="paizao">
-
- </ul>
- </div>
and the data that was being loaded contains
- <li>Restaurante 1.0<ul><li>Entradas<ul><li><a href="http://localhost/cardapiovirtual/index.php/produto/28" rel="external">Batata Frita</a></li><li>Carpatcho</li><li>Salaminho</li><li>sanduiche da nenem</li><li>croascant</li></ul></li><li>Bebidas<ul><li>chope</li><li>antartica</li><li>cristal</li></ul></li><li>skoll</li><li>Petiscos<ul><li>tabua de frios</li><li>salame</li><li>amendoim</li><li>doritos</li></ul></li><li>Promoções =D<ul><li>skoll </li><li>salaminho</li></ul></li><li>História do Restaurante<ul><li>historia </li></ul></li><li>New node</li></ul></li>
If i copy the content and paste instead of load it works ok , but i need to load it dinamicaly.
i put an allert to see if it was being loaded ok , and the load works fine , its just an jquerymobile error, how can i fix it and load it fine , like a listview?