(Quick Reference)
In order to use the tags, you need need to install the jquery plugin.

addressLookupLink

Purpose

Creates a link that calls a jQuery function lookup an address.

Examples

Lookup address from default form fields.

<g:setProvider library="jquery"/>
<html>
	<head>
		<title>Some Page</title>
		<g:javascript library="jquery"/>
		<script type="text/javascript" src="${resource(file:'address-lookup-zp4.js', dir:'js', plugin:'address-lookup-zpfour')}" />
	</head>
	<body>
		<form><g:textField name="address"><br/>
		<g:textField name="city">		
		<g:textField name="state">		
		<g:textField name="zipCode">

<g:addressLookupLink>Lookup this address</g:addressLookupLink></form> </body> </html>

Automatically lookup non-default form fields.

<g:addressLookupLink address="addressIn" city="cityIn"
		state="stateIn" zipCode="zipCodeIn" addressOut="z1Address" 
		cityOut="z1City" stateOut="z1State" 
		zipCodeOut="z1ZipCode" zipFourOut="z1ZipFour" 
		errorsOut="errorsOut" certifiedOut="certifiedOut">

Lookup this address </g:addressLookupLink> ...

Add style to the link

<g:addressLookupLink style="background-color: blue;"> Lookup this address </g:addressLookupLink>		
...

Description

Attributes

  • address (optional) - the input field name for the address line, the default is address
  • city (optional) - the input field name for the city, the default is city
  • state (optional) - the input field name for the state, the default is state
  • zipCode (optional) - the input field name for the zip code, the default is zipCode
  • addressOut (optional) - the output field name or element id for the address line, the default is address
  • cityOut (optional) - the output field name or element id for the city, the default is city
  • stateOut (optional) - the output field name or element id for the state, the default is state
  • zipCodeOut (optional) - the output field name or element id for the zip code, the default is zipCode
  • zipFourOut (optional) - the output field name or element id for the plus four zipcode, the default is zip4
  • certifiedOut (optional) - the output field name or element id for the certified result, the default is certifiedOut
  • errorsOut (optional) - the output element id for the error message, the default is errorsOut
  • allowAddressLookup (optional) - the checkbox field name to enable/disable the lookup javascript