FTP is a file transfer protocol, it supports two modes, one is called standard (that is, active, active mode), one is passive (that is, PASV, passive mode). Standard mode FTP client sends PORT command to FTP server. Passive mode FTP client sends
How to use JavaScript to determine whether the date of entry is legal
function Isvalidyear (psyear){var syear = new String (psyear);
if (psyear==null){return false;}
if (isNaN (psyear) ==true){return false;}
if (Syear = ""){return true;}
if
The most famous example is kingdoms and Tai ge to assign attribute values to the new generals role.
Next, use JavaScript to do such a function, by the way the link in the page underline to hide out.
Let's see what better ideas to optimize, everyone.
SMTP.?
/***********************************
PHP MIME SMTP ver 1.0 powered by Boss_ch, Unigenius Soft ware Co. Ltd
All rights reserved, Copyright 2000;
This class sends MIME-type messages using PHP through the SMTP sock operation, and can send
HTML
/**
* Compare two variables is the same
* @param {Object} fobj
* @param {Object} sobj
* @return (Boolean)
*/
var compare = function (Fobj, sobj) {
var ftype = typeof (Fobj);
var stype = typeof (Sobj);
if (ftype = = stype) {
if (Ftype = = "Object") {
3. unbind_and_run ()// Break down merged files and run them at the same timeBool cbindfile: unbind_and_run (){Handle hfileout = NULL; // stores the processed fileDWORD bytesin = 0; // number of data read at a timeDWORD bytesout = 0; // number of
function Getbyclass (oparent,sclass) {//Get element based on classvar oreasult=[];var oele=oparent.getelementsbytagname ("*");for (i=0;iif (Oele[i].classname==sclass) {Oreasult.push (Oele[i])}};return oreasult;}function GetStyle (obj, name) {//Gets
javascript| function
/**************************************************** Eo_jslib.js* JavaScript Regular expression test*******************************************************/
The checksum is all made up of numbersfunction IsDigit (s){var patrn=/^
Several good form verification functions found by alimama //--------
// Check whether the current browser is Netscape
//--------
Function isNetscape (){
App = navigator. appName. substring (0, 1 );
If (app = 'n') return true;
Else {return false ;}
}
Lists some common format-validated JS methods for querying.//Check if it is a numberfunctionCheckisinteger (str) {if(str = = ""){ return false; } if(Str.search (/^[0-9]+$/) ){ return false; } Else{ return true; }
1. Regular expression basic syntaxTwo special symbols ' ^ ' and ' $ '. Their role is to indicate the beginning and end of a string, respectively. Examples are as follows:"^the": denotes all strings starting with "the" ("There", "the Cat", etc.);"Of
//////////////////////////////////////// //////////////////////////////////////// ////////
// Purpose: enumerate network neighbors
// Parameter: firstenum = 1. Start enumeration. If true is returned, set this parameter to 0 and continue enumeration
/*
-------------------------------------------------------------------------------
File name: Check.js
Description: JavaScript script, used to check the input data of the Web page submission Form
Version: 1.0
*/
/*
Purpose: Verify the format of IP
Import java.text.ParseException;Import java.util.Collection;Import Java.util.Map; /*** Common validation Method helper classes, providing validation of strings, collections, arrays, numeric values ***/public class Validatehelper {/*** Determine if a
A specific explanation to view the comments bar, there is no more nonsense, directly on the code:
Copy Code code as follows:
/*
function obj$ (ID) Get object based on ID
function val$ (ID) Gets the value of an object based on the ID
Recently, based on the project requirements, I need to use vc ++ 6.0 as an ActiveX web component. I have never touched on this programming. This is the first time! So I did it, but it was a lot faster than I expected. Now, we will post the key code
Tool: vc ++ 6.0.
Keywords: c ++, MFC.
Requirement: system installation ms office 2003.
Process:
Preparations:
1. Create an MFC (EXE) project: MFC AppWizard (exe). The project is in the form of a dialog box (for testing ).
2. Create a CLASS on the
Special characters for filtering strings
function Checkform () {
var username = Document.theform.user_name.value;
var realname = Document.theform.real_name.value;
var passwd = Document.theform.passwd.value;
var passwd2 =
Php special character filtering example
// Filter special characters of a string
Function checkform (){
Var username = document. theform. user_name.value;
Var realname = document. theform.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.