I am using the address verification API from smartystreets in an aspx web page which is using a Wizard.
My code is in VB .NET 2010.
When the user clicks the NExt button, the address gets automatically verified, but the user has to click again on the NExt button to go to the next page, even though the address is good.
How do I fix this issue?
Here is my javascript:
<script language="javascript" type="text/javascript">
var liveaddress = $.LiveAddress({ key: '5562733960493880117', debug: true, autoVerify: false});
liveaddress.on("AddressAccepted", function (event, data, previousHandler) {
if (data.response.isMissingSecondary()) {
data.address.abort(event);
alert("Don't forget your apartment number!");
}
else
previousHandler(event, data);
});
</script>