{"id":132594066,"date":"2012-05-22T10:55:12","date_gmt":"2012-05-22T10:55:12","guid":{"rendered":"http:\/\/joshdance.me\/smart-use-of-jquery-and-an-api-to-autofill-fr"},"modified":"2012-05-22T10:55:12","modified_gmt":"2012-05-22T10:55:12","slug":"smart-use-of-jquery-and-an-api-to-autofill-fr","status":"publish","type":"post","link":"http:\/\/joshdance.me\/blog\/smart-use-of-jquery-and-an-api-to-autofill-fr\/","title":{"rendered":"Smart use of jQuery and an API to autofill from ZIP code."},"content":{"rendered":"<p>I hate entering things twice. \u00a0When I get a form mostly filled out, and something happens to cause me to lose the data, oohh. \u00a0I hate that. \u00a0 <\/p>\n<p \/>\n<div>So entering the city and state on every form is bad too. \u00a0If you have a correct zip code, you know the city. \u00a0Then I found this <a href=\"http:\/\/css-tricks.com\/using-ziptastic\/\">nifty tutorial to auto fill the city from the zip code<\/a>. Check it out. \u00a0Smooth.<\/div>\n<p \/>\n<div>I decided to look into zip codes a little more.\u00a0<\/div>\n<p \/>\n<div>From Wikipedia.\u00a0<\/div>\n<p \/>\n<blockquote class=\"gmail_quote\" style=\"border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex;margin:0 0 0 .8ex;\"><p> <span style=\"font-size:13px;line-height:19px;font-family:sans-serif;\"><b>ZIP codes<\/b>\u00a0are a system of\u00a0<a href=\"http:\/\/en.wikipedia.org\/wiki\/Postal_code\" title=\"Postal code\" style=\"text-decoration:none;color:rgb(6,69,173);background-image:none;background-color:initial;\">postal codes<\/a>\u00a0used by the\u00a0<a href=\"http:\/\/en.wikipedia.org\/wiki\/United_States_Postal_Service\" title=\"United States Postal Service\" style=\"text-decoration:none;color:rgb(6,69,173);background-image:none;background-color:initial;\">United States Postal Service<\/a>\u00a0(USPS) since 1963. The term\u00a0<i>ZIP<\/i>, an acronym for\u00a0<b>Zone Improvement Plan<\/b>,<sup class=\"reference\" style=\"line-height:1em;font-weight:normal;font-style:normal;\"><a href=\"http:\/\/en.wikipedia.org\/wiki\/ZIP_code#cite_note-0\" style=\"text-decoration:none;color:rgb(6,69,173);background-image:none;background-color:initial;\"><span>[<\/span>1<span>]<\/span><\/a><\/sup>\u00a0is properly written in capital letters and was chosen to suggest that the\u00a0<a href=\"http:\/\/en.wikipedia.org\/wiki\/Mail\" title=\"Mail\" style=\"text-decoration:none;color:rgb(6,69,173);background-image:none;background-color:initial;\">mail<\/a>travels more efficiently, and therefore more quickly, when senders use the code in the\u00a0<a href=\"http:\/\/en.wikipedia.org\/wiki\/Address_(geography)\" title=\"Address (geography)\" style=\"text-decoration:none;color:rgb(6,69,173);background-image:none;background-color:initial;\">postal address<\/a>. The basic format consists of five decimal\u00a0<a href=\"http:\/\/en.wikipedia.org\/wiki\/Numerical_digit\" title=\"Numerical digit\" style=\"text-decoration:none;color:rgb(6,69,173);background-image:none;background-color:initial;\">numerical digits<\/a>.\u00a0<\/span><\/p><\/blockquote>\n<p \/>\n<div>Interesting. \u00a0I pledge to never make anyone fill out a zip code and a city. \u00a0<\/div>\n","protected":false},"excerpt":{"rendered":"<p>I hate entering things twice. When I get a form mostly filled out, and something happens to cause me to lose the data, oohh. I hate that. So entering the city and state on every form is bad too. If you have a correct zip code, you know the city. T&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/joshdance.me\/blog\/wp-json\/wp\/v2\/posts\/132594066"}],"collection":[{"href":"http:\/\/joshdance.me\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/joshdance.me\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/joshdance.me\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/joshdance.me\/blog\/wp-json\/wp\/v2\/comments?post=132594066"}],"version-history":[{"count":0,"href":"http:\/\/joshdance.me\/blog\/wp-json\/wp\/v2\/posts\/132594066\/revisions"}],"wp:attachment":[{"href":"http:\/\/joshdance.me\/blog\/wp-json\/wp\/v2\/media?parent=132594066"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/joshdance.me\/blog\/wp-json\/wp\/v2\/categories?post=132594066"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/joshdance.me\/blog\/wp-json\/wp\/v2\/tags?post=132594066"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}