function writediv(div) { if(window.XMLHttpRequest) // FIREFOX xhr_object = new XMLHttpRequest(); else if(window.ActiveXObject) // IE xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); else return(false); xhr_object.open("GET", 'inclfav.php?limit='+txt, false); xhr_object.send(null); if(xhr_object.readyState == 4) $("#list-fav").html(xhr_object.responseText); else return(false); }
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>XXXX.COM</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css" /> <script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> <script src="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.js"></script> <script type="text/javascript"> var txt = 1; function writediv(div) { if(window.XMLHttpRequest) // FIREFOX xhr_object = new XMLHttpRequest(); else if(window.ActiveXObject) // IE xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); else return(false); xhr_object.open("GET", 'incl.php', false); xhr_object.send(null); if(xhr_object.readyState == 4) $("#list-fav").html(xhr_object.responseText); else return(false); } </script> </head> FAVORIS http://XXX.com/mon_espace.php <li> XXXXX 29 ans </li> </html>
<? echo ""; echo "<li>"; echo " XXXX-INFOS 29 ans "; echo " "; echo " "; echo ""; echo "</li>"; echo "<li>"; echo " ougme 31 ans "; echo " "; echo "Meurthe-et-Moselle (54) "; echo ""; echo "</li>"; echo "<li>"; echo " jemorpas 23 ans "; echo " "; echo "Hauts-de-Seine (92) "; echo ""; echo "</li>"; echo ""; ?>
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question