search for: reinstanciate

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

Did you mean: instanciate
2006 May 23
0
where to initialize a variable in an AJAX based application
...ess -> calls method 2 (same controller as method 1) 4. Method 2 queries the web service a again to get the details -> redisplay the address to the user. My problem is that I instanciate a variable in method 1 that will deal with the overhead of scanning the WSDL. When I call method 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[:postco...