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):


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



All of this code works fine outside of the modal. Does anyone know a way to run the script inside the modal. Thanks [1]:

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

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

评论 抢沙发

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

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