i have code
function loadpage(url) { url = url.replace('#page', ''); $.ajax({ type: "post", url: "load_page.php", data: 'page=' + url, datatype: "html", success: function (msg) { if (parseint(msg) != 0) { $('#pagecontent').html(msg); $('#loading').css('visibility', 'hidden'); } } }); } $(".pageclose").click(function () { $(".backscreen").animate({ "left": "100%" }); });
and code open next page without loading. can not activate .pageclose.. <div class="pageclose"> close </div>
exist on other pages. when put page, code pageclose can not function. why?
*note : im using code http://tutorialzine.com/2009/09/simple-ajax-website-jquery/
Comments
Post a Comment