navigateToURL(new URLRequest("javascript: document.getElementById('Andrea').focus();"), "_self"); //Now give the focus to the first input inCity.setFocus();
<s:TextInput id="inCity" text="Billings" enter="locate()" />
<s:Scroller height="100%" width="100%"> <s:Group> <mx:VDividedBox height="800" width="100%"> <s:VGroup height="100%" width="100%"> <mx:Image source="assets/images/newheader.jpg"/> <s:Label text=" Step 1: Enter the address that you are intrested in below. Then Click Locate."/> <s:HGroup verticalAlign="middle"> <s:Label text=" Address:"/> <s:TextInput id="inAddress" text="306 Washington" /> <s:Label text="City:"/> <s:TextInput id="inCity" text="Billings" /> <s:Button id="locateBtn" label="Locate..." click="locate()"/> </s:HGroup> <s:Label text=" Step 2: Click on a row in the grid to get details on the location. The Geocode Score is a percent of how closely your address matches the address listed." /> <esri:Map id="map" zoomSliderVisible="false" height="100%"> <esri:ArcGISDynamicMapServiceLayer url="http://gis-server.greatriv.com/ArcGIS/rest/services/ChristianCo/ChristianCo_Clerk/MapServer"/> <layers:GraphicsLayer id="graphicsLayer" graphicProvider="{queryTask2.executeLastResult.features}" symbol="{pollSym}"/> </esri:Map> </s:VGroup> <mx:DataGrid id="resultsGrid" itemClick="onItemClick(event)" width="100%" height="87"> <mx:columns> <mx:DataGridColumn headerText="Id" dataField="id" visible="false"/> <mx:DataGridColumn headerText="Address" dataField="address"/> <mx:DataGridColumn headerText="Geocode Score" dataField="score"/> <mx:DataGridColumn headerText="Polling Place" dataField="polling"/> </mx:columns> </mx:DataGrid> </mx:VDividedBox> </s:Group> </s:Scroller>
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.