Changeset 10449 for temp/trunk/html/test
- Timestamp:
- 2006/12/08 11:40:46 (20 years ago)
- Location:
- temp/trunk/html/test/uehara/captcha/ajax_captcha
- Files:
-
- 2 edited
-
ajax_captcha.js (modified) (1 diff)
-
captcha_test.htm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/test/uehara/captcha/ajax_captcha/ajax_captcha.js
r10447 r10449 1 /* 2 This is the JavaScript file for the How to Create CAPTCHA Protection using PHP and AJAX Tutorial 3 4 You may use this code in your own projects as long as this 5 copyright is left in place. All code is provided AS-IS. 6 This code is distributed in the hope that it will be useful, 7 but WITHOUT ANY WARRANTY; without even the implied warranty of 8 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 10 For the rest of the code visit http://www.WebCheatSheet.com 11 12 Copyright 2006 WebCheatSheet.com 13 14 */ 15 //Gets the browser specific XmlHttpRequest Object 1 // ¥Ö¥é¥¦¥¶¤Ë¤è¤Ã¤ÆXmlHttpRequest¤ÎObject¤ò¿¶¤êʬ¤±¤ë 16 2 function getXmlHttpRequestObject() { 17 3 if (window.XMLHttpRequest) { 18 return new XMLHttpRequest(); //Mozilla, Safari ... 4 // Mozilla, Safari¤Ê¤É 5 return new XMLHttpRequest(); 19 6 } else if (window.ActiveXObject) { 20 return new ActiveXObject("Microsoft.XMLHTTP"); //IE 7 // IE 8 return new ActiveXObject("Microsoft.XMLHTTP"); 21 9 } else { 22 // Display our error message23 alert(" Your browser doesn't support the XmlHttpRequest object.");10 // ÈóÂбþ 11 alert("¥Ö¥é¥¦¥¶¤¬XmlHttpRequest¤ËÂбþ¤·¤Æ¤¤¤Þ¤»¤ó¡ª¡ª"); 24 12 } 25 13 } 26 14 27 // Our XmlHttpRequest object15 // ¥ª¥Ö¥¸¥§¥¯¥ÈÀ¸À® 28 16 var receiveReq = getXmlHttpRequestObject(); 29 17 -
temp/trunk/html/test/uehara/captcha/ajax_captcha/captcha_test.htm
r10447 r10449 1 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 3 <!--4 This is the HTML front-end of the How to Create CAPTCHA Protection using PHP and AJAX Tutorial.5 6 You may use this code in your own projects as long as this7 copyright is left in place. All code is provided AS-IS.8 This code is distributed in the hope that it will be useful,9 but WITHOUT ANY WARRANTY; without even the implied warranty of10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.11 12 For the rest of the code visit http://www.WebCheatSheet.com13 14 Copyright 2006 WebCheatsheet.com15 -->16 17 2 <html> 18 3 <head>
Note: See TracChangeset
for help on using the changeset viewer.
