Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/87.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 获取jquery.js错误:没有这样的模板'_重置密码对话框';尝试在meteor应用程序中使用引导模式时出错_Javascript_Jquery_Twitter Bootstrap_Meteor - Fatal编程技术网

Javascript 获取jquery.js错误:没有这样的模板'_重置密码对话框';尝试在meteor应用程序中使用引导模式时出错

Javascript 获取jquery.js错误:没有这样的模板'_重置密码对话框';尝试在meteor应用程序中使用引导模式时出错,javascript,jquery,twitter-bootstrap,meteor,Javascript,Jquery,Twitter Bootstrap,Meteor,我试图在用户单击按钮时将内部url的内容加载到引导模式中。然而,当我点击按钮时,我得到了问题标题上提到的错误 这是我的密码: <template name="flowchart"> <div class='container-fluid'> {{#if currentUser}} <div class="row-fluid"> <div class="span8">

我试图在用户单击按钮时将内部url的内容加载到引导模式中。然而,当我点击按钮时,我得到了问题标题上提到的错误

这是我的密码:

<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 will be 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 is only available to logged in users.</h3>
            <p class="lead">If you just want to try out the flowchart, you can use the Demo Account:</p>
            <p class="lead">User: demo, Password: demo</p>
        </div>
        {{/if}}
    </div>

</template>

{{{#如果当前用户}}
流程图编辑器
发射模态
× 
模态头
{{else}
流程图仅对已登录的用户可用。

如果您只想试用流程图,可以使用演示帐户:

用户:演示,密码:演示

{{/if}
因此,我无法显示内部url的内容,我应该如何解决此问题

编辑


当我从按钮中删除
data remote
属性时,一切正常,但这不是我想要做的。顺便说一句,我使用的是bootstrap 2.3.2和jquery 1.8.2

您能在JSFIDLE上复制相同的版本吗,@dreamweiver我恐怕不行,因为我认为modal不允许交叉请求。我如何在JSFIDLE中给出一个内部uri?那么你能给出js代码吗?因此,我们可以看到您是如何插入它的。也许像这样的东西会在js部分@Sindis中派上用场,与模态无关。我所要做的就是为modal在jsfiddle上复制相同的内容,@dreamweiver我恐怕不是,因为我认为modal不允许交叉请求。我如何在JSFIDLE中给出一个内部uri?那么你能给出js代码吗?因此,我们可以看到您是如何插入它的。也许像这样的东西会在js部分@Sindis中派上用场,与模态无关。我所做的就是为了这个