| | |
| | | <!--begin--> |
| | | <script type="text/javascript"> |
| | | $(function () { |
| | | |
| | | var url = window.location.href; |
| | | var j = ""; |
| | | if (url.indexOf('?') >= 0) { |
| | | j = url.substring(url.indexOf('?')); |
| | | } |
| | | |
| | | var tempPathName = window.location.pathname; |
| | | var tempContext = tempPathName.substring(1, tempPathName.length); |
| | | var TruePath = tempContext.replace("Pages/", "../"); |
| | | var TruePath = tempContext.replace("Pages/", "../") + j; |
| | | $.ajax({ |
| | | url: "/Pages/common/CommonAjax.aspx", |
| | | type: "POST", |
| | |
| | | }); |
| | | </script> |
| | | <script type="text/javascript"> |
| | | $(function () { |
| | | // menu_member_case_id="case_" menu_member_case_name="" |
| | | var tempPathName = window.location.pathname; |
| | | var tempContext = tempPathName.substring(1, tempPathName.length); |
| | | var TruePath = tempContext.replace("Pages/", "../").replace("pages/", "../"); |
| | | var attrs = ""; |
| | | var texts = ""; |
| | | $("*[menu_member_case_id^='case_']").each(function (ii, vv) { |
| | | attrs += ("," + $(vv).attr("menu_member_case_id")); |
| | | texts += ("," + $(vv).attr("menu_member_case_name")); |
| | | }); |
| | | $.ajax({ |
| | | url: "/Pages/common/CommonAjax.aspx", |
| | | type: "POST", |
| | | dataType: "html", |
| | | data: { dateType: "creat_menu_case", menupath: TruePath, attrs: attrs, texts: texts }, |
| | | global: false, |
| | | cache: false, |
| | | success: function (data) { |
| | | //$(function () { |
| | | // // menu_member_case_id="case_" menu_member_case_name="" |
| | | |
| | | // var tempPathName = window.location.pathname; |
| | | // var tempContext = tempPathName.substring(1, tempPathName.length); |
| | | // var TruePath = tempContext.replace("Pages/", "../").replace("pages/", "../"); |
| | | // var attrs = ""; |
| | | // var texts = ""; |
| | | // $("*[menu_member_case_id^='case_']").each(function (ii, vv) { |
| | | // attrs += ("," + $(vv).attr("menu_member_case_id")); |
| | | // texts += ("," + $(vv).attr("menu_member_case_name")); |
| | | // }); |
| | | // $.ajax({ |
| | | // url: "/Pages/common/CommonAjax.aspx", |
| | | // type: "POST", |
| | | // dataType: "html", |
| | | // data: { dateType: "creat_menu_case", menupath: TruePath, attrs: attrs, texts: texts }, |
| | | // global: false, |
| | | // cache: false, |
| | | // success: function (data) { |
| | | |
| | | } |
| | | }); |
| | | }); |
| | | // } |
| | | // }); |
| | | //}); |
| | | </script> |