Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CAUTION:Provisional headers are shown #67

Open
xiangwan opened this issue May 29, 2014 · 2 comments
Open

CAUTION:Provisional headers are shown #67

xiangwan opened this issue May 29, 2014 · 2 comments

Comments

@xiangwan
Copy link

sorry ,my English is not good.I try to explain what I mean
.
when

"form class='ajax ... '" contains "input type='hidden' ...." and in js file modify input vlaue
or

 $("#form_add").on("eldarion-ajax:modify-data", function ($el,data) {
        return data + "&bookId=" + currentBookId + "&chapterId=" + currentChapterId;
    });

Will cause the error

@xiangwan
Copy link
Author

the form look like this

  <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <form id="form_add" class="form-horizontal ajax" role="form" action="/book/add" method="POST">
                        <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                            <h4 class="modal-title" id="myModalLabel">添加</h4>
                        </div>
                        <div class="modal-body" id="div_form_text">
                            <div class="form-group">
                                <label for="txt_name" class="col-sm-2 control-label">名称:</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" id="txt_name" name="name">
                                </div>
                            </div>
                        </div>
                        <div class="modal-body" id="div_form_area" style="display: none;">
                            <div class="form-group">
                                <div class="col-sm-10">
                                    <textarea rows="10" cols="50"></textarea>
                                    <div>*每行输入一个单词,回车换行输入多个单词</div>
                                </div>
                            </div>
                        </div>
                        <div class="modal-footer"> 
                            <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                            <button type="submit" class="btn btn-primary">提交</button>
                        </div>
                    </form>
                </div>
            </div>
        </div> 

@stevenjlho
Copy link

Look at this article http://segmentfault.com/q/1010000000364871

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants