控制器之间以及从内部到另一个控制器的Javascript通信 [英] Javascript communication between the controller and from inside it to another controller
问题描述
由于特定表格会返回但是这些订单仍在等待来自控制器的响应是jquery.ajax我不允许我展示我的新表格我们请指导我。
注意:当然我知道可以从控制器到成功jquery.ajax的朋友,我在我的控制器中调用这个命令功能。这种安全方法很薄弱,甚至客户端到服务器和服务器到客户端之间的一次又一次往返一次又一次地向服务器和客户端进行往返是很重要的。
我尝试了什么:
你好,谢谢。
------- -------------------------------------------------- -------
函数OkLoginClick(){
var urlAction =/ Login / LoginUser;
var user = {
名称:
(#Name)。val(),
通行证:
(#Pass)。val()
}
Since a specific form would return but such orders are still waiting for a response from the controller is jquery.ajax I do not allow me to show my new form we please guide me.
Note: Of course I know friends that can result from the controller to the success jquery.ajax and I invoke this command function in my controller. This method of security is weak and even additional roundtrip between the client-to-server and server-to-client again and again to the server and the client is a big deal.
What I have tried:
hello thank you.
----------------------------------------------------------------
function OkLoginClick() {
var urlAction = "/Login/LoginUser";
var user = {
Name:
("#Name").val(),
Pass:
("#Pass").val()
}
这篇关于控制器之间以及从内部到另一个控制器的Javascript通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!