简体   繁体   English

触发通过带骨架.js的codeigniter创建的提交事件

[英]Trigger submit event created with codeigniter with backbone.js

Am learning my first steps on backbone.js.. 正在学习我对ebone.js的第一步。

Building an app in codeigniter, submit button triggers the function in application controller to send the data to the database.. 在codeigniter中构建一个应用程序,提交按钮将触发应用程序控制器中的功能,以将数据发送到数据库。

<?php echo form_open('welcome/process_form','myform') . "\n"; ?>
<p><label for="value">Value: </label><?php echo form_input('value'); ?></p>
<p><label for="tags">Tags: </label><?php echo form_input('tags'); ?></p>
<?php echo form_submit('submit', 'Submit'); echo form_close();  ?>

As simple as that.. a simple codeigniter form and submit button.. 就这么简单..一个简单的codeigniter表单和提交按钮..

Now i want to include backbone.js in the scenario and want it to perform the action obviously reload.. 现在,我想在场景中包含lobb.js,并希望它执行显然要重新加载的操作。

What features of backbone do i look for and get started..?? 我要寻找并开始使用骨干网的哪些功能。

The documentation will probably be the best feature to look for... 该文档可能是寻找的最佳功能...

http://documentcloud.github.com/backbone/#Model http://documentcloud.github.com/backbone/#Model

Try to get a handle of what you need to do. 尝试掌握您需要做什么。 Check out some of the (many) examples. 查看一些(许多)示例。 Try to make something work then come back and ask a question about a specific problem you are having (if any). 尝试使某些事情正常工作,然后再回来询问有关您遇到的特定问题(如果有)的问题。

Your question here sounds as if you created a form in CI and now want to use backbone.js Perhaps someone here will write the app for you, but generally the process works best when it's a team effort. 这里的问题听起来好像是您在CI中创建了一个表单,现在想使用ribs.js。也许这里有人为您编写应用程序,但是通常在团队协作的情况下,该过程最有效。 ie try it yourself; 即自己尝试; if you get stuck come back for help with the problem. 如果遇到问题,请回来寻求帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM