<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    "http://www.w3.org/TR/html4/strict.dtd";
    >
<html lang="en">
<head>
    <title>Zip-Codes</title>
    <script type="text/javascript" src="index_files/jquery.js"></script>
</head>
<body>
        <table class="twoColumns" cellpadding="0" cellspacing="0">
                <tbody>

              <tr>
                <td class="leftColumn">
                  <table class="formTable" cellpadding="0" cellspacing="0">
                    <tbody>
                      <tr>
                        <th colspan="2">Permanent Home Contact Information</th>
                      </tr>
                      <tr>
                        <td class="label-col"><label for="ZIP"><span>*</span>ZIP
Code:</label></td>
                      </tr>
                        <td colspan="2">
<input onblur="validateZIP($(this).val())" name="ZIP" 
id="ZIP" size="5" value="" type="text">
                          </td>
                      </tr>
                    </tbody>
                  </table>

                </td>
                <td class="rightColumn">

                        <div id="ajax" style="">kkkkkkkkkk</div>


        
</body>

    <script type="text/javascript">

        function validateZIP(ZIPCode)
        {
            $.ajax({
                        type: "GET",
                        url:

"https://maps.google.com/maps/api/geocode/xml?address=";
          +ZIPCode+"-0001&sensor=false",
                        dataType:  'xml' ,

                        success: function(data) {
                            $('#ajax').html(data);
                           // console.log(data);
                           // alert('Load was performed.');
                        }
                    });
        }
        
        function showZIPPanel(data){
            var xml;
            $('#ajax').html(data);
        }
        
    </script>

</html>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to