AjaxÌØЧ ¸ù¾ÝÓÊÕþ±àÂë»ñÈ¡µØÇøÐÅÏ¢ Ö®Èý
Óû§²Ù×÷½çÃæpostalcode.html
Ò³ÃæÖаüº¬3¸öÎı¾¿ò£¬·Ö±ð±íʾÓÊÕþ±àÂë¡¢µØÇøºÍ³ÇÊÐÐÅÏ¢¡£µ±Óû§ÊäÈëÓÊÕþ±àÂëºó£¬ÏµÍ³½«×Ô¶¯´Ó·þÎñÆ÷¶ÁÈ¡µØÇøºÍ³ÇÊÐÐÅÏ¢£¬Ìî³äµ½¶ÔÓ¦Îı¾¿òÖС£ÏêϸµÄº¯Êý˵Ã÷Çë²Î¿¼´úÂëÖеÄ×¢ÊÍ¡£
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<head>
<title>¸ù¾ÝÓÊÕþ±àÂë»ñÈ¡Ê¡ÊÐÐÅÏ¢</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<script type="text/javascript">
var xmlHttp; //ÓÃÓÚ±£´æXMLHttpRequest¶ÔÏóµÄÈ«¾Ö±äÁ¿
//ÓÃÓÚ´´½¨XMLHttpRequest¶ÔÏó
function createXmlHttp() {
//¸ù¾Ýwindow.XMLHttpRequest¶ÔÏóÊÇ·ñ´æÔÚʹÓò»Í¬µÄ´´½¨·½Ê½
if (window.XMLHttpRequest) {
xmlHttp = new XMLHttpRequest(); //FireFox¡¢OperaµÈä¯ÀÀÆ÷Ö§³ÖµÄ´´½¨·½Ê½
} else {
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); //IEä¯ÀÀÆ÷Ö§³ÖµÄ´´½¨·½Ê½
}
}
//½öÔÊÐíÊäÈëÊý×Ö
function checkNumber() {
//ÅжÏÊäÈë×Ö·ûµÄkeyCode£¬Êý×ÖÔÚ48~57Ö®¼ä£¬³¬³ö²¿·Ö·µ»Øfalse
if ((event.keyCode >= 48) && (event.keyCode <= 57)) {
event.returnValue = true;
} else {
event.returnValue = false;
}
}
//»ñÈ¡µØÇøÐÅÏ¢µÄµ÷Óú¯Êý
function getPostalCode() {
var pCodeValue = document.getElementById("postalCode").value; //»ñÈ¡ÊäÈëµÄÓÊÕþ±àÂë
//µ±ÊäÈëµÄÓʱ೤¶È¸ÕºÃµÈÓÚ6ʱ£¬ÀûÓÃXmlHttpRequest¶ÔÏóÏò·þÎñÆ÷·¢³öÒì²½ÇëÇó
if (pCodeValue.length
Ïà¹ØÎĵµ£º
ǰ̨´úÂ룺
<head runat="server">
<title>ÎÞ±êÌâÒ³</title>
<script src="Ajax.js" type="text/javascript"></script>
</head>
<body>
<form id="form1" runat="server">
<div&g ......
http://drupal.org/project/ajax_comments
AJAX Comments
View
CVS instructions
Modules · Content display
neochief - December 18, 2008 - 12:44
One of the most wanted Drupal modules :)
Module is now depends on Comments bonus API!
Features in 6.x:
Provides ajax comments to drupal sites. Feature ......
Ajax
Ò».×ÊÔ´ÀàÍøÕ¾
1,¹úÄÚÍøÕ¾
1)AjaxÖйú(ÍƼö)
Ò»¸öרҵµÄajax¼¼ÊõÍøÕ¾,·ÖÀàÇåÎú,ÓдóÁ¿µÄµç×Ó°æ½Ì³Ì,ÒÔ¼°AJAXÔ´ÂëÏÂÔØ!
www.okajax.com
2)ajaxcn.org
ÀîçûÀÏʦµÄblog¡£Àîçû:¡¶ajaxʵս¡·ÒëÕß.
www.ajaxcn.org
-----------------------------------------
2,¹úÍâÍøÕ¾
1)¡¢AjaxµÄµ®Éú
Ajax:ANewApproachtoWeb ......
Figure A MaskedEdit À©Õ¹Æ÷ÊôÐÔ
ÊôÐÔ
ĬÈÏÖµ
˵Ã÷
AcceptAMPM
False
Ò»¸ö²¼¶ûÊôÐÔ£¬ÓÃÓÚָʾÊÇ·ñӦʹÓà AM/PM ·ûºÅ¡£
AcceptNegative
None
ָʾÊÇ·ñÔÊÐíʹÓøººÅ (-)¡£À´×Ô MaskedEditShowSymbol ö¾ÙµÄ¿ÉÓÃÖµ°üÀ¨£ºNone¡¢Left ºÍ Right¡£
AutoComplete
True
Ò»¸ö²¼¶ûÊôÐÔ£¬ÓÃÓÚÖ¸Ê ......
ÔںܶàϵͳÖУ¬ÐèÒªÓû§Ìîд¸öÈË×ÊÁÏ£¬ÆäÖаüº¬µØÇø¡¢³ÇÊС¢ÓÊÕþ±àÂëµÈÐÅÏ¢¡£¶øÓÊÕþ±àÂë±¾Éí°üº¬Á˵ØÇøºÍ³ÇÊÐÐÅÏ¢£¬ËùÒÔ¿ÉÒÔÀûÓô˹æÔò¼ò»¯²Ù×÷¡£Óû§Ö»ÐèÒªÊäÈëÓÊÕþ±àÂ룬ϵͳ¸ù¾ÝÓÊÕþ±àÂë×Ô¶¯È¡µÃµØÇøÐÅÏ¢¡£ÕâÑù×öʹµÃÓû§¿ÉÒÔ»ñµÃ¸üºÃµÄʹÓÃÌåÑ飬Ҳ¿ÉÒÔ¼õÉÙ´íÎóµÄ·¢Éú¡£
ҪʵÏÖ×Ô¶¯»ñÈ¡µØÇøÐÅÏ¢£¬Ö÷Òª¿¼ÂÇ3¸öÎÊÌ ......