Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/84.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
使用jquery调用服务器函数并返回结果_Jquery_Asp.net Mvc 2_Treeview - Fatal编程技术网

使用jquery调用服务器函数并返回结果

使用jquery调用服务器函数并返回结果,jquery,asp.net-mvc-2,treeview,Jquery,Asp.net Mvc 2,Treeview,我已经创建了一个treeview,它具有向上/向下移动节点的功能。在jquery中调用向上/向下移动的函数。jQuery代码是 $("#move_up").live("click", function(e) { var rqdInstnId = GetRequiredId(); $.post("/Instruction/MoveInstruction", { docId: DocId, instnId: rqdInstnId, action: "

我已经创建了一个treeview,它具有向上/向下移动节点的功能。在jquery中调用向上/向下移动的函数。jQuery代码是

 $("#move_up").live("click", function(e) {
            var rqdInstnId = GetRequiredId();
            $.post("/Instruction/MoveInstruction", { docId: DocId, instnId: rqdInstnId, action: "MoveUp" });
        });
我需要在执行函数后反映树视图中的更改。现在treeview被加载到一个div中。这可以通过使用iframe实现吗?请向我澄清这一点。

使用类似于:

$(this).insertBefore($(this).prev());