I could resolve a question about Jquery Mobile.
<head>
<script type="text/javascript">
$(document).ready(function(){
setInterval(loadWid,10000);
});
function loadWid(){
$("#general").load("home.php");
}
</script>
</head>
<body>
<div id="general">
<?php
$result=mysql_query("SELECT * FROM uno_seccion order by uno_prioridad ASC");
while($row = mysql_fetch_assoc($result)){
$id_seccion= $row['uno_id_seccion'];
$nombre_seccion= $row['uno_nombre_seccion'];
$prioridad= $row['uno_prioridad'];
$clase= $row['uno_clase'];
$patron = '/[.]/';
$clase= preg_replace($patron, "", $clase);
echo"
<div id='base' class='$clase'>
<div id='title'>
<img src='imagenes/flecha.png' width='11' height='22' border='0'><h3>$nombre_seccion</h3>
<div id='actualizar_tbn_seccion'>
<input type='button' value='Actualizar Sección' data-icon='gear' data-iconpos='notext' data-theme='e' onclick='location.href=\"adm_secciones.php\";''>
</div>
</div>
<div id='logos_navegacion'>
<div id='content'>
<ul id='menu'>
";
$result01=mysql_query("SELECT * FROM uno_seccion INNER JOIN uno_links ON uno_seccion.uno_id_seccion=uno_links.uno_id_seccion and uno_seccion.uno_id_seccion='$id_seccion' order by uno_links.uno_prioridad_link ASC");
while($row = mysql_fetch_assoc($result01)){
$id_link = $row['uno_id_links'];
$nombre_link = $row['uno_nom_link'];
$url = $row['uno_url'];
$prioridad_link = $row['uno_prioridad_link'];
$path= $row['uno_imagen'];
echo" <li id='arrayorder_$id_link'><a href='http://$url' data-ajax='false' target='_blank'><img src='iconos/$path' id='trans' alt='$nombre_link'></a></li>";
}
echo "
<li><a href='crear_links.php?id=$id_seccion' data-ajax='false'><img src='imagenes/mas.jpg' id='trans' alt='Crear Link'></a></li>
</ul>
</div>
</div>
</div>
";
}
?>
</div>
</body>
What happens is that I need to refresh the div id = "general" that contains a query in php that I generated a list of icons with links.
This time I do this with jquery but when it cools the div id = "general" disappears. When I check the source code of the page THROUGH this information, but this is not reflected.
Someone could guide me to see that I can do this and I have gone mad.