Select to view content in your preferred language

Geocoder widget placeholder text not showing up in Internet Explorer

1898
1
Jump to solution
01-14-2014 09:58 AM
JeremyManning1
Deactivated User
I'm building a map application with the latest version of the JS API (3.8) and am using the Geocoder to consume my own geocoding service (see code below). I've assigned the placeholder text attribute a value of "Find address" and it shows up just fine in the search box in Chrome, Firefox, iOS, Android, etc. but does not show up at all with Internet Explorer. Is this a known bug and if so is there any workaround?

var myGeocoders = [{
url: "//ags.crgov.com/ArcGIS/rest/services/AddressLocator/GeocodeServer",
name: "CastleRockAddressLocator",
placeholder: "Find address"}];

var geocoder = new Geocoder({
map: map,
arcgisGeocoder: false,
minCharacters: 6,
autoComplete: true,
showResults: true,
autoNavigate: false,
geocoders: myGeocoders},"search");
0 Kudos
1 Solution

Accepted Solutions
ReneRubalcava
Esri Frequent Contributor
This isn't specific to the JS API, the placeholder attribute is only suppored in IE10+.
http://caniuse.com/input-placeholder

Here are a couple of links to (no dependency) placeholder polyfills you can try out.

Note, I haven't tested these.

View solution in original post

0 Kudos
1 Reply
ReneRubalcava
Esri Frequent Contributor
This isn't specific to the JS API, the placeholder attribute is only suppored in IE10+.
http://caniuse.com/input-placeholder

Here are a couple of links to (no dependency) placeholder polyfills you can try out.

Note, I haven't tested these.
0 Kudos