Geocoding is asynchronous. It sends a request off to the server,
continuing execution of your code (not waiting), when the response
comes back containing the data, the callback routine runs (the "some
stuff"), but by then your submit has already been executed.
You need to put any code that depends on the returned data _inside_
the callback routine.
-- Larry