ANN Getting Nine digit zip codes

Howard Bornstein howard.bornstein at gmail.com
Wed Apr 13 12:00:06 EDT 2005


On 4/13/05, Jim Hurley <jhurley at infostations.com> wrote:
> I forgot to acknowledge help from Dave Cragg. The handler below is from
> Dave and is a wonderful tutorial for anyone interested in getting info
> from a web site with data to be filed in. Just run this on a card with
> one field and you will see the full 9 digit zip  code for the address:
> 123 Broad St, 95959
> 
> on mouseUp
>     put empty into field 1
> 
>     put "Selection=" & 1 after tQuery
>     put "&" after tQuery
>     put "address1=" & urlEncode("123 BROAD ST") after tQuery
>     put "&" after tQuery
>     put "zipcode=" & 95959 after tQuery
> 
>     put  "http://zip4.usps.com/zip4/zip4_responseA.jsp" into tUrl
> 
>     post tQuery to url tUrl
>     if the result <> empty then
>       answer the result
>     else
>       set the htmltext of field 1 to  it
>     end if
> 
> end mouseUp


Jim (or Dave),

I put this in a card script and tried it and got nothing. Both "the
result" and "it" came back empty. Any ideas?

-- 
Regards,

Howard Bornstein
-----------------------
www.designeq.com


More information about the use-livecode mailing list