Displaying 1 result from an estimated 1 matches for "fetchaddressresult".
2006 May 23
0
where to initialize a variable in an AJAX based application
...ode(params[:postcode])
@array_Interim_result = res.byPostcodeResult.results.interimResult
end
def grab_address
@p =
PostcodeAnywhereService.new("http://services.postcodeanywhere.co.uk/uk/lookup.asmx?wsdl")
res = @p.fetch_address(params[:pca_id])
@address_result = res.fetchAddressResult.results.address
end
end
---
I would like to not initialize the @p in the grab_address method. The
value is not kept between display_address and grab_address (if I take
the first line of the grab_address, I end up with a nil value for p)
Is it possible to create a variable within the same c...