Thanks for the Welcome and the quick response, John.
Your suggestion would work fine if I was trying to have my program process the candidates and display them in some UI that it had built. But I'm trying to let the user see the candidates, right below the geocoder widget.
To put it another way, I want the geocoder to behave as if the user had typed in the address, and the AutoComplete function had fired, displaying a list of candidates.
Looking at the code on GitHub, I want to somehow trigger the _inputKeyUp function [line 1084], which will notice that I've set the AutoComplete option and that enough characters have been typed in [line 1117] and invoke this._autoComplete() [line 1118], which runs the query [line 732] and does the this._showResults [line 739].
I just can't figure out how to trigger the _inputKeyUp. It seems to be listening for it:
on(this.inputNode, "keyup" [line 1049].
But my doing $geocoderInput.trigger("keyup"); doesn't seem to be getting through.
Doing an "Inspect Element" from Chrome, I see that this is the correct DOM element:
input aria-haspopup="true" id="simplemap_divGeocoder_input"
tabindex="0" placeholder="" value="" autocomplete="off" type="text"
data-dojo-attach-point="inputNode"
data-dojo-attach-event="ondijitclick:_inputClick"
role="textbox"
I don't know dojo, but this seems to be saying that it will pass a click event to that "attach-point".
(I don't think the autocomplete="off" is relevant or having an effect. The AutoComplete functionality definitely works when I type in characters manually.)