加载HTML文档显示这里是我的问题:脚本不是通过AJAX
我有一个剧本我nimbit店给我的,我安装了它在我的store.html,它的工作,我的问题是,当商店。 HTML通过ajax脚本加载 - 它没有显示。
请帮忙!在我身上轻松我不是专业的开发人员或程序员! 非常感谢。
这是脚本我nimbit店给我:
<script src="http://www.nimbitmusic.com/tags/javascript/artists/theit_boy.1/store/"></script>
我已经安装了它在我的store.html
[1]:http://theitboymusic.com/store.html和它的作品,但如果我装过我的[index.html] [1]上的存储按钮正在消失。
在此先感谢
<!-- ############ ajax content (This content will be loaded by ajax) ############ -->
<div id="ajax-content" class="page-container">
<!-- ############ container ############ -->
<div class="container clearfix">
<!-- ############ content header ############ -->
<header class="content-header">
<h1 class="content-title">STORE</h1>
<span class="sub-heading">Purchase The IT_Boy Music</span>
<hr class="content-line">
</header>
<!-- /content header -->
<script src="http://www.nimbitmusic.com/tags/javascript/artists/theit_boy.1/store/"></script>
我custom.js代码:
// Custom pages
// create a new instance of the plugin
var custom_page = new $.PageLoader($('.page-by-ajax'), {
container_class : 'custom-container',
top_offset : -settings.nav_height,
deeplinking : true,
debug : false,
load_from_hash : true,
load_start : function(){
// I get fired when the ajax is starting load content
// Show preloader
NProgress.start();
},
load_end : function(e){
// I get fired when the ajax is ending load content
// Init scripts
scripts(e);
// Hide preloader
NProgress.done();
},
close : function(){
// Scroll to portfolio filter
$.scrollTo('#custom-page', 400,{offset: {top:-settings.nav_height, left:0}});
}
});
})();
});
,并在我的index.html
<li>
<a href="store.html" class="page-by-ajax" data-ajax-options='{"target" :"#custom-page"}'>STORE</a
</li>
它不错,但您必须发布导致错误的原因或可能导致错误的原因。 – Jai
http://stackoverflow.com/questions/4619668/executing-script-inside-div-retrieved-by-ajax –
好吧,我们几乎在那里......你的脚本函数在哪里(在'load_end '回调)? – Brewal