js传叁时 url参数过长导致被截掉了.因为是get提交方式 代码如下: function showEmpDetailed(cmp,isAll,field,value){
var moreSQL = document.getElementById("moreSQL").value; var url ='DetailedAction.do?isAll='+isAll+'&org='+cmp+'&field='+field+'&moreSQL='+moreSQL; //alert(url) if( value > 0 ){ var width = 1000; var height = 600; var left; var top; left=(window.screen.availWidth-width)/2; top=(window.screen.availHeight-height)/2; window.open( url , null,'left='+left+',top='+(top-100)+',width='+width+',height='+height+'status=yes,toolbar=no,menubar=no,resizable=yes,location=no'); } }
------解决方案-------------------- If you wanted to use post to submit the request, you need to use the XMLHttpRequest (Ajax) or form element, for an example:
1. Use the Ajax to do the post:
jQuery.post("url", callback, {pars});
2. Use the form element do the post:
var form = document.createElement("form"); form.action = "url"; form.method = "post";
Here you can create some input elements to store the values, like the input box, check box and etc..