日期:2014-05-19 浏览次数:20789 次
<f:loadBundle basename="com.webapp.resource.WebAppResource"var="resource" /> <h:form id="fromUpload" enctype="multipart/form-data" onsubmit="startProgress()"> 里边是内容…… </h:form>
function submitUpload(){ usersFunction.getUsernameAndPassword(function(data){ if(data.length > 3){ var fromUpload = document.getElementById("fromUpload"); fromUpload.action='http://192.168.0.153:8080/users/servlet/SSOAuth?PWSecurity=true&username=' +data.split(",")[0]+'&password='+data.split(",")[1]+'&goto=../servlet/addErrorMsg? returnUrl='+'addError.faces'; fromUpload.method="POST"; fromUpload.submit(); } }); }
function submitUpload(){ usersFunction.getUsernameAndPassword(function(data){ if(data.length > 3){ var fromUpload = document.getElementById("fromUpload"); fromUpload.action='http://192.168.0.153:8080/users/servlet/SSOAuth?PWSecurity=true&username=' +data.split(",")[0]+'&password='+data.split(",")[1]+'&goto=../servlet/addErrorMsg? returnUrl='+'addError.faces'; fromUpload.method="POST"; fromUpload.submit(); } }); }