Changeset 13090


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

Legend:

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

    r13083 r13090  
    359359} 
    360360 
    361 function test(){ 
     361function fnSendZipcode(){ 
    362362     
    363363    var zip01 = document.getElementsByName("order_zip01").item(0).value; 
    364364    var zip02 = document.getElementsByName("order_zip02").item(0).value; 
    365     sendRequest(back,'&zip01='+zip01+'&zip02='+zip02,'GET','../input_zip_json.php',true,true); 
    366 } 
    367 function back(val){; 
     365    var zipcode = zip01 + zip02;  
     366    if(zipcode.length >=7 ){ 
     367        sendRequest(fnReturnAddress,'&zip01='+zip01+'&zip02='+zip02,'GET','../input_zip_json.php',true,true); 
     368        } 
     369} 
     370 
     371function fnReturnAddress(val){; 
    368372    eval("var log ="  + val.responseText); 
    369373    //document.getElementsByName("order_pref").item(0).options[log.pref].selected = true; 
Note: See TracChangeset for help on using the changeset viewer.