Running Javascript inside a simplemodal window

I'm trying to add scripts to a modal ([simplemodal][1]) jquery plugin but they won't run, is this functionality simply not available when running in the modal or am I missing something. Here's how I'm calling simplemodal: $('#modal').modal({ onClose: function (dialog) { $App.setLocation('#/'); $.modal.close(); } }); and here's the html of the modal, which includes the addthis script (i've taken out the real username for posting here):

{{header}}

Posted in {{feed_source}}, {{date}}

{{{body}}}

Comments:

All of this code works fine outside of the modal. Does anyone know a way to run the script inside the modal. Thanks [1]: http://www.ericmmartin.com/projects/simplemodal/

以上就是Running Javascript inside a simplemodal window的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏