AddThis 插件在模式下不起作用 window
AddThis plugin doesn't work in modal window
我的任务是创建模式 window,其中包含内容(关于游戏的一些详细信息),这些内容将在单击行时打开(在搜索页面上:1 行 - 1 个游戏)。我尝试从 aspx 页面获取的内容。因为这个页面是从附加了所有脚本的母版页继承的(当我打开这个模态时,所有脚本都被再次加载并且这破坏了页面布局)我只为这个模态 window 创建第二个母版页,其中只包含必要的文件, 脚本等
问题:一切都很好,除了一件事:在页面 Searcg.aspx 和模态 window 中,我使用 addThis plugin。在搜索页面上,一切都已初始化,但是当我打开模态时 - addThis 插件没有加载所需的图标等。
我如何使用插件:
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style">
<a class="addthis_button_facebook"></a>
<a class="addthis_button_email"></a>
<a class="addthis_button_twitter"></a>
<a class="addthis_button_print"></a>
<a class="addthis_button_compact"></a>
<script type="text/javascript">var addthis_config = { "data_track_clickback": true };</script>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=username"></script>
</div>
<!-- AddThis Button END -->
如果您在模式 window 中动态加载按钮,则需要调用 addthis.init() and/or addthis.toolbox() 来呈现div。以下是来自 AddThis 网站的更多信息:
http://support.addthis.com/customer/portal/articles/1293805-using-addthis-asynchronously
我的任务是创建模式 window,其中包含内容(关于游戏的一些详细信息),这些内容将在单击行时打开(在搜索页面上:1 行 - 1 个游戏)。我尝试从 aspx 页面获取的内容。因为这个页面是从附加了所有脚本的母版页继承的(当我打开这个模态时,所有脚本都被再次加载并且这破坏了页面布局)我只为这个模态 window 创建第二个母版页,其中只包含必要的文件, 脚本等
问题:一切都很好,除了一件事:在页面 Searcg.aspx 和模态 window 中,我使用 addThis plugin。在搜索页面上,一切都已初始化,但是当我打开模态时 - addThis 插件没有加载所需的图标等。
我如何使用插件:
<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style">
<a class="addthis_button_facebook"></a>
<a class="addthis_button_email"></a>
<a class="addthis_button_twitter"></a>
<a class="addthis_button_print"></a>
<a class="addthis_button_compact"></a>
<script type="text/javascript">var addthis_config = { "data_track_clickback": true };</script>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=username"></script>
</div>
<!-- AddThis Button END -->
如果您在模式 window 中动态加载按钮,则需要调用 addthis.init() and/or addthis.toolbox() 来呈现div。以下是来自 AddThis 网站的更多信息:
http://support.addthis.com/customer/portal/articles/1293805-using-addthis-asynchronously