Changeset 13094


Ignore:
Timestamp:
2007/05/18 15:35:18 (15 years ago)
Author:
nakanishi
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/html/js/site.js

    r13090 r13094  
    363363    var zip01 = document.getElementsByName("order_zip01").item(0).value; 
    364364    var zip02 = document.getElementsByName("order_zip02").item(0).value; 
    365     var zipcode = zip01 + zip02;  
    366     if(zipcode.length >=7 ){ 
     365    if(zip01.length >= 3 && zip02.length >= 4){ 
     366        //input_zip_json.php¤Ë͹ÊØÈÖ¹æ¤òÁ÷¿®¤·¤ÆÌá¤Ã¤Æ¤­¤¿¥Ç¡¼¥¿¤òfnReturnAddress¤ËÅϤ¹ 
    367367        sendRequest(fnReturnAddress,'&zip01='+zip01+'&zip02='+zip02,'GET','../input_zip_json.php',true,true); 
    368368        } 
     
    371371function fnReturnAddress(val){; 
    372372    eval("var log ="  + val.responseText); 
    373     //document.getElementsByName("order_pref").item(0).options[log.pref].selected = true; 
    374373    document.getElementsByName("order_pref").item(0).value = log.pref; 
    375     alert(log.pref); 
    376374    document.getElementsByName("order_addr01").item(0).value =log.city + log.town; 
    377375} 
Note: See TracChangeset for help on using the changeset viewer.