javascript - Getting jquery.js Error: No such template '_resetPasswordDialog' error when I try to use bootstrap modal in my meteor app -
i'm trying load content of internal url bootstrap modal when user clicks button. however, when click button error mentioned on title of question.
here code :
<template name="flowchart"> <div class='container-fluid'> {{#if currentuser}} <div class="row-fluid"> <div class="span8"> <h3>flowchart editor</h3> <div id="flowchart"> <a href="#mymodal" role="button" class="btn" data-toggle="modal" data-remote="http://localhost:3000/">launch demo modal</a> <!-- <button type="button" class="btn" data-toggle="modal" data-target="#mymodal" data-remote="http://localhost:3000/">launch modal</button> --> </div> </div> <div class="span4"> </div> <button type="button" class="btn" data-toggle="modal" data-target="#mymodal" data-remote="http://example.com">launch modal</button> <div id="mymodal" class="modal hide fade"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true"> × </button> <h3 id="mymodallabel">modal header</h3> </div> <div class="modal-body"> <!-- remote content inserted here via jquery load() --> </div> <div class="modal-footer"> </div> </div> </div> {{else}} <div class="row-fluid" style="text-align:center;margin-top: 80px;"> <h3>the flowchart available logged in users.</h3> <p class="lead">if want try out flowchart, can use demo account:</p> <p class="lead">user: demo, password: demo</p> </div> {{/if}} </div> </template>
as result, i'm unable show content of internal url, should in order fix problem?
edit
when remove data-remote
attribute button, works fine not want it. way, i'm using bootstrap 2.3.2 , jquery 1.8.2
Comments
Post a Comment