»
Tiếng AnhTiếng PhápTiếng Việt

In - Trình tải - JavaScriptBank.com

Phiên bản đầy đủ: jsB@nk » Ứng dụng » Công cụ xuất » Trình tải
URL: https://www.javascriptbank.com/validation-creator-script-index.html

Trình tải © JavaScriptBank.comTrình tải và xem thử các tập tin trên một client hay host.

Phiên bản đầy đủ: jsB@nk » Ứng dụng » Công cụ xuất » Trình tải
URL: https://www.javascriptbank.com/validation-creator-script-index.html



CSS
<LINK href="validation.css" type=text/css rel=stylesheet><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


JavaScript
<SCRIPT language=javascript><!--var iframeLoaded = false;function loadForm(){document.all.iframe.src = document.forms[0].file.value;iframeLoaded = true;}function showValidation(){var strOutput = document.forms[0].validationParam.value;window.showModalDialog("validationResult.htm","Dialog Arguments Value","dialogHeight: 200px; dialogWidth: 600px; edge: Raised; center: Yes; help: Yes; resizable: Yes; status: No;");}//--></SCRIPT><SCRIPT language=JScript event=onload for=iframe>if (iframeLoaded) init();</SCRIPT><SCRIPT language=JScript src="validationCreator.js" type=text/JScript></SCRIPT><SCRIPT language=JScript src="validationLibrary.js" type=text/JScript></SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<BODY onload=initBeforeLoaded();><FORM class=form style="BORDER-RIGHT: 1px; BORDER-TOP: 1px; DISPLAY: inline; BORDER-LEFT: 1px; BORDER-BOTTOM: 1px" onsubmit="return submitValidation();" action="" method=post><TABLE cellSpacing=0 cellPadding=1 width="100%" bgColor=#ababc3 border=0>  <TBODY>  <TR>    <TD class=tableContentBold bgColor=#ababc3 colSpan=2><INPUT       class=tableContentControl type=file size=40 name=file><INPUT class=tableContentButton onclick=loadForm(); type=button value="LOAD FORM" name=Load>       Validation Creator</TD></TR>  <TR vAlign=top>    <TD><IFRAME style="WIDTH: 550px; HEIGHT: 500px" name=iframe frameSpacing=0       src="about:blank" height="100%"></IFRAME></TD>    <TD vAlign=bottom>      <TABLE borderColor=red height=500 cellSpacing=0 cellPadding=0 width=300       border=0>        <TBODY>        <TR vAlign=top>          <TD style="HEIGHT: 100%" align=right height="100%"><INPUT class=tableContentButton onclick=previous(); type=button value="<< PREVIOUS" name=Previous><INPUT class=tableContentButton onclick=next(); type=button value="NEXT >>" name=Next>             <FIELDSET class=tableContentBold style="HEIGHT: 100px"><LEGEND>Field Information</LEGEND>            <TABLE height="100%" cellSpacing=0 cellPadding=0 width="100%"             border=0>              <TBODY>              <TR vAlign=top>                <TD align=right colSpan=2></TD></TR>              <TR style="HEIGHT: 100%" vAlign=top>                <TD style="HEIGHT: 100%" colSpan=2 height="100%"><SPAN                   class=tableContentBold id=elNumber></SPAN><BR><SPAN                   class=tableContentBold id=elError></SPAN></TD></TR>              <TR>                <TD class=tableContent noWrap height=10>Field Type:</TD>                <TD align=right width="100%"><SPAN class=tableContentBold                   id=elType></SPAN></TD></TR>              <TR>                <TD class=tableContent noWrap>Field Name:</TD>                <TD align=right><SPAN class=tableContentBold                 id=elName></SPAN></TD></TR></TBODY></TABLE></FIELDSET></TD></TR>        <TR>          <TD align=right>            <FIELDSET class=tableContentBold><LEGEND>Field Validation Settings</LEGEND>            <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>              <TBODY>              <TR>                <TD class=tableContent colSpan=2>Error Display Name:</TD></TR>              <TR>                <TD colSpan=2>                <INPUT class=tableContentControl                   style="WIDTH: 100%" maxLength=100 name=description size="20"></TD></TR>              <TR>                <TD class=tableContent>Required:</TD>                <TD align=right width=60>                <INPUT class=tableContentControl                   type=checkbox name=chkRequired value="ON"><INPUT type=hidden value=exists                   name=chkRequired_webrHidden></TD></TR>              <TR>                <TD class=tableContent>Data Type Required:</TD>                <TD align=right><SELECT class=tableContentControl                   style="WIDTH: 100%" size=1 name=dataType> <OPTION value=0                     selected>Text</OPTION><OPTION value=1>Number</OPTION><OPTION                     value=2>Date</OPTION><OPTION value=3>Email</OPTION><OPTION                     value=4>Currency</OPTION></SELECT></TD></TR>              <TR>                <TD class=tableContent>Minimum Selection Required:</TD>                <TD align=right><SELECT class=tableContentControl                   style="WIDTH: 100%" size=1 name=minNumber></SELECT></TD></TR>              <TR>                <TD class=tableContent>Maximum Selection Required:</TD>                <TD align=right><SELECT class=tableContentControl                   style="WIDTH: 100%" size=1               name=maxNumber></SELECT></TD></TR></TBODY></TABLE></FIELDSET><INPUT class=tableContentButton disabled onclick=removeRule(); type=button value=CLEAR name=Remove><INPUT class=tableContentButton onclick=addRule(); type=button value=APPLY name=Assign></TD></TR>        <TR>          <TD class=tableContent style="HEIGHT: 100%" height="100%">            <FIELDSET class=tableContentBold><LEGEND>Form Validation Summary</LEGEND><SELECT class=tableContentControl             style="WIDTH: 100%" onchange="slctChanged = true;showElByRule();"             size=16       name=validationParam></SELECT></FIELDSET></TD></TR></TBODY></TABLE><INPUT       type=hidden value="function validateForm() { return true;}"       name=validationArrays></TD></TR>  <TR vAlign=top bgColor=#ababc3>    <TD class=tableContent align=middle><INPUT class=tableContentButton disabled onclick="createFormValidation(0, true);" type=button value="PREVIEW VALIDATION" name=btnTest><INPUT class=tableContentButton style="DISPLAY: none" onclick="createFormValidation(0, true);" type=button value="TEST FORM SUBMIT" name=TestSubmit></TD>    <TD class=tableContent align=middle><INPUT class=tableContentButton onclick=document.location=document.location; type=reset value="RESET CHANGES" name=Reset><INPUT class=tableContentButton onclick="showValidation(); return false;" type=submit value="SUBMIT CHANGES" name=Submit></TD></TR></TBODY></TABLE></FORM></BODY><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


Files
http://javascriptbank.com/javascript/utility/Validation_Creator_script/validation.csshttp://javascriptbank.com/javascript/utility/Validation_Creator_script/validationCreator.jshttp://javascriptbank.com/javascript/utility/Validation_Creator_script/validationLibrary.js