Geocoder blur()

296
3
Jump to solution
09-05-2013 06:19 AM
PatrickLadd
Occasional Contributor
I want to use the blur() method on the geocoder but I can't seem to make it work because I'm not really a computer programmer (I just play one at work).  What's happening is that I use the geocoder to find an address (duh!) and then I tap the screen to get the esri.Popup infoWindow to show parcel info.  But when I do that the keyboard keeps popping up too because (I think) the geocoder textbox still has the focus.

So, first, is my syntax right here?
function executeIdentifyTask(evt) {
              geocoder.blur();

And second, is this the best place to put the method?

Thanks.
0 Kudos
1 Solution

Accepted Solutions
MattDriscoll
Esri Contributor
Hi Patrick,

Try using geocoder.inputNode.blur(); and see if that works. If not, you could try focus() on another element that you would like focussed.

Let me know if that works.

Thanks

View solution in original post

0 Kudos
3 Replies
MattDriscoll
Esri Contributor
Hi Patrick,

Try using geocoder.inputNode.blur(); and see if that works. If not, you could try focus() on another element that you would like focussed.

Let me know if that works.

Thanks

View solution in original post

0 Kudos
PatrickLadd
Occasional Contributor
Thanks Matt - geocoder.inputNode.blur(); was just what I needed.  Works perfectly.

function executeIdentifyTask(evt) {
            geocoder.inputNode.blur(); 
//takes focus away from geocoder textbox when id'ing parcel so keyboard doesn't popup


            identifyParams.geometry = evt.mapPoint;
            identifyParams.mapExtent = map.extent;
0 Kudos
MattDriscoll
Esri Contributor
Awesome. I will add that to the geocoder blur() method for next update.
0 Kudos