Revision: 51151
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at September 16, 2011 00:43 by jose_506
Initial Code
const div_content="#containerMain"; const img_loading="<div id='loading'><img src='images/loading.gif' /></div>"; function LoadContent(namecontent){ $.ajax({ url: base_url_include+namecontent, context: document.body, dataType: "html", cache: true, beforeSend: function(){ $(div_content).html(img_loading); }, success: function(html){ $(div_content).html(html); } }); }
Initial URL
Initial Description
Initial Title
function load by ajax
Initial Tags
ajax, php
Initial Language
PHP