search for: by_postcod

Displaying 1 result from an estimated 1 matches for "by_postcod".

Did you mean: by_postcode
2006 May 23
0
where to initialize a variable in an AJAX based application
...ethod 2, it reinstanciate that variable thus loosing a couple of seconds. I have the following: --- class PostcodeController < ActionController::Base def display_address @p = PostcodeAnywhereService.new("http://services.postcodeanywhere.co.uk/uk/lookup.asmx?wsdl") res = @p.by_postcode(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.fe...