Changeset 10449 for temp/trunk/html/test


Ignore:
Timestamp:
2006/12/08 11:40:46 (20 years ago)
Author:
uehara
Message:
 
Location:
temp/trunk/html/test/uehara/captcha/ajax_captcha
Files:
2 edited

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¤ò¿¶¤êʬ¤±¤ë  
    162function getXmlHttpRequestObject() { 
    173 if (window.XMLHttpRequest) { 
    18     return new XMLHttpRequest(); //Mozilla, Safari ... 
     4    // Mozilla, Safari¤Ê¤É 
     5    return new XMLHttpRequest(); 
    196 } else if (window.ActiveXObject) { 
    20     return new ActiveXObject("Microsoft.XMLHTTP"); //IE 
     7    // IE 
     8    return new ActiveXObject("Microsoft.XMLHTTP"); 
    219 } else { 
    22     //Display our error message 
    23     alert("Your browser doesn't support the XmlHttpRequest object."); 
     10    // ÈóÂбþ 
     11    alert("¥Ö¥é¥¦¥¶¤¬XmlHttpRequest¤ËÂбþ¤·¤Æ¤¤¤Þ¤»¤ó¡ª¡ª"); 
    2412 } 
    2513} 
    2614 
    27 //Our XmlHttpRequest object 
     15// ¥ª¥Ö¥¸¥§¥¯¥ÈÀ¸À® 
    2816var receiveReq = getXmlHttpRequestObject(); 
    2917 
  • temp/trunk/html/test/uehara/captcha/ajax_captcha/captcha_test.htm

    r10447 r10449  
    11<!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 this  
    7     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 of 
    10     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
    11      
    12     For the rest of the code visit http://www.WebCheatSheet.com 
    13      
    14     Copyright 2006 WebCheatsheet.com     
    15 --> 
    16  
    172<html> 
    183    <head> 
Note: See TracChangeset for help on using the changeset viewer.