日期:2014-05-16 浏览次数:20640 次
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1- transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>XXXX注册</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="Robots" content="all" /> </head> <body> <html-el:text property="entp_code" size="13" maxlength="13" styleClass="input" styleId="entp_code"/> <span class="red" id="s_after">*</span> <span id="loading" style="display:none;" mce_style="display:none;"><img src="images/loading.gif" style="vertical-align:middle; margin: 2px;" mce_style="vertical-align:middle; margin: 2px;" />正在处理...</span> <mce:script type="text/javascript" src="${ctx}/commons/scripts/jquery.js" mce_src="${ctx}/commons/scripts/jquery.js"></mce:script> <mce:script type="text/javascript" src="${ctx}/commons/scripts/validator.js" mce_src="${ctx}/commons/scripts/validator.js"></mce:script> <mce:script type="text/javascript"><!-- $("#entp_code").blur(function() { if(this.value.length > 0){ $("#loading").ajaxStart(function(){$("#submit").attr("disabled", "true");$(this).show();}); $("#loading").ajaxStop (function(){$(this).hide();}); $("#tip").remove(); $.ajax({ type: "POST", url: "registerEntp.do", data: "method=getLoginCode&entp_code=" + this.value, dataType: "json", error: function(request, settings) {alert("数据加载请求失败!"); }, success: function(isExist) { if(isExist == 1) { $("#s_after").after('<span id="tip" style="color:#FF0000;" mce_style="color:#FF0000;"><img src="images/reg_error.gif" /> 对不起,该企业代码已经存在!<\/span>'); $("#submit").attr("disabled", "true"); return; } else if(isExist == 0){ $("#s_after").after('<span id="tip" style="color:#5A8E4A;" mce_style="color:#5A8E4A;"><img src="images/reg_success.gif" /> 恭喜,该企业代码可以使用。<\/span>'); $("#submit").attr("disabled", ""); } } }); } else { $("#tip").remove(); } }); // --></mce:script> </body> </html>